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

This commit is contained in:
Eliot Berriot 2018-10-01 21:43:33 +02:00
parent 1aa9b557d1
commit 314765de7c
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
2 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class APIModelMixin(models.Model):
mbid = models.UUIDField(unique=True, db_index=True, null=True, blank=True)
uuid = models.UUIDField(unique=True, db_index=True, default=uuid.uuid4)
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 = []
creation_date = models.DateTimeField(default=timezone.now)

View File

@ -0,0 +1 @@
Ensure from_activity field is not required in django's admin (#546)