Hello!
I have two models EmployeeContact (snippet) and EmployeePage (Page) with InlinePanel, connected to the first model EmployeeContact
All these models are localized and have more than 1 language
If I add EmployeeContact to existed EmployeePage - it's all okay, snippet is created and linked to EmployeePage
But if I create EmployeePage with filled EmployeeContacts inline - I get IntegrityError
I can be wrong, but it can be caused by such situations - when I create EmployeePage in eng (main lang), it also creates in other lang, and it try to create snippet EmployeeContact only for locale EN for ALL pages - and of course it raises Integrity Error ??
Hello! I have two models EmployeeContact (snippet) and EmployeePage (Page) with InlinePanel, connected to the first model EmployeeContact All these models are localized and have more than 1 language
If I add EmployeeContact to existed EmployeePage - it's all okay, snippet is created and linked to EmployeePage But if I create EmployeePage with filled EmployeeContacts inline - I get IntegrityError
django.db.utils.IntegrityError: duplicate key value violates unique constraint "company_employeecontact_translation_key_locale_id_bb11fe2f_uniq" DETAIL: Key (translation_key, locale_id)=(4a531763-ecae-4a42-805e-9f2794ce0117, 5) already exists.
I can be wrong, but it can be caused by such situations - when I create EmployeePage in eng (main lang), it also creates in other lang, and it try to create snippet EmployeeContact only for locale EN for ALL pages - and of course it raises Integrity Error ??
Anyway THANKS!