#25282 closed Cleanup/optimization (worksforme)
Specifying fields in modelform
Description ¶
Why the need to specify all fields, one by one, when you decide to use them all? I think this is an unnecessary redundancy. Perhaps it would be better a parameter like: "fields = ALL".
Change History (2)
follow-up: 2 comment:1 by , 10 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 by , 10 years ago
Replying to bmispelon:
Hi,
You can already do that, see https://docs.djangoproject.com/en/1.8/topics/forms/modelforms/#selecting-the-fields-to-use (1st item).
Thanks.
Sorry, I didn't notice it. Just upgraded from 1.7.
Thanks
Note:
See TracTickets
for help on using tickets.
Hi,
You can already do that, see https://docs.djangoproject.com/en/1.8/topics/forms/modelforms/#selecting-the-fields-to-use (1st item).
Thanks.