2023-03-10 17:38:31 +00:00
|
|
|
from django.apps import AppConfig
|
2024-07-05 14:38:26 +00:00
|
|
|
from django.core import checks
|
2020-04-29 17:00:47 +00:00
|
|
|
from django.utils.translation import gettext_lazy as _
|
2014-11-21 19:16:39 +00:00
|
|
|
|
2024-07-05 14:38:26 +00:00
|
|
|
from constance.checks import check_fieldsets
|
|
|
|
|
|
2014-11-21 19:08:20 +00:00
|
|
|
|
2014-05-23 08:02:34 +00:00
|
|
|
class ConstanceConfig(AppConfig):
|
|
|
|
|
name = 'constance'
|
2020-04-29 17:00:47 +00:00
|
|
|
verbose_name = _('Constance')
|
2023-03-10 17:38:31 +00:00
|
|
|
default_auto_field = 'django.db.models.AutoField'
|
2015-08-25 11:54:11 +00:00
|
|
|
|
2023-03-13 22:45:31 +00:00
|
|
|
def ready(self):
|
2024-07-05 14:38:26 +00:00
|
|
|
checks.register(check_fieldsets, 'constance')
|