From 17a0cfbde0f448a77e156a679e4ab4c5beb9ec7f Mon Sep 17 00:00:00 2001 From: moanos Date: Sat, 21 Jun 2025 07:42:51 +0200 Subject: [PATCH] feat: allow filtering for rescues orgs without external source --- src/fellchensammlung/admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fellchensammlung/admin.py b/src/fellchensammlung/admin.py index 26e4a1d..d0a69f1 100644 --- a/src/fellchensammlung/admin.py +++ b/src/fellchensammlung/admin.py @@ -1,6 +1,7 @@ import csv from django.contrib import admin +from django.contrib.admin import EmptyFieldListFilter from django.http import HttpResponse from django.utils.html import format_html from django.urls import reverse @@ -103,7 +104,7 @@ class SpeciesSpecificURLInline(admin.StackedInline): class RescueOrganizationAdmin(admin.ModelAdmin): search_fields = ("name", "description", "internal_comment", "location_string","location__city") list_display = ("name", "trusted", "allows_using_materials", "website") - list_filter = ("allows_using_materials", "trusted",) + list_filter = ("allows_using_materials", "trusted",("external_source_identifier", EmptyFieldListFilter)) inlines = [ SpeciesSpecificURLInline,