Merge pull request #2337 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):
"""
Color objects are serialized into "rgb(#, #, #)" notation.
Color objects are serialized into 'rgb(#, #, #)' notation.
"""
def to_representation(self, obj):
return "rgb(%d, %d, %d)" % (obj.red, obj.green, obj.blue)