Skip to content

Commit ef6d4dd

Browse files
committed
Fix 'other_admin' test
1 parent 9c1d86a commit ef6d4dd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

simple_history/tests/other_admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
from simple_history.admin import SimpleHistoryAdmin
33
from .models import State
44

5-
site = AdminSite(name="other_admin", app_name="other_admin")
5+
site = AdminSite(name="other_admin")
66

77
site.register(State, SimpleHistoryAdmin)

simple_history/tests/tests/test_admin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,4 +192,5 @@ def test_other_admin(self):
192192
"""
193193
self.login()
194194
state = State.objects.create()
195-
self.app.get(get_history_url(state, site="other_admin"))
195+
history_url = get_history_url(state, site="other_admin")
196+
self.app.get(history_url)

0 commit comments

Comments
 (0)