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):
|
2025-10-07 09:25:07 +00:00
|
|
|
name = "constance"
|
|
|
|
|
verbose_name = _("Constance")
|
|
|
|
|
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):
|
2025-10-07 09:25:07 +00:00
|
|
|
checks.register(check_fieldsets, "constance")
|