Skip to content

Commit

Permalink
Constraint private attribute to exists
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaudDauce committed Jan 29, 2024
1 parent a654778 commit 731fdd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion udata/core/reuse/models.py
Expand Up @@ -77,7 +77,7 @@ class Reuse(db.Datetimed, WithMetrics, BadgeMixin, db.Owned, db.Document):
topic = db.StringField(required=True, choices=list(REUSE_TOPICS))
# badges = db.ListField(db.EmbeddedDocumentField(ReuseBadge))

private = db.BooleanField()
private = db.BooleanField(required=True, default=False)

ext = db.MapField(db.GenericEmbeddedDocumentField())
extras = db.ExtrasField()
Expand Down

0 comments on commit 731fdd4

Please sign in to comment.