in django admin interface, more precisely in changelist, i'd have filters excluding foods of list. however, having 10 filters have same options (included, excluded) on same type of field seems bit impratical.
so idea implement multiple select in filters, in 1 box can rule out multiple type of food. tried overriding filter.html , dozen of plugins, nothing worked , i'm out of ideas.
here want obtain in filters . out there have idea of whether it's possible or not, , if yes how ?
thanks !
well, managed solve problem myself today :
first step create custom filter.html 1 filter, , add multiple tag in select. however, easy if worked: kept filtering farthest element selected in list .
so, instead of using self.value()
in queryset()
, never returned list, did request.get.getlist('[your_parameter_name]')
full list, existed wsgirequest, in changelist view, django uses request.get.items()
, fetchs last item.
hope this'll later!
Comments
Post a Comment