How to Solve NameError: name 'Coalesce' is not defined -- django
Solution: Import the 'Coalesce' module
To Solve the error, add the following line to the top of your code.
from django.db.models.functions import Coalesce
For more information:
Python django Coalesce