Re: access fields value in template

2011-09-18 Thread Mjumbe Poe
Also, model_blocks is available from PyPI: pip install django-model-blocks On Sep 18, 2:33 am, Phang Mulianto wrote: > Thanks for the respons. > > i use the items function using > > {% for key, value in object.items %} >   {{ value }} > {% endfor %} > > the problem now.. the field is not a

Re: access fields value in template

2011-09-18 Thread Mjumbe Poe
If I understand your question correctly, this is like the problem that I was trying to solve with django-model-blocks (https://github.com/ mjumbewu/django-model-blocks/). With model_blocks you'd put something like this in your template: {% load model_blocks %} ... {{ object|as_detail

Re: access fields value in template

2011-09-18 Thread Phang Mulianto
Thanks for the respons. i use the items function using {% for key, value in object.items %} {{ value }} {% endfor %} the problem now.. the field is not arranged like what i want. let say i want to display name, email, password, join in the table. how to achive this field arrangement in the

Re: access fields value in template

2011-09-17 Thread dm03514
You can access just the values by the values property, {% for value in object.values %} {{ value }} {% endfor %} On Sep 17, 4:33 am, Phang Mulianto wrote: > hi .. > > i have a pagination objects : > > in my view i got query and paginate it using this : > >       objects = paginator.page(page) >

access fields value in template

2011-09-17 Thread Phang Mulianto
hi .. i have a pagination objects : in my view i got query and paginate it using this : objects = paginator.page(page) then the objects goes into the view template. i can populate the field value using this template : {% for object in objects.object_list %} {{ object.title }} {{ object.