From 2164c3bc4d3da29e4a4d5ef9b3dc56187ac7d4c0 Mon Sep 17 00:00:00 2001 From: Garret Wassermann Date: Sun, 12 Feb 2017 05:33:53 -0500 Subject: [PATCH] Change queue permission_name from 50 chars to 72 chars (#484) * Change queue permission_name from 50 chars to 72 chars to accomodate slug + prepended text, to resolve #483 --- .../0015_expand_permission_name_size.py | 20 +++++++++++++++++++ helpdesk/models.py | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 helpdesk/migrations/0015_expand_permission_name_size.py 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,