-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translation of models with ParentalManyToManyField #564
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @hpoul,
Thank you for this PR. Can you rebase on latest main
and re-generate the migration? we reduced the test app migrations to just 0001_initial
This works well to sync the values, but they are not exposed in the edit translation UI which could potentially cause additional confusion
Could you look at handling that too, especially when it comes to Page models. https://github.com/wagtail/wagtail-localize/blob/main/wagtail_localize/views/edit_translation.py#L466-L516 is how that is happening at the moment
4b2dc49
to
a1492cc
Compare
@zerolab thanks for taking a look
i've now rebased. I'm not sure about the migrations.. i've deleted the old once and recreated a new one.. Was this what you meant, or should it also be part of the
Are Would it be possible to make this as part of a separate PR? This error blocks me from translating some content in my project.. hopefully the last problem 😬 btw. do you know of some easy way to use a forked version as a dependency? The problem is including |
On using a fork.. you cannot really do it because of the FE assets.. best to build it locally and host the built package somewhere you can install from a URL Will revisit the synchedfield question tomorrow. |
Hey @hpoul,
|
Did this make it into v1.2? I'm having the exact same problem. |
@zemogle this PR is still open, so it did not, I'm afraid |
c7c2117
to
1fc56b0
Compare
@hpoul I am having the same problem and your fix would be very useful. It has been a while, but what is the state of this PR? Is there a way to help you getting this PR merged? Thanks! |
@lvonlanthen see #564 (review)
I don't have enough time it understanding in the inner workings of the wagtail admin to fix this.. feel free to take over this PR.. 🤷♂️ |
afcaf41
to
fdf7926
Compare
fdf7926
to
123f06d
Compare
I've rebased on main and squashed commits.. is there any chance to get this merged without the UI when it's not synchronized? @zerolab At least it fixes the exception when creating the translation.. I don't see how it would make anything worse.. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #564 +/- ##
==========================================
- Coverage 93.27% 93.23% -0.04%
==========================================
Files 47 47
Lines 3908 3918 +10
Branches 579 583 +4
==========================================
+ Hits 3645 3653 +8
Misses 154 154
- Partials 109 111 +2
☔ View full report in Codecov by Sentry. |
@hpoul now in https://github.com/wagtail/wagtail-localize/releases/tag/v1.6 |
My try to fix #563
I basically duplicated the code from django-modelcluster
copy_cluster
: https://github.com/wagtail/django-modelcluster/blob/8666f16eaf23ca98afc160b0a4729864411c0563/modelcluster/models.py#L386-L392