Verified Commit 314765de authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fix #546: Ensure from_activity field is not required in django's admin

parent 1aa9b557
...@@ -41,7 +41,7 @@ class APIModelMixin(models.Model): ...@@ -41,7 +41,7 @@ class APIModelMixin(models.Model):
mbid = models.UUIDField(unique=True, db_index=True, null=True, blank=True) mbid = models.UUIDField(unique=True, db_index=True, null=True, blank=True)
uuid = models.UUIDField(unique=True, db_index=True, default=uuid.uuid4) uuid = models.UUIDField(unique=True, db_index=True, default=uuid.uuid4)
from_activity = models.ForeignKey( from_activity = models.ForeignKey(
"federation.Activity", null=True, on_delete=models.SET_NULL "federation.Activity", null=True, blank=True, on_delete=models.SET_NULL
) )
api_includes = [] api_includes = []
creation_date = models.DateTimeField(default=timezone.now) creation_date = models.DateTimeField(default=timezone.now)
......
Ensure from_activity field is not required in django's admin (#546)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment