Skip to content

Commit

Permalink
fix test for < Django 1.6 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Arulnathan committed Jan 22, 2014
1 parent 26464b7 commit bebdda0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def test_create_pending_returns_correct_state_log(self):
def test_commit_pending_for_object_saves_log(self):
log = StateLog.objects.create_pending(**self.create_kwargs)
StateLog.objects.commit_pending_for_object(self.article)
persisted_log = StateLog.objects.order_by('-pk').first()
persisted_log = StateLog.objects.order_by('-pk').all()[0]
self.assertEqual(log.state, persisted_log.state)
self.assertEqual(log.transition, persisted_log.transition)
self.assertEqual(log.content_object, persisted_log.content_object)
Expand Down

0 comments on commit bebdda0

Please sign in to comment.