Add a comment on the fix to translation form save
@@ -616,6 +616,10 @@ class TranslationBaseForm(forms.Form):
def save(self, commit=True):
if commit:
+ # Don't use ``self.parent.translations.add()`` here as this
+ # triggeres a problem with database routing and multiple databases.
+ # Directly set the ``main_language_project`` instead of doing a
+ # bulk update.
self.translation.main_language_project = self.parent
self.translation.save()
# Run symlinking and other sync logic to make sure we are in a good
