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

Solution: Import the 'Parcel' module

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

 

For more information:
.models Parcel