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
This commit is contained in:
Garret Wassermann 2017-02-12 05:33:53 -05:00 committed by Jonathan Barratt
parent 7c5daa26ea
commit 2164c3bc4d
2 changed files with 21 additions and 1 deletions

View File

@ -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'),
),
]

View File

@ -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,