mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-30 05:24:00 +03:00
Revert comment.
This commit is contained in:
parent
fdd35cd266
commit
b11628f429
|
@ -129,7 +129,7 @@ The first thing we need to get started on our Web API is provide a way of serial
|
||||||
Create or update a new snippet instance.
|
Create or update a new snippet instance.
|
||||||
"""
|
"""
|
||||||
if instance:
|
if instance:
|
||||||
# Update existing instance or part of it
|
# Update existing instance
|
||||||
instance.title = attrs.get('title', instance.title)
|
instance.title = attrs.get('title', instance.title)
|
||||||
instance.code = attrs.get('code', instance.code)
|
instance.code = attrs.get('code', instance.code)
|
||||||
instance.linenos = attrs.get('linenos', instance.linenos)
|
instance.linenos = attrs.get('linenos', instance.linenos)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user