#14568 closed (fixed)
FormMixin.get_form should use keyword arguments for data & files
| Reported by: | Matt McClanahan | Owned by: | nobody | 
|---|---|---|---|
| Component: | Generic views | Version: | dev | 
| Severity: | Keywords: | forms | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no | 
| Needs tests: | no | Patch needs improvement: | no | 
| Easy pickings: | no | UI/UX: | no | 
Description
django.forms.BaseForm's constructor defines all its arguments as keyword arguments, but generic views have always passed data and files as positional arguments.  The switch to class-based views makes for a nice opportunity to change that.
Attachments (1)
Change History (4)
by , 15 years ago
| Attachment: | 14568-1.diff added | 
|---|
comment:1 by , 15 years ago
| Has patch: | set | 
|---|
comment:2 by , 15 years ago
| Resolution: | → fixed | 
|---|---|
| Status: | new → closed | 
  Note:
 See   TracTickets
 for help on using tickets.
    
(In [14371]) Fixed #14568 -- Use keyword rather than positional arguments for form construction. Thanks to mattmcc for the report and patch.