mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 11:33:59 +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.
|
||||
"""
|
||||
if instance:
|
||||
# Update existing instance or part of it
|
||||
# Update existing instance
|
||||
instance.title = attrs.get('title', instance.title)
|
||||
instance.code = attrs.get('code', instance.code)
|
||||
instance.linenos = attrs.get('linenos', instance.linenos)
|
||||
|
|
Loading…
Reference in New Issue
Block a user