File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
simple_history/tests/tests Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 25
25
'django.contrib.auth' ,
26
26
'django.contrib.sessions' ,
27
27
'django.contrib.admin' ,
28
+ 'django.contrib.messages' ,
28
29
]
29
30
30
31
DEFAULT_SETTINGS = dict (
45
46
'OPTIONS' : {
46
47
'context_processors' : [
47
48
'django.contrib.auth.context_processors.auth' ,
49
+ 'django.contrib.messages.context_processors.messages' ,
48
50
]
49
51
},
50
52
}],
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ def test_history_user_on_save_in_admin(self):
194
194
self .assertEqual (Poll .history .get ().history_user , self .user )
195
195
196
196
# 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 )
198
198
change_page .form .submit ()
199
199
self .assertEqual ([p .history_user for p in Poll .history .all ()],
200
200
[self .user , self .user ])
You can’t perform that action at this time.
0 commit comments