mirror of https://github.com/django/django.git
Fixed a typo in docs/ref/models/querysets.txt
This commit is contained in:
parent
563d534d33
commit
89ca112884
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue