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!

On Thursday, May 15, 2025 at 8:04:50 AM UTC-7 Ewa Adamus wrote:

> 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 
> <http://codeinthehole.com/writing/prefer-data-migrations-to-initial-data/>
> .’  
> Is that the problem? Should I create product class in that way?
> Any suggestions?
>
> All the best
>
> Ewa
>

-- 
https://github.com/django-oscar/django-oscar
http://django-oscar.readthedocs.org/en/latest/
--- 
You received this message because you are subscribed to the Google Groups 
"django-oscar" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-oscar+unsubscr...@googlegroups.com.
To view this discussion, visit 
https://groups.google.com/d/msgid/django-oscar/91822a0d-d044-4d69-804f-fb73938e0c9an%40googlegroups.com.

Reply via email to