Skip to content
Snippets Groups Projects
Select Git revision
  • d8a0a55a79655b010a58da83f5eb45b1a0308ce2
  • main default protected
  • renovate/django-5.x
  • koma/feature/preference-polling-form
4 results

apps.py

Blame
    • Benjamin Hättasch's avatar
      2b7f9314
      Improve AKModel · 2b7f9314
      Benjamin Hättasch authored
      Add or complete docstrings
      Remove code smells
      Disable irrelevant warnings
      Update translations to changed line numbers and line breaks
      Move duplicated code for event field pre-population and event timezone adaption to mixins
      2b7f9314
      History
      Improve AKModel
      Benjamin Hättasch authored
      Add or complete docstrings
      Remove code smells
      Disable irrelevant warnings
      Update translations to changed line numbers and line breaks
      Move duplicated code for event field pre-population and event timezone adaption to mixins
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    apps.py 469 B
    from django.apps import AppConfig
    from django.contrib.admin.apps import AdminConfig
    
    
    class AkmodelConfig(AppConfig):
        """
        App configuration (default, only specifies name of the app)
        """
        name = 'AKModel'
    
    
    class AKAdminConfig(AdminConfig):
        """
        App configuration for admin
        Loading a custom version here allows to add additional contex and further adapt the behavior of the admin interface
        """
        default_site = 'AKModel.site.AKAdminSite'