Rename the Django admin header to Адресный сервис.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
71136db786
commit
fa6c1db46d
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Reference in New Issue