diff --git a/biscuit/apps/alsijil/views.py b/biscuit/apps/alsijil/views.py index fda576c06769966fce1af2174a6403fecf17b97b..6aa1734f3417899ddfa3e9610106d40398a3bdcd 100644 --- a/biscuit/apps/alsijil/views.py +++ b/biscuit/apps/alsijil/views.py @@ -203,7 +203,7 @@ def full_register_group(request: HttpRequest, id_: int) -> HttpResponse: persons = persons.annotate( Count( 'personal_notes__remarks', - filter=Q{personal_notes__remarks__iregex=personal_note_filter.regex), + filter=Q(personal_notes__remarks__iregex=personal_note_filter.regex), output_field='personal_notes_with_%s' % personal_note_filter.identifier ) )