Opened 14 years ago
Closed 14 years ago
#14424 closed (fixed)
rel_to undefined in init scope of RelatedFieldWidgetWrapper
Reported by: | Rob Hudson | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | 1.3-alpha |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
While perusing code in the admin I noticed that this variable is undefined in the RelatedFieldWidgetWrapper.init. I was on the hunt for something else but thought I'd log this as a bug since it'll likely always be false...
if can_add_related is None: can_add_related = rel_to in self.admin_site._registry
I believe, on cursory glance, that this should be rel.to
instead.
Attachments (1)
Change History (4)
by , 14 years ago
Attachment: | admin_widget.diff added |
---|
comment:1 by , 14 years ago
Version: | 1.2 → 1.3-alpha |
---|
This bug is not present in the 1.2.x versions but he is present in the 1.3-alpha-1
And 2 mistakes are present in this line. See patch for correction.
comment:3 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Patch for issue 14424