From 70fb31c19060b0e77af9dc47aa20ebb427248991 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Tue, 20 Sep 2016 12:41:44 +0200 Subject: [PATCH] Add Django appconfig for overriding the name in the admin --- dbtemplates/__init__.py | 2 ++ dbtemplates/apps.py | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 dbtemplates/apps.py diff --git a/dbtemplates/__init__.py b/dbtemplates/__init__.py index f2dc0e4..d1f79bc 100644 --- a/dbtemplates/__init__.py +++ b/dbtemplates/__init__.py @@ -1 +1,3 @@ __version__ = "2.0" + +default_app_config = 'dbtemplates.apps.DBTemplatesConfig' diff --git a/dbtemplates/apps.py b/dbtemplates/apps.py new file mode 100644 index 0000000..d913c95 --- /dev/null +++ b/dbtemplates/apps.py @@ -0,0 +1,7 @@ +from django.apps import AppConfig +from django.utils.translation import ugettext_lazy as _ + + +class DBTemplatesConfig(AppConfig): + name = 'dbtemplates' + verbose_name = _('Database templates')