V1.30.4 notification.image_url optional

This commit is contained in:
Tibor Bossanyi (Freelancer) 2021-10-01 17:14:48 +02:00
parent 80e58bef04
commit ea28b1a711

View File

@ -5,7 +5,7 @@ class Notification(models.Model):
notification_id = models.AutoField(primary_key=True)
message_title = models.CharField(max_length=50)
message_body = models.TextField(max_length=100, blank=True, null=True)
image_url = models.ImageField(upload_to='images/', help_text='The notification image')
image_url = models.ImageField(upload_to='images/', help_text='The notification image', blank=True, null=True)
schedule_date = models.DateField(blank=True, null=True)
schedule_hook = models.TextField(max_length=100, blank=True, null=True)
schedule_sql = models.TextField(max_length=1000, blank=True, null=True)