Commit 5a779d0c authored by Robert's avatar Robert

Added blank=True for attached_to field to allow editing contributions in admin interface

parent 3bb5e6bb
Pipeline #1235 failed with stage
in 1 minute and 42 seconds
......@@ -36,7 +36,8 @@ class Contribution(core.models.Model):
author = models.ForeignKey(
'gestalten.Gestalt', related_name='contributions', on_delete=models.PROTECT)
attached_to = models.ForeignKey(
'Contribution', null=True, related_name='attachments', on_delete=models.SET_NULL)
'Contribution', null=True, related_name='attachments', on_delete=models.SET_NULL,
blank=True)
deleted = models.DateTimeField(null=True, blank=True)
in_reply_to = models.ForeignKey(
'Contribution', null=True, blank=True, related_name='replies',
......
Markdown is supported
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