kopia lustrzana https://github.com/wagtail/wagtail
Add default_auto_field to appconfigs to silence warnings
rodzic
38f0cb44a4
commit
b455c659b7
|
@ -8,6 +8,7 @@ class WagtailAdminAppConfig(AppConfig):
|
|||
name = 'wagtail.admin'
|
||||
label = 'wagtailadmin'
|
||||
verbose_name = _("Wagtail admin")
|
||||
default_auto_field = 'django.db.models.AutoField'
|
||||
|
||||
def ready(self):
|
||||
from wagtail.admin.signal_handlers import register_signal_handlers
|
||||
|
|
|
@ -6,3 +6,4 @@ class WagtailFormsAppConfig(AppConfig):
|
|||
name = 'wagtail.contrib.forms'
|
||||
label = 'wagtailforms'
|
||||
verbose_name = _("Wagtail forms")
|
||||
default_auto_field = 'django.db.models.AutoField'
|
||||
|
|
|
@ -6,3 +6,4 @@ class WagtailRedirectsAppConfig(AppConfig):
|
|||
name = 'wagtail.contrib.redirects'
|
||||
label = 'wagtailredirects'
|
||||
verbose_name = _("Wagtail redirects")
|
||||
default_auto_field = 'django.db.models.AutoField'
|
||||
|
|
|
@ -6,3 +6,4 @@ class WagtailSearchPromotionsAppConfig(AppConfig):
|
|||
name = 'wagtail.contrib.search_promotions'
|
||||
label = 'wagtailsearchpromotions'
|
||||
verbose_name = _("Wagtail search promotions")
|
||||
default_auto_field = 'django.db.models.AutoField'
|
||||
|
|
|
@ -6,6 +6,7 @@ class WagtailCoreAppConfig(AppConfig):
|
|||
name = 'wagtail.core'
|
||||
label = 'wagtailcore'
|
||||
verbose_name = _("Wagtail core")
|
||||
default_auto_field = 'django.db.models.AutoField'
|
||||
|
||||
def ready(self):
|
||||
from wagtail.core.signal_handlers import register_signal_handlers
|
||||
|
|
|
@ -6,6 +6,7 @@ class WagtailDocsAppConfig(AppConfig):
|
|||
name = 'wagtail.documents'
|
||||
label = 'wagtaildocs'
|
||||
verbose_name = _("Wagtail documents")
|
||||
default_auto_field = 'django.db.models.AutoField'
|
||||
|
||||
def ready(self):
|
||||
from wagtail.documents.signal_handlers import register_signal_handlers
|
||||
|
|
|
@ -8,6 +8,7 @@ class WagtailEmbedsAppConfig(AppConfig):
|
|||
name = 'wagtail.embeds'
|
||||
label = 'wagtailembeds'
|
||||
verbose_name = _("Wagtail embeds")
|
||||
default_auto_field = 'django.db.models.AutoField'
|
||||
|
||||
def ready(self):
|
||||
# Check configuration on startup
|
||||
|
|
|
@ -8,6 +8,7 @@ class WagtailImagesAppConfig(AppConfig):
|
|||
name = 'wagtail.images'
|
||||
label = 'wagtailimages'
|
||||
verbose_name = _("Wagtail images")
|
||||
default_auto_field = 'django.db.models.AutoField'
|
||||
|
||||
def ready(self):
|
||||
from wagtail.images.signal_handlers import register_signal_handlers
|
||||
|
|
|
@ -8,6 +8,7 @@ class WagtailSearchAppConfig(AppConfig):
|
|||
name = 'wagtail.search'
|
||||
label = 'wagtailsearch'
|
||||
verbose_name = _("Wagtail search")
|
||||
default_auto_field = 'django.db.models.AutoField'
|
||||
|
||||
def ready(self):
|
||||
register_signal_handlers()
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
default_app_config = 'wagtail.tests.demosite.apps.DemositeAppConfig'
|
|
@ -0,0 +1,6 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class DemositeAppConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.AutoField'
|
||||
name = 'wagtail.tests.demosite'
|
|
@ -0,0 +1 @@
|
|||
default_app_config = 'wagtail.tests.i18n.apps.I18nAppConfig'
|
|
@ -0,0 +1,6 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class I18nAppConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.AutoField'
|
||||
name = 'wagtail.tests.i18n'
|
|
@ -3,6 +3,7 @@ from django.utils.translation import gettext_lazy as _
|
|||
|
||||
|
||||
class WagtailTestsAppConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.AutoField'
|
||||
name = 'wagtail.tests.modeladmintest'
|
||||
label = 'modeladmintest'
|
||||
verbose_name = _("Test Wagtail Model Admin")
|
||||
|
|
|
@ -3,6 +3,7 @@ from django.utils.translation import gettext_lazy as _
|
|||
|
||||
|
||||
class WagtailSearchTestsAppConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.AutoField'
|
||||
name = 'wagtail.tests.search'
|
||||
label = 'searchtests'
|
||||
verbose_name = _("Wagtail search tests")
|
||||
|
|
|
@ -3,6 +3,7 @@ from django.utils.translation import gettext_lazy as _
|
|||
|
||||
|
||||
class WagtailSnippetsTestsAppConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.AutoField'
|
||||
name = 'wagtail.tests.snippets'
|
||||
label = 'snippetstests'
|
||||
verbose_name = _("Wagtail snippets tests")
|
||||
|
|
|
@ -3,6 +3,7 @@ from django.utils.translation import gettext_lazy as _
|
|||
|
||||
|
||||
class WagtailTestsAppConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.AutoField'
|
||||
name = 'wagtail.tests.testapp'
|
||||
label = 'tests'
|
||||
verbose_name = _("Wagtail tests")
|
||||
|
|
|
@ -6,3 +6,4 @@ class WagtailUsersAppConfig(AppConfig):
|
|||
name = 'wagtail.users'
|
||||
label = 'wagtailusers'
|
||||
verbose_name = _("Wagtail users")
|
||||
default_auto_field = 'django.db.models.AutoField'
|
||||
|
|
Ładowanie…
Reference in New Issue