Re: admin template object context

2010-02-15 Thread rebus_
On 15 February 2010 20:11, jb  wrote:
> im editing admin/change_form.html for one of my models and i need to
> access the context of the object being edited, eg. admin/hotel/
> change_form.html and in the template i need to call
> {{ actual_hotel.its_value }}
>
> --
> 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.
>
>

Try {{ original.its_value }}

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



admin template object context

2010-02-15 Thread jb
im editing admin/change_form.html for one of my models and i need to
access the context of the object being edited, eg. admin/hotel/
change_form.html and in the template i need to call
{{ actual_hotel.its_value }}

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