Allways remove the curren version item from the historical list

remotes/origin/enhancement/email-actions
David Barragán Merino 2013-11-21 18:44:02 +01:00
parent e4ee4dac60
commit 85a6662ed7
1 changed files with 3 additions and 0 deletions

View File

@ -53,6 +53,9 @@ class WikiViewSet(ModelCrudViewSet):
filter_backends = (filters.IsProjectMemberFilterBackend,)
filter_fields = ["project", "slug"]
def get_historical_queryset(self):
return super().get_historical_queryset()[1:]
def pre_conditions_on_save(self, obj):
super().pre_conditions_on_save(obj)