from karenina import modules


class Admin(modules.InstallableModule):
    icon = "mdi-action-settings-applications"
    order = 1000

    @property
    def label(self):
        return 'Administration'

    def has_perm(self, user):
        return user.is_staff
from karenina import modules


class Admin(modules.Module):
    icon = "mdi-action-settings-applications"
    order = 1000

    @property
    def label(self):
        return 'Administration'

    def has_perm(self, user):
        return user.is_staff
Add module declaration for karenina
Add module declaration for karenina

  from karenina import modules
  
  
- class Admin(modules.InstallableModule):
+ class Admin(modules.Module):
      icon = "mdi-action-settings-applications"
      order = 1000
  
      @property
      def label(self):
          return 'Administration'
  
      def has_perm(self, user):
          return user.is_staff
Add module declaration for karenina
## Code Before:
from karenina import modules


class Admin(modules.InstallableModule):
    icon = "mdi-action-settings-applications"
    order = 1000

    @property
    def label(self):
        return 'Administration'

    def has_perm(self, user):
        return user.is_staff
## Instruction:
Add module declaration for karenina
## Code After:
from karenina import modules


class Admin(modules.Module):
    icon = "mdi-action-settings-applications"
    order = 1000

    @property
    def label(self):
        return 'Administration'

    def has_perm(self, user):
        return user.is_staff