mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-22 07:53:19 +01:00
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:
parent
7c5daa26ea
commit
2164c3bc4d
20
helpdesk/migrations/0015_expand_permission_name_size.py
Normal file
20
helpdesk/migrations/0015_expand_permission_name_size.py
Normal 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'),
|
||||
),
|
||||
]
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user