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