diff options
| author | Giorgos Logiotatidis | 2014-05-15 15:34:31 +0300 | 
|---|---|---|
| committer | Giorgos Logiotatidis | 2014-05-15 15:42:22 +0300 | 
| commit | 768f537dcbb5d4f7429a74556559047bfd6f3078 (patch) | |
| tree | c40256d441400cc772098c6c45f5871d27722e0e /docs | |
| parent | d69d9750156f5319019a2ea4097cbe5d70539bd7 (diff) | |
| download | django-rest-framework-768f537dcbb5d4f7429a74556559047bfd6f3078.tar.bz2 | |
Typo fix.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/api-guide/serializers.md | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/docs/api-guide/serializers.md b/docs/api-guide/serializers.md index 7ee060af..0044f070 100644 --- a/docs/api-guide/serializers.md +++ b/docs/api-guide/serializers.md @@ -464,7 +464,7 @@ For more specific requirements such as specifying a different lookup for each fi              model = Account              fields = ('url', 'account_name', 'users', 'created') -## Overiding the URL field behavior +## Overriding the URL field behavior  The name of the URL field defaults to 'url'.  You can override this globally, by using the `URL_FIELD_NAME` setting. @@ -478,7 +478,7 @@ You can also override this on a per-serializer basis by using the `url_field_nam  **Note**: The generic view implementations normally generate a `Location` header in response to successful `POST` requests.  Serializers using `url_field_name` option will not have this header automatically included by the view.  If you need to do so you will ned to also override the view's `get_success_headers()` method. -You can also overide the URL field's view name and lookup field without overriding the field explicitly, by using the `view_name` and `lookup_field` options, like so: +You can also override the URL field's view name and lookup field without overriding the field explicitly, by using the `view_name` and `lookup_field` options, like so:      class AccountSerializer(serializers.HyperlinkedModelSerializer):          class Meta: | 
