diff --git a/pretalx_musicrate/__init__.py b/pretalx_musicrate/__init__.py index 23f0070..9da2f8f 100644 --- a/pretalx_musicrate/__init__.py +++ b/pretalx_musicrate/__init__.py @@ -1 +1 @@ -__version__ = "0.14.3" +__version__ = "0.15.0" diff --git a/pretalx_musicrate/forms.py b/pretalx_musicrate/forms.py index 83d03c1..b4d9fc9 100644 --- a/pretalx_musicrate/forms.py +++ b/pretalx_musicrate/forms.py @@ -83,3 +83,10 @@ class AssigneeForm(forms.ModelForm): class EnhancedSubmissionFilterForm(SubmissionFilterForm): require_all_tags = forms.BooleanField(required=False, label=_("require all")) + + def filter_queryset(self, qs): + qs = super().filter_queryset(qs) + if self.cleaned_data.get("require_all_tags"): + for tag in self.cleaned_data.get("tags"): + qs = qs.filter(tags__in=[tag]) + return qs diff --git a/pretalx_musicrate/templates/pretalx_musicrate/enhanced_list.html b/pretalx_musicrate/templates/pretalx_musicrate/enhanced_list.html index 8bd6ded..d90b5af 100644 --- a/pretalx_musicrate/templates/pretalx_musicrate/enhanced_list.html +++ b/pretalx_musicrate/templates/pretalx_musicrate/enhanced_list.html @@ -29,7 +29,7 @@