Skip to content

Commit 7dbc000

Browse files
author
Ross Mechanic
authored
Fix admin template issues on django trunk (#474)
1 parent 60af03c commit 7dbc000

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

runtests.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
'django.contrib.auth',
2626
'django.contrib.sessions',
2727
'django.contrib.admin',
28+
'django.contrib.messages',
2829
]
2930

3031
DEFAULT_SETTINGS = dict(
@@ -45,6 +46,7 @@
4546
'OPTIONS': {
4647
'context_processors': [
4748
'django.contrib.auth.context_processors.auth',
49+
'django.contrib.messages.context_processors.messages',
4850
]
4951
},
5052
}],

simple_history/tests/tests/test_admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def test_history_user_on_save_in_admin(self):
194194
self.assertEqual(Poll.history.get().history_user, self.user)
195195

196196
# Ensure polls saved on edit page in admin interface save correct user
197-
change_page = changelist_page.click("Poll object")
197+
change_page = changelist_page.click("Poll object", index=1)
198198
change_page.form.submit()
199199
self.assertEqual([p.history_user for p in Poll.history.all()],
200200
[self.user, self.user])

0 commit comments

Comments
 (0)