adding required model extra info for permissions

This commit is contained in:
Alex Barcelo 2015-12-16 16:08:46 +01:00
parent 87ecd34610
commit 18c7a2e698
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('helpdesk', '0007_max_length_by_integer'),
]
operations = [
migrations.AddField(
model_name='queue',
name='permission_name',
field=models.CharField(help_text='Name used in the django.contrib.auth permission system', max_length=50, null=True, verbose_name='Django auth permission name', blank=True),
),
]

View File

@ -39,6 +39,7 @@ class Queue(models.Model):
slug = models.SlugField(
_('Slug'),
max_length=50,
help_text=_('This slug is used when building ticket ID\'s. Once set, '
'try not to change it or e-mailing may get messy.'),
)
@ -168,6 +169,15 @@ class Queue(models.Model):
'folders. Default: INBOX.'),
)
permission_name = models.CharField(
_('Django auth permission name'),
max_length=50,
blank=True,
null=True,
help_text=_('Name used in the django.contrib.auth permission system'),
)
email_box_interval = models.IntegerField(
_('E-Mail Check Interval'),
help_text=_('How often do you wish to check this mailbox? (in Minutes)'),