Rename the Django admin header to Адресный сервис.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ilya Mukhortov 2026-09-18 10:26:09 +10:00
parent 71136db786
commit fa6c1db46d
2 changed files with 13 additions and 0 deletions

View File

@ -16,6 +16,15 @@ def admin_client(db):
return client
@pytest.mark.django_db
def test_admin_site_header(admin_client):
response = admin_client.get(admin_url())
assert response.status_code == 200
html = response.content.decode()
assert "Адресный сервис" in html
assert "Администрирование Django" not in html
@pytest.mark.django_db
def test_address_admin_has_children_filter_link(admin_client):
parent = AddressObject.objects.create(

View File

@ -4,6 +4,10 @@ from django.urls import path
from address.api import api
admin.site.site_header = "Адресный сервис"
admin.site.site_title = "Адресный сервис"
admin.site.index_title = "Администрирование"
prefix = f"{settings.URL_PREFIX}/" if settings.URL_PREFIX else ""
urlpatterns = [