diff --git a/sspromotions/models.py b/sspromotions/models.py index bdb6d20..583baa5 100644 --- a/sspromotions/models.py +++ b/sspromotions/models.py @@ -23,7 +23,7 @@ from django.db import models from jsonfield import JSONField class Group(models.Model): - name = models.CharField(max_length=100) + name = models.CharField(max_length=1000) subscribable = models.BooleanField() order = models.IntegerField(null=True, blank=True) hidden = models.BooleanField() @@ -89,8 +89,8 @@ class BulletinItem(models.Model): author = models.ForeignKey(User, on_delete=models.CASCADE) group = models.ForeignKey(Group, on_delete=models.CASCADE) also_limit = JSONField(default=[]) - title = models.CharField(max_length=100) - link = models.CharField(max_length=100, null=True) + title = models.CharField(max_length=1000) + link = models.CharField(max_length=1000, null=True) image = models.ImageField(upload_to='promo_uploads/%Y/%m/%d/', null=True) content = models.TextField() date = models.DateField()