from django.db import models from django.utils.translation import gettext_lazy as _ class Permission(models.Model): class Meta: verbose_name = _("Common permission") permissions = [ ('view_resourcestatistics', _('Can view resource statistics')) ]