We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
as_of
1 parent 887d44d commit 7bfb406Copy full SHA for 7bfb406
simple_history/tests/tests/test_manager.py
@@ -79,3 +79,9 @@ def test_create_and_delete(self):
79
doc_change.save()
80
docs_as_of_tmw = models.Document.history.as_of(now + timedelta(days=1))
81
self.assertFalse(list(docs_as_of_tmw))
82
+
83
+ def test_multiple(self):
84
+ document1 = models.Document.objects.create()
85
+ document2 = models.Document.objects.create()
86
+ historical = models.Document.history.as_of(datetime.now() + timedelta(days=1))
87
+ self.assertEqual(list(historical), [document1, document2])
0 commit comments