mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2025-01-28 08:48:43 +01:00
adding required model extra info for permissions
This commit is contained in:
parent
87ecd34610
commit
18c7a2e698
19
helpdesk/migrations/0008_extra_for_permissions.py
Normal file
19
helpdesk/migrations/0008_extra_for_permissions.py
Normal 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),
|
||||||
|
),
|
||||||
|
]
|
@ -39,6 +39,7 @@ class Queue(models.Model):
|
|||||||
|
|
||||||
slug = models.SlugField(
|
slug = models.SlugField(
|
||||||
_('Slug'),
|
_('Slug'),
|
||||||
|
max_length=50,
|
||||||
help_text=_('This slug is used when building ticket ID\'s. Once set, '
|
help_text=_('This slug is used when building ticket ID\'s. Once set, '
|
||||||
'try not to change it or e-mailing may get messy.'),
|
'try not to change it or e-mailing may get messy.'),
|
||||||
)
|
)
|
||||||
@ -168,6 +169,15 @@ class Queue(models.Model):
|
|||||||
'folders. Default: INBOX.'),
|
'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(
|
email_box_interval = models.IntegerField(
|
||||||
_('E-Mail Check Interval'),
|
_('E-Mail Check Interval'),
|
||||||
help_text=_('How often do you wish to check this mailbox? (in Minutes)'),
|
help_text=_('How often do you wish to check this mailbox? (in Minutes)'),
|
||||||
|
Loading…
Reference in New Issue
Block a user