#14424: rel_to undefined in init scope of RelatedFieldWidgetWrapper ----------------------------------+----------------------------------------- Reporter: robhudson | Owner: nobody Status: new | Milestone: Component: django.contrib.admin | Version: 1.2 Keywords: | Stage: Unreviewed Has_patch: 0 | ----------------------------------+----------------------------------------- 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. -- Ticket URL: <http://code.djangoproject.com/ticket/14424> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.