Skip to content

Commit

Permalink
remove unused filter method
Browse files Browse the repository at this point in the history
  • Loading branch information
longhotsummer committed Dec 11, 2023
1 parent e38c930 commit 4754f3b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions indigo_app/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,16 +608,6 @@ def filter_queryset(self, queryset, exclude=None):

return queryset

def filter_document_queryset(self, queryset):
status = self.cleaned_data.get('status')

if status == ['draft']:
queryset = queryset.filter(draft=True)
elif status == ['published']:
queryset = queryset.filter(draft=False)

return queryset


class WorkflowFilterForm(forms.Form):
state = forms.ChoiceField(choices=[('open', 'open'), ('closed', 'closed')])
Expand Down

0 comments on commit 4754f3b

Please sign in to comment.