How to Solve NameError: name 'DateFieldListFilter' is not defined -- django

Solution: Import the 'DateFieldListFilter' module

To Solve the error, add the following line to the top of your code.

from django.contrib.admin.filters import DateFieldListFilter

 

For more information:
Python django DateFieldListFilter