Skip to content

Commit a3dd0ee

Browse files
committed
convert .url to location since it isnt in 1.4 and 1.5
1 parent 6771114 commit a3dd0ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

simple_history/tests/tests/test_admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def test_response_change(self):
281281
with override_settings(SIMPLE_HISTORY_EDIT=True):
282282
response = admin.response_change(request, poll)
283283

284-
self.assertEqual(response.url, '/awesome/url/')
284+
self.assertEqual(response['Location'], '/awesome/url/')
285285

286286
def test_response_change_change_history_setting_off(self):
287287
"""

0 commit comments

Comments
 (0)