We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I bring this here because modeltranslation is the official-ish way of getting multilanguage entries with zinnia. This line: https://github.com/Fantomas42/django-blog-zinnia/blob/master/zinnia/comparison.py#L39 fails when modeltranslation is on. It raises KeyError: 'title'.
KeyError: 'title'
Changing this line to
dataset[item] = ' '.join([unicode(getattr(item, field) for field in self.fields])
is both cleaner, and it works.
The text was updated successfully, but these errors were encountered:
it was a change on django-modeltranslation, introduced by commit deschler/django-modeltranslation@df02c81
I still believe this reference to __dict__ is "in the wrong" here
__dict__
Sorry, something went wrong.
060712a
Hi Tomas,
you have a really good sight ! Thanks for the improvement.
However I have a question, does the comparison tag returns weird results or not with modeltranslation ?
Regards
I have a goodish intuition, the good sight is really git-bisect's =) I didn't even identify the change that brought up the issue.
I don't really know how to test this, but if you tell me, I'll do it.
No branches or pull requests
I bring this here because modeltranslation is the official-ish way of getting multilanguage entries with zinnia. This line: https://github.com/Fantomas42/django-blog-zinnia/blob/master/zinnia/comparison.py#L39 fails when modeltranslation is on. It raises
KeyError: 'title'
.Changing this line to
is both cleaner, and it works.
The text was updated successfully, but these errors were encountered: