summaryrefslogtreecommitdiff
path: root/django/contrib/admin/widgets.py
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2008-09-08 05:45:17 +0000
committerAdrian Holovaty <adrian@holovaty.com>2008-09-08 05:45:17 +0000
commit1bfed070c32173e69be6272b274506c1bd56d413 (patch)
tree1885674f059e786e66e31478842b25a29a75465a /django/contrib/admin/widgets.py
parent6bdb7b95299717f5137291e09aad420f7f80f2de (diff)
Fixed #7929 -- Removed some snippets of admin code that weren't doing anything, and tightened up a few more lines. Plus, an indentation fix. Thanks, julien
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8985 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/contrib/admin/widgets.py')
-rw-r--r--django/contrib/admin/widgets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/admin/widgets.py b/django/contrib/admin/widgets.py
index f9ddf9acd9..6a2d982351 100644
--- a/django/contrib/admin/widgets.py
+++ b/django/contrib/admin/widgets.py
@@ -114,7 +114,7 @@ class ForeignKeyRawIdWidget(forms.TextInput):
else:
url = ''
if not attrs.has_key('class'):
- attrs['class'] = 'vForeignKeyRawIdAdminField' # The JavaScript looks for this hook.
+ attrs['class'] = 'vForeignKeyRawIdAdminField' # The JavaScript looks for this hook.
output = [super(ForeignKeyRawIdWidget, self).render(name, value, attrs)]
# TODO: "id_" is hard-coded here. This should instead use the correct
# API to determine the ID dynamically.