Add Django appconfig for overriding the name in the admin

This commit is contained in:
Jannis Leidel 2016-09-20 12:41:44 +02:00
parent 6fbde482af
commit 70fb31c190
2 changed files with 9 additions and 0 deletions

View file

@ -1 +1,3 @@
__version__ = "2.0"
default_app_config = 'dbtemplates.apps.DBTemplatesConfig'

7
dbtemplates/apps.py Normal file
View file

@ -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')