diff options
Diffstat (limited to 'django/db/models/options.py')
| -rw-r--r-- | django/db/models/options.py | 5 |
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) |
