On Tuesday, 22 November 2011 22:32:04 UTC, Lee wrote:
>
> DR - thanks for your reply. I need to display the model method result
> (property) on index.html. Our index.html is heavily customized, and is
> currently just a switchboard into the database tables via links like
> this:
>
> {{ app_list.1.models.21.admin_url }}
>
> I'm hoping for a similarly simple way to show the results of model
> methods on the same page so that we can provide a dashboard of
> statistics from the database.
>
> I appreciate your help.
>
> Lee
>
OK, once again you haven't made it very clear, but I'm going to presume 
that app_list is a list of dictionaries containing lists of model instances 
(blurgh, but never mind). So, in that case, what was wrong with my previous 
answer: that you refer to a property in exactly the same way as any other 
model attribute - eg {{ app_list.1.models.21.my_property }} ?

--
DR.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/l5teYHVpazcJ.
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