Hi I'm trying to add free comments to my Django App and having problems

The following Error shows up.

'free_comment_form' tag has invalid content-type

c:\python24\lib\site-packages\Django-0.95-py2.4.egg\django\contrib\comments\templatetags\comments.py
in __call__, line 160

line 158 seems to be the problem.....

content_type = ContentType.objects.get(app_label__exact=package,
model__exact=module)

This seems to be broken and the following seemed to work..

Add  "from django.db import models" at the top

and then repace above  line 158 with ...
themodel = models.get_model(package,module)
content_type = ContentType.objects.get_for_model(themodel)

Is this correct? Is current trunk and 0.95 broken with respect to
freecomment or as is more likely I'm doing something wrong or missing
something?

Cheers

Garth


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to