aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide
diff options
context:
space:
mode:
authorStephan Groß2012-10-29 09:29:45 +0100
committerStephan Groß2012-10-29 09:29:45 +0100
commit2de89f2d53c4b06baca8df218c8de959af69a006 (patch)
tree5a53e43aed781500225df0cbb83fa40ba5593cd9 /docs/api-guide
parentff4804a36079f9c1d480a788397af3a7f8391371 (diff)
downloaddjango-rest-framework-2de89f2d53c4b06baca8df218c8de959af69a006.tar.bz2
remove empty rows
Diffstat (limited to 'docs/api-guide')
-rw-r--r--docs/api-guide/serializers.md2
1 files changed, 0 insertions, 2 deletions
diff --git a/docs/api-guide/serializers.md b/docs/api-guide/serializers.md
index 902179ba..c88b9b0c 100644
--- a/docs/api-guide/serializers.md
+++ b/docs/api-guide/serializers.md
@@ -135,7 +135,6 @@ Let's look at an example of serializing a class that represents an RGB color val
"""
A color represented in the RGB colorspace.
"""
-
def __init__(self, red, green, blue):
assert(red >= 0 and green >= 0 and blue >= 0)
assert(red < 256 and green < 256 and blue < 256)
@@ -145,7 +144,6 @@ Let's look at an example of serializing a class that represents an RGB color val
"""
Color objects are serialized into "rgb(#, #, #)" notation.
"""
-
def to_native(self, obj):
return "rgb(%d, %d, %d)" % (obj.red, obj.green, obj.blue)