Select Git revision
0050_message_event_reference.py
-
Benjamin Hättasch authored
Add a new mandatory event reference to the model Add a migration that makes sure all existing messages are updated accordingly Adapt the frontend view that sends the message to fill the event field
Benjamin Hättasch authoredAdd a new mandatory event reference to the model Add a migration that makes sure all existing messages are updated accordingly Adapt the frontend view that sends the message to fill the event field
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'