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

Solution: Import the 'Min' module

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

from django import Min

 

For more information:
Python django Min