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:
Alex Seeholzer 2017-01-13 14:10:31 +01:00 committed by GitHub
commit 9fbe464445

View File

@ -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,
) )