Skip to content

Commit

Permalink
Merge pull request #93 from dulaccc/fix-changed-by-not-set
Browse files Browse the repository at this point in the history
Fix tests after changes introduced by #86 Thank you
  • Loading branch information
dominno committed Nov 17, 2013
2 parents 8745ecf + 30fa6c7 commit 065cf86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tests/unit/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def test_set_changed_by_property(self):
form['title'] = "Book modified"
page = form.submit()
self.assertIn(page.status_code, [302, 200])
book = Book.objects.get(pk=self.book.pk) # refetch the obj
book = Book._default_manager.get(pk=self.book.pk) # refetch the obj
self.assertEquals(book.title, "Book not modified")
moderated_obj = ModeratedObject.objects.get_for_instance(book)
self.assertEquals(moderated_obj.changed_object.title, "Book modified")
Expand Down

0 comments on commit 065cf86

Please sign in to comment.