diff --git a/docs/member_manual.rst b/docs/member_manual.rst index 762e05434be7becadb9bb4fd148c461955b4c5bd..8dee9a3172b5796548c2376b5b7d0690561dc5bf 100644 --- a/docs/member_manual.rst +++ b/docs/member_manual.rst @@ -129,7 +129,8 @@ to only display the announcements entered by yourself, click on the left button :scale: 60 % enter a search text into the field of the second row to display only the announcements that are containing the entered -text fragment. +text fragment. if the entered text represents a number then it will be interpreted as a member id and only the +announcements published by the member with this member id will be displayed. the following three buttons, shown at the bottom of all announcements, allow to expand or collapse the announcement categories all together: diff --git a/kairos/__init__.py b/kairos/__init__.py index 30251e5361478fa01e0624261484c064e5db90fc..0cf83f4a276233991def4928b8ab2df607b149cc 100644 --- a/kairos/__init__.py +++ b/kairos/__init__.py @@ -63,4 +63,4 @@ TODO: """ -__version__ = '0.3.93' +__version__ = '0.3.94' diff --git a/kairosgomera.eu.pythonanywhere.com.error.log_231117.pdf b/kairosgomera.eu.pythonanywhere.com.error.log_231117.pdf deleted file mode 100644 index c6e54b27df9abed3443b1c54344f5eee9127efb8..0000000000000000000000000000000000000000 Binary files a/kairosgomera.eu.pythonanywhere.com.error.log_231117.pdf and /dev/null differ diff --git a/kairosgomera.eu.pythonanywhere.com.server.log_231117.pdf b/kairosgomera.eu.pythonanywhere.com.server.log_231117.pdf deleted file mode 100644 index 4da4da212a04d537490192cb70e3924a998508d6..0000000000000000000000000000000000000000 Binary files a/kairosgomera.eu.pythonanywhere.com.server.log_231117.pdf and /dev/null differ diff --git a/mbr_announcements/views.py b/mbr_announcements/views.py index 963dd1eb12c8a4dfae59e1be9dd7d5fa07e15336..20d2d66a1a92cf1cc114b93d7ef50a15778c0f92 100644 --- a/mbr_announcements/views.py +++ b/mbr_announcements/views.py @@ -63,7 +63,10 @@ def get_queryset(request): user_filter = {} search_txt = request.GET.get('q') if search_txt: - user_filter['ma_description__contains'] = search_txt + if search_txt.isnumeric(): # entered member id? + user_filter['ma_user__username'] = search_txt + else: + user_filter['ma_description__contains'] = search_txt if request.GET.get('l') == '1': user_filter['ma_language'] = requested_language() if request.GET.get('u') == '1':