diff --git a/helpdesk/models.py b/helpdesk/models.py index c39e733b..4dc28a36 100644 --- a/helpdesk/models.py +++ b/helpdesk/models.py @@ -320,7 +320,7 @@ class Queue(models.Model): Permission.objects.create( name=_("Permission for queue: ") + self.title, - content_type=ContentType.objects.get(model="queue"), + content_type=ContentType.objects.get_for_model(self.__class__), codename=basename, )