mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 00:04:16 +03:00
use of double quotes broke the code highlighting.
This commit is contained in:
parent
e4c7c10b00
commit
3569674860
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user