Commit 201e7eaa by Tom Christie

Merge pull request #2337 from BWStearns/master

use of double quotes broke the code highlighting.
parents e4c7c10b 35696748
...@@ -480,7 +480,7 @@ Let's look at an example of serializing a class that represents an RGB color val ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment