I have a custom tag called {% photo %}. It takes two arguments: an
object and a size.
I've tinkered with django-photologue to use a GenericForeignKey. The
tag returns the get_SIZE_url() for the Photo instance associated with
a given object. I've posted the code for the tag here:
http://dpaste.com/49892/
This raises an error with the following traceback:
http://dpaste.com/49894/
What is particularly confusing to me is that the line referenced as
raising the error does not exist anywhere in my code tree. Stranger
yet is the fact that if I fiddle with contenttypes to access the Photo
model without the import path, everything works exactly as intended.
I don't want to do this permanently, however, both because I would
like to know what I'm doing wrong and because this is an extra hit on
the database.
I would gladly provide any more information if anyone is able to
assist.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---