add permissions in ticket models
This commit is contained in:
parent
2e29b8b046
commit
54e5ba6e8e
1 changed files with 6 additions and 0 deletions
|
@ -55,6 +55,12 @@ def create_issue_thread(sender, instance, created, **kwargs):
|
||||||
if created:
|
if created:
|
||||||
StateChange.objects.create(issue_thread=instance, state='pending_new')
|
StateChange.objects.create(issue_thread=instance, state='pending_new')
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
permissions = [
|
||||||
|
('send_mail', 'Can send mail'),
|
||||||
|
('add_issuethread_manual', 'Can add issue thread manually'),
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
class Comment(models.Model):
|
class Comment(models.Model):
|
||||||
id = models.AutoField(primary_key=True)
|
id = models.AutoField(primary_key=True)
|
||||||
|
|
Loading…
Reference in a new issue