[Answered ]-List filter to be conditional (according to results)

2๐Ÿ‘

I might think that u have to select the Next Filter according to the previous Filter.. Try to get request from the url where you pass the data

def lookups(self, request, model_admin):

    if request.GET.get('previous_filter') == 'True':
       return []

    if request.GET.get('current_filter') == 'False':
        return [
          # Pass your List Here
        ]
    if self.value() is None:
        return []
๐Ÿ‘คJay Dave

Leave a comment