Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#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)

comment:1 by Baptiste Mispelon, 9 years ago

Resolution: worksforme
Status: newclosed

in reply to:  1 comment:2 by Diogo, 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 Diogo (next)
Note: See TracTickets for help on using tickets.
Back to Top