Skip to content
Snippets Groups Projects
Commit ae7839e4 authored by sandeepsajan0's avatar sandeepsajan0
Browse files

fix: Filter functionality by adding field_name in filterset fileds

parent 753cde24
No related branches found
No related tags found
No related merge requests found
......@@ -43,9 +43,9 @@ class ProjectListFilter(filters.FilterSet):
(1, 'Behind schedule'),
)
project_fund = Select2ModelMultipleChoiceFilter(label='Funds', queryset=get_used_funds)
project_lead = Select2ModelMultipleChoiceFilter(label='Lead', queryset=get_project_leads)
project_status = Select2MultipleChoiceFilter(label='Status', choices=PROJECT_STATUS_CHOICES)
project_fund = Select2ModelMultipleChoiceFilter(field_name="submission__page", label='Funds', queryset=get_used_funds)
project_lead = Select2ModelMultipleChoiceFilter(field_name="lead", label='Lead', queryset=get_project_leads)
project_status = Select2MultipleChoiceFilter(field_name="status", label='Status', choices=PROJECT_STATUS_CHOICES)
query = filters.CharFilter(field_name='title', lookup_expr="icontains", widget=forms.HiddenInput)
reporting = filters.ChoiceFilter(
choices=REPORTING_CHOICES,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment