mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-06 09:57:57 +00:00
Make mailinglist name unique in the database
This should have been the case from the beginning, there are many things that would break if this was not followed.
This commit is contained in:
@ -18,7 +18,7 @@ class MailingListGroup(models.Model):
|
||||
|
||||
class MailingList(models.Model):
|
||||
group = models.ForeignKey(MailingListGroup, null=False)
|
||||
listname = models.CharField(max_length=64, null=False, blank=False)
|
||||
listname = models.CharField(max_length=64, null=False, blank=False, unique=True)
|
||||
active = models.BooleanField(null=False, default=False)
|
||||
externallink = models.URLField(max_length=200, null=True, blank=True)
|
||||
description = models.TextField(null=False, blank=True)
|
||||
|
Reference in New Issue
Block a user