-
Notifications
You must be signed in to change notification settings - Fork 57
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
Url quoting/unquoting for keywords #22
Comments
One issue is that it's double escaping with the url tag:
|
You are right, I should use a tagging library. A switch to django-tagging is planned, but unfortunately I don't have enough time at the moment to actually implement that change. |
I'll see what I can do. It looks like django-taggit is more popular these days. I'm going to see if I can do it with migrations and tests and fix this issue along the way. I'm using Django 1.8.6 and Python 3.4.2. I'm not sure how backwards compatible this is going to be as a first take. I'm going to use all of the newest Django migrations stuff. |
File "/data/www/venv/local/lib/python2.7/site-packages/publications/views/person.py", line 53, in person this is fragment of error I received today. which is basically UN-escaped string send to database. the diff may come from this:
|
I tried to make a keyword, "alzheimer's". When I click on the tag, alzheimer's, from the list page, I am directed to
/publications/tag/alzheimer%2527s/
which has no results. Something is wrong with how the keywords are quoted/unquoted.I looked in the code a bit and saw that keywords are represented as a CharField. I was hoping to see a FK into a tagging library dependency. I haven't look much farther. At any rate, I think the quoting/unquoting should reliably reverse each other.
The text was updated successfully, but these errors were encountered: