deployment - problem with defining product

22 views
Skip to first unread message

Ewa Adamus

unread,
May 15, 2025, 11:04:50 AMMay 15
to django...@googlegroups.com
Hello,
I deployed my Django-Oscar project and all is ok. But I’ve problem with defining new product with dashboard. Can't save:
Exception IntegrityError
Exception Value:
NOT NULL constraint failed: catalogue_product.priority
I’ve defined partner and product type (thought is equivalent of product class).
Generally I don’t understand the idea with product class: 'For a deployment setup, we recommend creating product classes as data migration.’  
Is that the problem? Should I create product class in that way?
Any suggestions?

All the best

Ewa

Sherif Korashy

unread,
May 15, 2025, 4:36:21 PMMay 15
to django-oscar
Hi Ewa,

Did you add "priority" field to your Product model? It is not in the original Oscar AbstractProduct. I believe the problem is that you need to set null=True for this field.

Thanks!

Reply all
Reply to author
Forward
Message has been deleted
0 new messages