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
Add haystack index #152
Add haystack index #152
Conversation
@@ -0,0 +1,83 @@ | |||
# -*- coding: utf-8 -*- | |||
from django.utils.encoding import force_text | |||
from django.utils.text import force_unicode |
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.
Change with force_text
Add aldryn-apphooks config
from .settings import get_setting | ||
|
||
try: | ||
from django.utils.encoding import force_text as force_unicode_or_text |
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.
this is not needed. Just use from django.utils.encoding import force_text
it exists in every supported Django version
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.
👍
aaadc13
to
989a91c
Compare
@fmarco I rebased on current develop with minimal changes to make it work. We need to check the desired behavior with multiple apphooks. Also: a test is failing apparently due to some leak between tests ( |
No description provided.