[Django] #22795: Iterating all object fields in template

7 views
Skip to first unread message

Django

unread,
Jun 8, 2014, 9:38:57 AM6/8/14
to django-...@googlegroups.com
#22795: Iterating all object fields in template
----------------------------------------------+--------------------
Reporter: anonymous | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Database layer (models, ORM) | Version: 1.6
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------------------+--------------------
Currently in order to iterate all object fields in template you have to
write your own function in the model which will return the model fields.
There should be something general that will allow to iterate over all
model fields with no need to write a specific function in each model

--
Ticket URL: <https://code.djangoproject.com/ticket/22795>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jun 13, 2014, 5:58:38 PM6/13/14
to django-...@googlegroups.com
#22795: Iterating all object fields in template
-------------------------------------+-------------------------------------
Reporter: anonymous | Owner: nobody
Type: | Status: closed
Cleanup/optimization | Version: 1.6
Component: Database layer | Resolution: wontfix
(models, ORM) | Triage Stage:
Severity: Normal | Unreviewed
Keywords: | Needs documentation: 0
Has patch: 0 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by timo):

* status: new => closed
* needs_better_patch: => 0
* resolution: => wontfix
* needs_tests: => 0
* needs_docs: => 0


Comment:

I suspect exact needs will be project specific so it's not something that
needs to live in core.

--
Ticket URL: <https://code.djangoproject.com/ticket/22795#comment:1>

Reply all
Reply to author
Forward
0 new messages