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
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
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
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)
>
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.
5 matches
Mail list logo