NameError: name 'Product' is not defined [Ultimate Django Part 1, The Admin Site, Lecture 16]

I am getting the exact same error and cannot figure it out. Anyone know what’s going on?

You have to import it up top with:

from store.models import Product

:+1:

1 Like