On Thursday 17 June 2010 06:46:21 Kenneth Gonsalves wrote:
> In my current project I am getting keyerror: photo where the photo does
>  not  exist. This is running on latest trunk. The only difference between
>  the two sites is that in site where it is working, 'p' is a query set
>  passed from the view, whereas in the site where it is not working, the
>  values are got from a pickled file, so the code is like this:
> 
> {% if hand.0.player.photo %}hi{% endif %}
> 
solved - what had happened was that when I pickled the results, the model in 
question did not have a 'photo' field which I added subsequently to pickling. 
Once I repickled, the problem was solved
-- 
Regards
Kenneth Gonsalves
Senior Associate
NRC-FOSS at AU-KBC

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to