mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2025-01-13 17:38:24 +01:00
Merge pull request #475 from reduxionist/issue/472/multiple-queue-models-prevent-queue-creation
Make helpdesk work in apps with their own queue models
This commit is contained in:
commit
9fbe464445
@ -320,7 +320,7 @@ class Queue(models.Model):
|
|||||||
|
|
||||||
Permission.objects.create(
|
Permission.objects.create(
|
||||||
name=_("Permission for queue: ") + self.title,
|
name=_("Permission for queue: ") + self.title,
|
||||||
content_type=ContentType.objects.get(model="queue"),
|
content_type=ContentType.objects.get_for_model(self.__class__),
|
||||||
codename=basename,
|
codename=basename,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user