Opened 14 years ago

Closed 14 years ago

Last modified 14 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: no UI/UX: no

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 14 years ago.

Download all attachments as: .zip

Change History (5)

by Germano Gabbianelli, 14 years ago

Attachment: patch.diff added

comment:1 by Germano Gabbianelli, 14 years ago

Has patch: set

comment:2 by Jannis Leidel, 14 years ago

Status: newassigned
Triage Stage: UnreviewedAccepted

comment:3 by Jannis Leidel, 14 years ago

Resolution: fixed
Status: assignedclosed

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

comment:4 by Jannis Leidel, 14 years ago

(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