Skip to content

Commit

Permalink
fix: Properly set attributes for auto created field
Browse files Browse the repository at this point in the history
  • Loading branch information
last-partizan committed May 26, 2022
1 parent a7648ea commit 3b9c039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_mongoengine/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# TopLevelDocumentMetaclass is using ObjectIdField to create default pk field,
# if one's not set explicitly.
# We need to know it's not editable and auto_created.
#mtc.ObjectIdField = partial(ObjectIdField, editable=False, auto_created=True)
mtc.ObjectIdField = partial(ObjectIdField, editable=False, auto_created=True, blank=True)


def django_meta(meta, *top_bases):
Expand Down

0 comments on commit 3b9c039

Please sign in to comment.