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

Erorr: name 'Lower' is not defined

NameError: name 'Lower' is not defined

Solution: name 'Lower' is not defined

# Add the following line to the top of your code
from django.db.models.functions import Lower

 

For more information:
Django Lower