[Fixed]-The value of 'prepopulated_fields' refers to 'slug', which is not an attribute of 'shop.Product'

1👍

You have defined two classes called Product in your models.py. The second one, which contains no fields, hides the first one, and it is the second one that is being used in the admin registration. Remove that second definition.

Leave a comment