diff options
| author | Stephan Groß | 2012-11-21 13:35:20 +0100 | 
|---|---|---|
| committer | Stephan Groß | 2012-11-21 13:35:20 +0100 | 
| commit | 9459289d7d388074045b726225cb6e140f3c18c3 (patch) | |
| tree | d7ebcd13c11f69e4e502d1f89bebf24acdb40885 | |
| parent | 196fa5e94f5348dbb3873a5c87561416b16ea013 (diff) | |
| download | django-rest-framework-9459289d7d388074045b726225cb6e140f3c18c3.tar.bz2 | |
updated comparison due to pep8 programming recommendations
http://www.python.org/dev/peps/pep-0008/#programming-recommendations
| -rw-r--r-- | docs/api-guide/serializers.md | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/api-guide/serializers.md b/docs/api-guide/serializers.md index a9589144..048c1200 100644 --- a/docs/api-guide/serializers.md +++ b/docs/api-guide/serializers.md @@ -34,7 +34,7 @@ Declaring a serializer looks very similar to declaring a form:          created = serializers.DateTimeField()          def restore_object(self, attrs, instance=None): -            if instance: +            if instance is not None:                  instance.title = attrs['title']                  instance.content = attrs['content']                  instance.created = attrs['created']  | 
