This commit is contained in:
rachidatecs 2023-06-29 18:21:41 -04:00
parent de36ca9cf7
commit 15688b8fdb
No known key found for this signature in database
GPG key ID: 3CEBBFA7325E5525
3 changed files with 49 additions and 2 deletions

View file

@ -36,6 +36,7 @@ class ListHeaderAdmin(AuditedAdmin):
# Pass the filtered values to the template context
extra_context['filters'] = filters
extra_context['search_query'] = request.GET.get('q', '') # Assuming the search query parameter is 'q'
logger.debug(f'changelist_view {extra_context}')
return super().changelist_view(request, extra_context=extra_context)
def get_filters(self, request):