On Sun, 2009-02-22 at 16:23 -0800, David MacDougall wrote:
> Hi Malcolm
>  You are right about the essence of the problem.
>  The value of photoobj is
> "'homepage.get_piece_dict.lead_story.get_lead_photo" and I am trying
> to get it to be an integer, the id  of the photo I am trying to
> measure.

So you have to resolve that string the same way the template code does.
In Django 0.91, that was the resolve_variable() function, which you can
see being used a lot in django/core/templates/defaulttags.py.

It's currently not even close to something you can use as a pk value in
a filter.

Regards,
Malcolm


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to