Allways remove the curren version item from the historical list
parent
e4ee4dac60
commit
85a6662ed7
|
@ -53,6 +53,9 @@ class WikiViewSet(ModelCrudViewSet):
|
||||||
filter_backends = (filters.IsProjectMemberFilterBackend,)
|
filter_backends = (filters.IsProjectMemberFilterBackend,)
|
||||||
filter_fields = ["project", "slug"]
|
filter_fields = ["project", "slug"]
|
||||||
|
|
||||||
|
def get_historical_queryset(self):
|
||||||
|
return super().get_historical_queryset()[1:]
|
||||||
|
|
||||||
def pre_conditions_on_save(self, obj):
|
def pre_conditions_on_save(self, obj):
|
||||||
super().pre_conditions_on_save(obj)
|
super().pre_conditions_on_save(obj)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue