#25282 closed Cleanup/optimization (worksforme)
Specifying fields in modelform
Reported by: | Diogo | Owned by: | nobody |
---|---|---|---|
Component: | Forms | Version: | 1.8 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
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 , 9 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 by , 9 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 to 1.7.
Thanks
Version 0, edited 9 years ago by (next)
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.