Skip to content
Snippets Groups Projects
Verified Commit 2c5aed3c authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix call to Count for filtered remarks. Advances #46.

parent a9cfe1ab
No related branches found
No related tags found
Loading
......@@ -202,7 +202,8 @@ def full_register_group(request: HttpRequest, id_: int) -> HttpResponse:
for personal_note_filter in personal_note_filters:
persons = persons.annotate(
Count(
personal_notes__remarks__iregex=personal_note_filter.regex,
'personal_notes__remarks',
filter=Q{personal_notes__remarks__iregex=personal_note_filter.regex),
output_field='personal_notes_with_%s' % personal_note_filter.identifier
)
)
......
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