Skip to content

Commit 649a729

Browse files
committed
copy _property_names from django.db.models.Options (django-1.11 fix)
1 parent 190e03a commit 649a729

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

django_mongoengine/forms/document_options.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ class DocumentMetaWrapper(object):
7272
except AttributeError:
7373
pass
7474
app_config = Options.__dict__["app_config"]
75+
try:
76+
_property_names = Options.__dict__["_property_names"]
77+
except AttributeError:
78+
pass
7579

7680
def __init__(self, document):
7781
if isinstance(document._meta, DocumentMetaWrapper):

0 commit comments

Comments
 (0)