From 941e11e54d175f4ffc769852e5dd376ec1ba5239 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Fri, 1 Oct 2010 02:31:05 +0000 Subject: [PATCH] Fixed #14363 -- Fixed render method of ManyToManyRawIdWidget to set attrs to an empty dict. Thanks, tyrion and dpn. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13971 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/widgets.py | 2 ++ tests/regressiontests/admin_widgets/models.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/django/contrib/admin/widgets.py b/django/contrib/admin/widgets.py index 81c8ebf3a0..9f8b62041d 100644 --- a/django/contrib/admin/widgets.py +++ b/django/contrib/admin/widgets.py @@ -156,6 +156,8 @@ class ManyToManyRawIdWidget(ForeignKeyRawIdWidget): in a Lookup +>>> print conditional_escape(w.render('test', [m1.pk])) + Lookup >>> w._has_changed(None, None) False >>> w._has_changed([], None)