Opened 7 years ago

Closed 7 years ago

#5950 closed (duplicate)

Allow to specify the fields to render in generic views (add,update)

Reported by: Adrián Owned by: nobody
Component: Generic views Version: master
Severity: Keywords: custom fields generic views create update
Cc: aribao@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


newforms.form_for_model an newforms.form_for_instance allow a fields argument where you can specify the fields you want to render.
It would be great the same feature in the generic views create and update.

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by mtredinnick

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

Since generic views haven't been ported to newforms yet, this is a bit of a moot point. The patch in #3639 tries to add functionality like this, though (using formfield callback instead of a fields list, but it's basically the same). Closing this ticket in favour of that #3639, since we don't need multiple "port to newforms" tickets hanging around.

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.