1
1
mirror of https://github.com/encode/django-rest-framework.git synced 2025-06-03 05:03:05 +03:00

Merge pull request from BWStearns/master

use of double quotes broke the code highlighting.
This commit is contained in:
Tom Christie 2014-12-22 07:55:24 +00:00
commit 201e7eaa4b

View File

@ -480,7 +480,7 @@ Let's look at an example of serializing a class that represents an RGB color val
class ColorField(serializers.Field): class ColorField(serializers.Field):
""" """
Color objects are serialized into "rgb(#, #, #)" notation. Color objects are serialized into 'rgb(#, #, #)' notation.
""" """
def to_representation(self, obj): def to_representation(self, obj):
return "rgb(%d, %d, %d)" % (obj.red, obj.green, obj.blue) return "rgb(%d, %d, %d)" % (obj.red, obj.green, obj.blue)