Making Queue slug unique and improving certain admin-related behaviour

This commit is contained in:
Alex Barcelo
2015-12-18 14:56:53 +01:00
parent b2ae5e764f
commit 7894eea1e1
3 changed files with 27 additions and 0 deletions

View File

@ -45,6 +45,7 @@ class Queue(models.Model):
slug = models.SlugField(
_('Slug'),
max_length=50,
unique=True,
help_text=_('This slug is used when building ticket ID\'s. Once set, '
'try not to change it or e-mailing may get messy.'),
)
@ -179,6 +180,7 @@ class Queue(models.Model):
max_length=50,
blank=True,
null=True,
editable=False,
help_text=_('Name used in the django.contrib.auth permission system'),
)