diff options
| author | Ludwig Kraatz | 2012-11-14 11:46:16 +0100 | 
|---|---|---|
| committer | Ludwig Kraatz | 2012-11-14 11:46:16 +0100 | 
| commit | 8b999c6bb500a045c6c32412009cbd3b1cd5a56b (patch) | |
| tree | 3ce280898fe42aabdbc90f862a03c6e67a2f0521 /rest_framework/mixins.py | |
| parent | 3a30a9b1cbb4444adf3cbb1d3d80c637b5f4f2ca (diff) | |
| download | django-rest-framework-8b999c6bb500a045c6c32412009cbd3b1cd5a56b.tar.bz2 | |
polishing code
and adding myself to auhtors file
Diffstat (limited to 'rest_framework/mixins.py')
| -rw-r--r-- | rest_framework/mixins.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/rest_framework/mixins.py b/rest_framework/mixins.py index f6119aa1..089425d5 100644 --- a/rest_framework/mixins.py +++ b/rest_framework/mixins.py @@ -24,8 +24,8 @@ class CreateModelMixin(object):          return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)      def get_success_headers(self,data): -        if "url" in data: -            return {'Location':data.get("url")} +        if 'url' in data: +            return {'Location': data.get('url')}          else:              return {} | 
