Skip to content

Commit 695b658

Browse files
authored
Update usage.rst
Make the advantages of django-simple-history over django-reversion clear (this was the reason why I choose django-simple-history).
1 parent f749710 commit 695b658

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/usage.rst

+2
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,5 @@ records for all ``Choice`` instances can be queried by using the manager on the
168168
<simple_history.manager.HistoryManager object at 0x1cc4290>
169169
>>> Choice.history.all()
170170
[<HistoricalChoice: Choice object as of 2010-10-25 18:05:12.183340>, <HistoricalChoice: Choice object as of 2010-10-25 18:04:59.047351>]
171+
172+
Because the history is model, you can also filter it like regulary QuerySets, a.k. Choice.history.filter(choice_text='Not Much') will work!

0 commit comments

Comments
 (0)