Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#14362 closed (fixed)

ManyToManyRawIdWidget doesn't work with multidb

Reported by: tyrion Owned by: jezdez
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 tyrion 5 years ago.

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by tyrion

comment:1 Changed 5 years ago by tyrion

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

comment:2 Changed 5 years ago by jezdez

  • Status changed from new to assigned
  • Triage Stage changed from Unreviewed to Accepted

comment:3 Changed 5 years ago by jezdez

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

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

comment:4 Changed 5 years ago by jezdez

(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