Open celyes opened 2 months ago
Hi, the only workaround is to use translated field name instead of generic name.
But, you can look at the source code and try to add this feature. I'll gladly review and merge it.
Sure I'll add it @last-partizan. can you just direct me to where i should focus on so I can add it? thank you.
@celyes start by adding a test-case, and then - look at the MultilingualQuerySet
source code, probably you need to override annotate
method, or maybe some other places there.
Thank you
Could you please share the test code that is causing the error? I would like to help resolve this issue as well.
Thank you for this awesome package.
The plugin works perfectly for our needs except, however, when used with the
annotate()
where the annotate contains a Subquery expression or an F expression, it doesn't use the current language. For example, if the Subquery asks for a field called 'title', it's supposed to querytitle_en
ortitle_fr
or whatever is the current language but instead, it raises this exception:Once specifying the output_field, we get this exception:
Any idea how to work around this issue?