Skip to content

Commit

Permalink
fix Django 1.5/1.6 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vdboor committed Dec 15, 2016
1 parent e3580cb commit 4d5214e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fluent_contents/tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def test_copy_language_backend(self):
self.assertTrue('AA' in data['formset_forms'][0]['html'])

def _get_request(self, url, data=None):
request = self.factory.post(url, data=data)
request = self.factory.post(url, data=data or {})
request.csrf_processing_done = True
request.session = {}
request.user = self.admin_user
Expand Down

0 comments on commit 4d5214e

Please sign in to comment.