IntegrityError trying to translate snippets #483
Unanswered
enzedonline
asked this question in
Q&A
Replies: 1 comment 6 replies
-
I suspect what is happening here is your One way around it is to drop the unique there and set a
Note: this is all off the top of my head |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Not sure if this is a question or a bug ...
I've added a second locale to a site I'm working on, everything translates fine except one snippet class. I get an IntegrityError whenever I try to translate one of these snippets, regardless of whether it was existing pre-locale addition or new since.
It's a clusterable model with orderables, simple class, nothing special going on, it's just a method to drop translated static text into non-Wagtail pages on the site.
The only thing I can think of is that the clusterable model has no translatable fields (ie translatable_fields = []), the translatable fields are in the child orderable class. Would this trip this error?
I have another clusertable/orderable snippet class that translates fine, so this is the only real difference I see between the two.
The error I receive on a brand new instance with no orderable yet saved (makes no difference to the error, just eliminating possible causes):
The snippet models:
Any help greatly appreciated!
Django 3.2.6
Wagtail 2.14.1
Wagtail-localize 0.9.5
Beta Was this translation helpful? Give feedback.
All reactions