Code

Opened 5 years ago

Closed 5 years ago

Last modified 3 years ago

#10522 closed (fixed)

generic_inlineformset_factory's exclude option should accept tuples too

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

Description

This is similar to #9171, which was fixed in [9086]

from django.contrib.contenttypes.generic import generic_inlineformset_factory
generic_inlineformset_factory(SomeModel, exclude=('somefield',)) causes an exception 'tuple has no attribute extend'

Attachments (1)

10522.patch (3.3 KB) - added by mk 5 years ago.

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by mk

comment:1 Changed 5 years ago by jacob

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

comment:2 Changed 5 years ago by jacob

  • Resolution set to fixed
  • Status changed from new to closed

(In [10375]) Fixed #10522: accept tuples in generic_inlineformset_factor(exclude). Thanks, mk.

comment:3 Changed 3 years ago by jacob

  • milestone 1.1 deleted

Milestone 1.1 deleted

Add Comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.