Problem with the Product change page (Grappelli installed)

30 views
Skip to first unread message

Marco G

unread,
Nov 25, 2014, 1:26:17 PM11/25/14
to satchm...@googlegroups.com
We are having an issue when editing or adding a Product via the product change page (/admin/product/product/add/) and I am wondering if someone has encountered the issue or can try to recreate it in a similar environment.

The issue is that when saving the Product, the `This field is required.` validation error is presented the Price inline group if there are any empty Price items present. The error message goes away if all the empty items are removed from the change form via their respective `delete item` buttons. This behaviour does not occur with all the other tabular inlines in the Product change form.

The installed apps are Satchmo==0.9.3 and django-grappelli==2.6.2

If anyone can confirm that they have the same problem under this context, it would help a lot.

thanks,

Marco

Olivier Lauret

unread,
Dec 3, 2014, 4:11:09 PM12/3/14
to satchm...@googlegroups.com
Hi Marco,

I don't know if we are talking about the same issue here, but I had an issue a few months ago when I upgraded to the latest on all packages. The issue was related to admin.TabularInline. Here is the solution I have implemented:

diff --git a/satchmo/apps/product/admin.py b/satchmo/apps/product/admin.py
--- a/satchmo/apps/product/admin.py
+++ b/satchmo/apps/product/admin.py
@@ -94,7 +94,7 @@
 
 class Price_Inline(admin.TabularInline):
     model = Price
-    extra = 2
+    extra = 0
 
 class ProductImage_Inline(admin.StackedInline):
     model = ProductImage


Hope it helps.

Regards,
Olivier




--
You received this message because you are subscribed to the Google Groups "Satchmo users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to satchmo-user...@googlegroups.com.
To post to this group, send email to satchm...@googlegroups.com.
Visit this group at http://groups.google.com/group/satchmo-users.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages