1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Fixed a typo in docs/ref/models/querysets.txt

This commit is contained in:
Vytis Banaitis 2016-06-04 19:04:40 +03:00 committed by Tim Graham
parent 563d534d33
commit 89ca112884

View File

@ -1687,7 +1687,7 @@ tuple of the new object and ``True``. The new object will be created roughly
according to this algorithm::
params = {k: v for k, v in kwargs.items() if '__' not in k}
params.update(({k: v() if callable(v) else v for k, v in defaults.items()})
params.update({k: v() if callable(v) else v for k, v in defaults.items()})
obj = self.model(**params)
obj.save()