1
1
mirror of https://github.com/encode/django-rest-framework.git synced 2025-03-31 23:34:30 +03:00
This commit is contained in:
Wes 2016-02-17 16:35:53 +08:00 committed by Xavier Ordoquy
parent b572cdb068
commit 0e1dcb7323

View File

@ -788,7 +788,7 @@ Here's an example of how you might choose to implement multiple updates:
# Perform creations and updates.
ret = []
for book_id, data in data_mapping.items():
book = book_mapping.get(book_id, None):
book = book_mapping.get(book_id, None)
if book is None:
ret.append(self.child.create(data))
else: