diff --git a/helpdesk/migrations/0015_expand_permission_name_size.py b/helpdesk/migrations/0015_expand_permission_name_size.py new file mode 100644 index 00000000..5feecb38 --- /dev/null +++ b/helpdesk/migrations/0015_expand_permission_name_size.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.5 on 2017-02-10 19:27 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('helpdesk', '0014_usersettings_related_name'), + ] + + operations = [ + migrations.AlterField( + model_name='queue', + name='permission_name', + field=models.CharField(blank=True, editable=False, help_text='Name used in the django.contrib.auth permission system', max_length=72, null=True, verbose_name='Django auth permission name'), + ), + ] diff --git a/helpdesk/models.py b/helpdesk/models.py index 273d4cef..7111982c 100644 --- a/helpdesk/models.py +++ b/helpdesk/models.py @@ -180,7 +180,7 @@ class Queue(models.Model): permission_name = models.CharField( _('Django auth permission name'), - max_length=50, + max_length=72, # based on prepare_permission_name() pre-pending chars to slug blank=True, null=True, editable=False,