I am getting a weird error when I call a property from a template. I
also tried calling it from the view and get the same error. However I
have called it from another script it works fine.
Error:
http://dpaste.com/115147/

definition of survivor(which is being included with the same include
that works fine in other places)
http://dpaste.com/115150/

model that contains the property being called
http://dpaste.com/115149/

place where it fails when called:
<li>Survivors:  {{ outpost.pop }}</a></li>

another place where it failed when I tried it

@ProfileRequired
def outpost_detail(request, outpost_id):
        p = request.session['profile']
        outpost = Outpost.objects.get(pk=outpost_id)
        return render_to_response('outpost/outpost_detail.html',{ 'outpost':
outpost,'pop':outpost.pop}, context_instance=RequestContext(request) )

place where it works.
http://dpaste.com/115152/


So yeah, I am very very confused. It seems to be working in some
places and not others with the same functions being called. There are
no other objects called Survivor anywhere else in my code, though the
one file is included in many, many places.

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