Opened 16 years ago

Closed 16 years ago

Last modified 16 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 16 years ago.

Download all attachments as: .zip

Change History (5)

by Germano Gabbianelli, 16 years ago

Attachment: patch.diff​ added

comment:1 by Germano Gabbianelli, 16 years ago

Has patch: set

comment:2 by Jannis Leidel, 16 years ago

Status: new → assigned
Triage Stage: Unreviewed → Accepted

comment:3 by Jannis Leidel, 16 years ago

Resolution: → fixed
Status: assigned → closed

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

comment:4 by Jannis Leidel, 16 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