Skip to content
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

Question - Integration with django-hvad or django-parler #110

Open
anakenabcn opened this issue Feb 2, 2018 · 1 comment
Open

Question - Integration with django-hvad or django-parler #110

anakenabcn opened this issue Feb 2, 2018 · 1 comment

Comments

@anakenabcn
Copy link

Hi,

I'm testing this expectacular plugin on my site and it's amazing! But I'm using django-parler to translate my models and it's showing the same comments in all languages because the object it's the same in both.

Any ideas?

@vdboor
Copy link
Contributor

vdboor commented Jun 4, 2018

Hi!

This could be possible with a custom model.

  • Create a separate app (e.g. mysite.parler_comments)
  • Add a language_code field to that model.
  • add get_model() to the __init__.py of that app.
  • Point the COMMENTS_APP setting to your custom all.
  • Override the manager, inherit CommentManager and override for_model() to auto-filter on the language.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants