summaryrefslogtreecommitdiff
path: root/django/db/models/options.py
diff options
context:
space:
mode:
authorAlex <alex@gmail.com>2017-05-19 06:40:43 -0400
committerTim Graham <timograham@gmail.com>2017-05-27 12:41:38 -0400
commit37ab3c3f9d707d6a1896db79c631e920dcb1fb78 (patch)
treee373ed7275a992675ef97ccf987ae2fc78b3b17e /django/db/models/options.py
parent385cf7091e066604f9e417c6ef63685492a08d13 (diff)
Fixed #28222 -- Allowed settable properties in QuerySet.update_or_create()/get_or_create() defaults.
Diffstat (limited to 'django/db/models/options.py')
-rw-r--r--django/db/models/options.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/django/db/models/options.py b/django/db/models/options.py
index cd50ff0aaa..557455c128 100644
--- a/django/db/models/options.py
+++ b/django/db/models/options.py
@@ -828,10 +828,7 @@ class Options:
@cached_property
def _property_names(self):
- """
- Return a set of the names of the properties defined on the model.
- Internal helper for model initialization.
- """
+ """Return a set of the names of the properties defined on the model."""
return frozenset({
attr for attr in
dir(self.model) if isinstance(getattr(self.model, attr), property)