Code

Opened 4 years ago

Last modified 4 years ago

#13145 new New feature

Allow the prefix used for empty_form on FormSets to be customized

Reported by: Alex Owned by: nobody
Component: Forms Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no

Description


Attachments (3)

custom-empty-form-prefix.diff (5.1 KB) - added by Alex 4 years ago.
custom-empty-form-prefix.2.diff (5.1 KB) - added by Alex 4 years ago.
custom-empty-form-prefix.3.diff (6.7 KB) - added by Alex 4 years ago.

Download all attachments as: .zip

Change History (8)

Changed 4 years ago by Alex

Changed 4 years ago by Alex

comment:1 Changed 4 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement set
  • Triage Stage changed from Unreviewed to Accepted

To clarify - the use case here is for nested inlines; if you add a new row that itself contains pre-existing inline rows, the prefix subsitution occurs on both the base and the nested form.

The test case needs to be elaborated to make sure we protect against this use case.

Changed 4 years ago by Alex

comment:2 Changed 3 years ago by lukeplant

  • Type set to New feature

comment:3 Changed 3 years ago by lukeplant

  • Severity set to Normal

comment:4 Changed 2 years ago by aaugustin

  • UI/UX unset

Change UI/UX from NULL to False.

comment:5 Changed 2 years ago by aaugustin

  • Easy pickings unset

Change Easy pickings from NULL to False.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as new
The owner will be changed from nobody to anonymous. Next status will be 'assigned'
as The resolution will be set. Next status will be 'closed'
Author


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

 
Note: See TracTickets for help on using tickets.