Skip to content

Commit

Permalink
Django Admin: customize text
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Jun 10, 2021
1 parent ee6ef77 commit 2b8a629
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
17 changes: 12 additions & 5 deletions src/core/urls.py
Expand Up @@ -5,26 +5,33 @@
from django.urls import path, include, reverse_lazy
from django.utils.translation import gettext_lazy as _

from rest_framework import routers, permissions
from drf_yasg.views import get_schema_view
from drf_yasg import openapi

from rest_framework import routers, permissions

from aids.sitemaps import AidSitemap
from core.utils import RedirectAidDetailView
from aids.sitemaps import AidSitemap
from data.sitemaps import DataSitemap
from home.sitemaps import HomeSitemap
from pages.sitemaps import PageSitemap
from search.sitemaps import SearchSitemap


router = routers.DefaultRouter()


# Admin
admin.site.site_header = "Adminsitration d'Aides-territoires" # default: "Django Administration" # noqa
admin.site.index_title = 'Accueil' # default: "Site administration" # noqa
admin.site.site_title = "Adminsitration d'Aides-territoires" # default: "Django site admin" # noqa


# API
schema_view = get_schema_view(
openapi.Info(
title=_('Aides-Territoires API'),
title='Aides-territoires API',
default_version=f'v{settings.CURRENT_API_VERSION}',
description=_('API Aide'),
# description='',
terms_of_service=reverse_lazy('legal_mentions'),
contact=openapi.Contact(email='tech@aides-territoires.beta.gouv.fr'),
license=openapi.License(name="« Licence Ouverte v2.0 » d'Etalab"),
Expand Down
6 changes: 0 additions & 6 deletions src/locales/fr/LC_MESSAGES/django.po
Expand Up @@ -1278,12 +1278,6 @@ msgstr "Thématique"
msgid "Category"
msgstr "Sous-thématique"

msgid "Aides-Territoires API"
msgstr ""

msgid "API Aide"
msgstr ""

msgid "accounts/"
msgstr "comptes/"

Expand Down

0 comments on commit 2b8a629

Please sign in to comment.