This is due to an error in your admin class (ProductAdmin in this case)

The error message points directly where and what you need to check (spoiler: list_display item, 3rd field “stock”, which is incorrect).



------ Original Message ------
From "E Mollz" <elishamo...@gmail.com>
To "Django users" <django-users@googlegroups.com>
Date 1/10/2023 10:53:37 PM
Subject any solutions guys on the ERROR admin E108 on list_display[2] attributes not callable

<class 'products.admin.ProductAdmin'>: (admin.E108) The value of 'list_display[2]' refers to 'stock', which is not a callable, an attribute of 'ProductAdmin', or an attribute or method on 'products.Product'.


--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/em7ab82c5a-9ea2-4ec1-93a9-422b04204273%40a52b871d.com.

Attachment: pgpEM1HZWmt1B.pgp
Description: PGP signature

Reply via email to