How to Solve NameError: name 'models' is not defined -- audit

Solution: Import the 'models' module

# Add the following line to the top of your code
from audit import models

 

For more information:
audit models