Does django-tagging 0.3 work with django 1.1?
I've got a django 1.1 application for which it would save a lot of work to use django-tagging.
I've added a TagField() to the model.
Provided I don't register the model I can save instances of the model. But when I register the model
tagging.register(mymodel)
Then 开发者_如何学运维save an instance it fails thus:
Traceback (most recent call last):
File "scripts/migrate-qna.py", line 42, in <module>
qna.save()
...
File "django/db/backends/util.py", line 19, in execute
psycopg2.ProgrammingError: can't adapt`
Question is whether this is my problem or if django-tagging 0.3 is just incompatible with django 1.1?
The bug that captured the problem was issue 233. It's now fixed in trunk as of r172.
Nope. django-tagging 0.3 doesn't work on django 1.1. It's a known issue documented on google code
I'm having the exact same issue as you. At least using the tagging app without registering works...
Unfortunately django-tagging's development seems a little glacial, so a fix is probably a long time off...
if, you're getting an error like "TemplateSyntaxError: Caught an exception while rendering: 'Query' object has no attribute 'get_from_clause'", there is a patch here:
http://code.google.com/p/django-tagging/issues/detail?id=233&start=100
hopefully it will get to be added to the SVN repo soon..!
精彩评论