Filters
hypha.apply.projects.filters
¶
InvoiceListFilter
¶
Bases: FilterSet
fund
class-attribute
instance-attribute
¶
fund = Select2ModelMultipleChoiceFilter(label=gettext_lazy('Funds'), queryset=get_used_funds, field_name='project__submission__page')
status
class-attribute
instance-attribute
¶
status = Select2MultipleChoiceFilter(label=gettext_lazy('Status'), choices=INVOICE_STATUS_CHOICES)
lead
class-attribute
instance-attribute
¶
lead = Select2ModelMultipleChoiceFilter(label=gettext_lazy('Lead'), queryset=get_project_leads, field_name='project__lead')
ProjectListFilter
¶
Bases: FilterSet
REPORTING_CHOICES
class-attribute
instance-attribute
¶
project_fund
class-attribute
instance-attribute
¶
project_fund = Select2ModelMultipleChoiceFilter(field_name='submission__page', label=gettext_lazy('Funds'), queryset=get_used_funds)
project_lead
class-attribute
instance-attribute
¶
project_lead = Select2ModelMultipleChoiceFilter(field_name='lead', label=gettext_lazy('Lead'), queryset=get_project_leads)
project_status
class-attribute
instance-attribute
¶
project_status = Select2MultipleChoiceFilter(field_name='status', label=gettext_lazy('Status'), choices=PROJECT_STATUS_CHOICES)
query
class-attribute
instance-attribute
¶
reporting
class-attribute
instance-attribute
¶
reporting = ChoiceFilter(choices=REPORTING_CHOICES, method='filter_reporting', widget=Select2Widget(attrs={'data-placeholder': 'Reporting', 'data-minimum-results-for-search': -1}))
Meta
¶
filter_reporting
¶
Source code in hypha/apply/projects/filters.py
DateRangeInputWidget
¶
Bases: SuffixedMultiWidget
Source code in hypha/apply/projects/filters.py
template_name
class-attribute
instance-attribute
¶
ReportingFilter
¶
Bases: FilterSet
current_report_status
class-attribute
instance-attribute
¶
current_report_status = Select2MultipleChoiceFilter(label=gettext_lazy('Status'), choices=[('Not started', 'Not started'), ('In progress', 'In progress'), ('Submitted', 'Submitted')])
ReportListFilter
¶
Bases: FilterSet
reporting_period
class-attribute
instance-attribute
¶
reporting_period = DateFromToRangeFilter(label=gettext_lazy('Reporting Period'), method='filter_reporting_period', widget=DateRangeInputWidget)
submitted
class-attribute
instance-attribute
¶
submitted = DateFromToRangeFilter(widget=DateRangeInputWidget)