django-modeladmin

Django SimpleListFilter: ValueError not enough values to unpack (expected 2, got 0)

Django SimpleListFilter: ValueError not enough values to unpack (expected 2, got 0) Question: Context: I’m creating a custom input filter in Django using the SimpleListFilter class. I’ve followed the steps in here https://hakibenita.com/how-to-add-a-text-filter-to-django-admin, but I’m encountering a ValueError when trying to use the filter. Here is my code: filters.py: from django.contrib import admin from django.db.models …

Total answers: 1