any solutions guys on the ERROR admin E108 on list_display[2] attributes not callable

2023-01-10 Thread E Mollz
: (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

Re: Data migrations ran multiple times during deploy

2023-01-10 Thread Harris Lapiroff
Thanks, all for the responses! They're helpful, particularly: - Using a separate single service to run migrations - django-syzygy looks interesting and might also solve another issue we've been having lately trying to achieve zero-downtime deploys Best, Harris On Sunday, January 8, 202

Re: any solutions guys on the ERROR admin E108 on list_display[2] attributes not callable

2023-01-10 Thread 'Kasper Laudrup' via Django users
On 10/01/2023 12.53, E Mollz wrote: : (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'. Unfortunately you've run into one of the issues modern science has not yet been abl

I want to make an accounting application with django.

2023-01-10 Thread KEMAL TK.
merhaba arkadaşlar benim KEMAL. django ile muhasebe uygulaması yaptrmak istiyorum. içerik neler olacağı hazır. benimle birebir çalışacak güvenilir yazılımcı arıyorum. ve 2. projem django ile eticaret yazılımı yaptırmak isityorum. -- You received this message because you are subscribed to the G

Re: any solutions guys on the ERROR admin E108 on list_display[2] attributes not callable

2023-01-10 Thread David Nugent
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" To "Django users" Date 1/10/2023 1

Re: any solutions guys on the ERROR admin E108 on list_display[2] attributes not callable

2023-01-10 Thread ASAMOAH EMMANUEL
The problem here is that list_display[2] is referring to an attribute or method that does not exist. You will need to either add the attribute or method to the Product class, or remove the item from list_display. If you are looking to display the stock of a product, you could add a method to the Pr