Increase limits to 1000 characters
This commit is contained in:
parent
fc110e4060
commit
3193d06891
@ -23,7 +23,7 @@ from django.db import models
|
|||||||
from jsonfield import JSONField
|
from jsonfield import JSONField
|
||||||
|
|
||||||
class Group(models.Model):
|
class Group(models.Model):
|
||||||
name = models.CharField(max_length=100)
|
name = models.CharField(max_length=1000)
|
||||||
subscribable = models.BooleanField()
|
subscribable = models.BooleanField()
|
||||||
order = models.IntegerField(null=True, blank=True)
|
order = models.IntegerField(null=True, blank=True)
|
||||||
hidden = models.BooleanField()
|
hidden = models.BooleanField()
|
||||||
@ -89,8 +89,8 @@ class BulletinItem(models.Model):
|
|||||||
author = models.ForeignKey(User, on_delete=models.CASCADE)
|
author = models.ForeignKey(User, on_delete=models.CASCADE)
|
||||||
group = models.ForeignKey(Group, on_delete=models.CASCADE)
|
group = models.ForeignKey(Group, on_delete=models.CASCADE)
|
||||||
also_limit = JSONField(default=[])
|
also_limit = JSONField(default=[])
|
||||||
title = models.CharField(max_length=100)
|
title = models.CharField(max_length=1000)
|
||||||
link = models.CharField(max_length=100, null=True)
|
link = models.CharField(max_length=1000, null=True)
|
||||||
image = models.ImageField(upload_to='promo_uploads/%Y/%m/%d/', null=True)
|
image = models.ImageField(upload_to='promo_uploads/%Y/%m/%d/', null=True)
|
||||||
content = models.TextField()
|
content = models.TextField()
|
||||||
date = models.DateField()
|
date = models.DateField()
|
||||||
|
Loading…
Reference in New Issue
Block a user