Add metadata module and read package attrs dynamically.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
from admin_interface.metadata import (
|
||||
__author__,
|
||||
__copyright__,
|
||||
__description__,
|
||||
__license__,
|
||||
__title__,
|
||||
__version__,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"__author__",
|
||||
"__copyright__",
|
||||
"__description__",
|
||||
"__license__",
|
||||
"__title__",
|
||||
"__version__",
|
||||
]
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
__author__ = "Fabio Caccamo"
|
||||
__copyright__ = "Copyright (c) 2016-present Fabio Caccamo"
|
||||
__description__ = (
|
||||
"django's default admin interface with superpowers - "
|
||||
"customizable themes, popup windows replaced by modals and many other features."
|
||||
)
|
||||
__email__ = "fabio.caccamo@gmail.com"
|
||||
__license__ = "MIT"
|
||||
__title__ = "django-admin-interface"
|
||||
__version__ = "0.24.2"
|
||||
@@ -8,8 +8,8 @@ from django.urls import NoReverseMatch, reverse
|
||||
from django.utils import translation
|
||||
|
||||
from admin_interface.cache import get_cached_active_theme, set_cached_active_theme
|
||||
from admin_interface.metadata import __version__
|
||||
from admin_interface.models import Theme
|
||||
from admin_interface.version import __version__
|
||||
|
||||
register = template.Library()
|
||||
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
__version__ = "0.24.2"
|
||||
Reference in New Issue
Block a user