mirror of
https://github.com/django/django.git
synced 2024-11-29 22:56:46 +01:00
Fixed mistake in Model.from_db() example.
This commit is contained in:
parent
f9c3587b51
commit
fd869cceac
@ -100,7 +100,7 @@ are loaded from the database::
|
||||
instance._state.adding = False
|
||||
instance._state.db = db
|
||||
# customization to store the original field values on the instance
|
||||
instance._loaded_values = zip(field_names, values)
|
||||
instance._loaded_values = dict(zip(field_names, values))
|
||||
return instance
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
|
Loading…
Reference in New Issue
Block a user