Skip to content

Fixed #36539 -- Admin uses related field verbose_name attribute if available #19704

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test: added new field to post data
  • Loading branch information
leandrodesouzadev committed Aug 6, 2025
commit 67b41107bfaa81aebf3a7a1a85d2318af6b6a21d
3 changes: 2 additions & 1 deletion tests/admin_utils/test_logentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def setUpTestData(cls):
cls.user = User.objects.create_superuser(
username="super", password="secret", email="super@example.com"
)
cls.site = Site.objects.create(domain="example.org")
cls.site = Site.objects.create(domain="example.org", owner="Tom")
cls.a1 = Article.objects.create(
site=cls.site,
title="Title",
Expand Down Expand Up @@ -148,6 +148,7 @@ def test_logentry_change_message_formsets(self):
)
post_data = {
"domain": "example.com", # domain changed
"owner": "Tom",
"admin_articles-TOTAL_FORMS": "5",
"admin_articles-INITIAL_FORMS": "2",
"admin_articles-MIN_NUM_FORMS": "0",
Expand Down
Loading