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.
1 parent 9deb217 commit 9c9b735Copy full SHA for 9c9b735
simple_history/manager.py
@@ -34,9 +34,6 @@ def get_queryset(self):
34
key_name = self.instance._meta.pk.name
35
return self.get_super_queryset().filter(**{key_name: self.instance.pk})
36
37
- def get_excluded_fields(self):
38
- return getattr(self.model, "_history_excluded_fields", [])
39
-
40
def most_recent(self):
41
"""
42
Returns the most recent copy of the instance available in the history.
@@ -48,7 +45,7 @@ def most_recent(self):
48
45
)
49
46
50
47
tmp = []
51
- excluded_fields = self.get_excluded_fields()
+ excluded_fields = getattr(self.model, "_history_excluded_fields", [])
52
53
for field in self.instance._meta.fields:
54
if field.name in excluded_fields:
0 commit comments