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
1 changed files with 1 additions and 1 deletions

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()