From 8f04f53dd847896f49a9bc367bb7269984ebdb6e Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Thu, 26 Dec 2013 13:46:15 +0100 Subject: [PATCH] Removed a few gratuitous lambdas. --- django/contrib/admin/options.py | 7 +++++-- django/contrib/admin/templatetags/admin_list.py | 2 +- django/contrib/auth/forms.py | 6 +++++- django/contrib/messages/storage/__init__.py | 14 +++++++++----- django/db/models/options.py | 8 +++----- django/utils/text.py | 10 ++++++++++ tests/runtests.py | 10 ++++------ 7 files changed, 37 insertions(+), 20 deletions(-) diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py index 02f9ed3a84..263d1f4a87 100644 --- a/django/contrib/admin/options.py +++ b/django/contrib/admin/options.py @@ -46,9 +46,12 @@ from django.views.decorators.csrf import csrf_protect IS_POPUP_VAR = '_popup' TO_FIELD_VAR = '_to_field' + HORIZONTAL, VERTICAL = 1, 2 -# returns the