Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#14362 closed (fixed)

ManyToManyRawIdWidget doesn't work with multidb

Reported by: Germano Gabbianelli Owned by: Jannis Leidel
Component: contrib.admin Version: 1.2
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

The init method of ManyToManyRawIdWidget is defined as follows:

def __init__(self, rel, attrs=None, using=None):
    super(ManyToManyRawIdWidget, self).__init__(rel, attrs, using=None)

It is completely ignoring the using parameter (whatever will be passed to the method, it will pass None to the parent method).
Moreover this init method seems useless.

Attachments (1)

patch.diff (818 bytes) - added by Germano Gabbianelli 6 years ago.

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by Germano Gabbianelli

Attachment: patch.diff added

comment:1 Changed 6 years ago by Germano Gabbianelli

Has patch: set
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset

comment:2 Changed 6 years ago by Jannis Leidel

Status: newassigned
Triage Stage: UnreviewedAccepted

comment:3 Changed 6 years ago by Jannis Leidel

Resolution: fixed
Status: assignedclosed

(In [13970]) Fixed #14362 -- Made sure all parameters are passed to the ManyToManyRawIdWidget. Thanks, tyron.

comment:4 Changed 6 years ago by Jannis Leidel

(In [13974]) [1.2.X] Fixed #14362 -- Made sure all parameters are passed to the ManyToManyRawIdWidget. Thanks, tyron.

Backport from trunk (r13970).

Note: See TracTickets for help on using tickets.
Back to Top