Add MultiSelectRelatedOnlyDropdownFilter

master
Henri J. Norden 2024-01-18 17:10:40 +02:00
parent 506949ffd8
commit c926b8bbbf
2 changed files with 8 additions and 1 deletions

View File

@ -78,11 +78,14 @@ Filter classes
Multi select filter for relation fields.
* **MultiSelectRelatedOnlyFilter**
Multi select filter for related fields with choices limited to the objects
involved in that relation
involved in that relation.
* **MultiSelectDropdownFilter**
Multi select dropdown filter for all kind of fields.
* **MultiSelectRelatedDropdownFilter**
Multi select dropdown filter for relation fields.
* **MultiSelectRelatedOnlyDropdownFilter**
Multi select dropdown filter for relation fields with choices limited to the objects
involved in that relation.
* **BooleanAnnotationFilter**
Filter for annotated boolean-attributes.

View File

@ -283,6 +283,10 @@ class MultiSelectRelatedDropdownFilter(MultiSelectRelatedFilter):
}
class MultiSelectRelatedOnlyDropdownFilter(MultiSelectRelatedDropdownFilter, MultiSelectRelatedOnlyFilter):
pass
# Filter for annotated attributes.
# NOTE: The code is more or less the same than admin.FieldListFilter but
# we must not subclass it. Otherwise django's filter setup routine wants a real