2021-03-24 06:43:05 +00:00
|
|
|
from django.contrib.admin import AdminSite
|
2022-10-28 14:35:26 +00:00
|
|
|
from django.utils.translation import gettext_lazy
|
2021-03-24 06:43:05 +00:00
|
|
|
from django.contrib.auth import get_user_model
|
|
|
|
|
2021-04-17 06:30:26 +00:00
|
|
|
from dbsettings.models import Setting
|
|
|
|
|
2021-03-24 06:43:05 +00:00
|
|
|
class JokerAdmin(AdminSite):
|
|
|
|
# Text to put at the end of each page's <title>.
|
2022-10-28 14:35:26 +00:00
|
|
|
site_title = gettext_lazy('JourneyJoker Administration')
|
2021-03-24 06:43:05 +00:00
|
|
|
|
|
|
|
# Text to put in each page's <h1> (and above login form).
|
2022-10-28 14:35:26 +00:00
|
|
|
site_header = gettext_lazy('JourneyJoker Administration')
|
2021-03-24 06:43:05 +00:00
|
|
|
|
|
|
|
# Text to put at the top of the admin index page.
|
2022-10-28 14:35:26 +00:00
|
|
|
index_title = gettext_lazy('JourneyJoker Administration')
|
2021-03-24 06:43:05 +00:00
|
|
|
|
|
|
|
joker_admin = JokerAdmin()
|
2021-04-17 06:30:26 +00:00
|
|
|
|
|
|
|
joker_admin.register(Setting)
|