diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2007-01-14 20:04:56 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2007-01-14 20:04:56 +0000 |
| commit | b3cce4326b43b759ba551d88cd626ebe752c5ef1 (patch) | |
| tree | ac53995c1a41ce3c70b13b1c9e0824704fac4043 | |
| parent | 7859dee662c9fafcba1cea5cb35832a1733f9e18 (diff) | |
newforms-admin: Added staff_member_required and never_cache decorators to model_admin_view()
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@4317 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/contrib/admin/views/main.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/contrib/admin/views/main.py b/django/contrib/admin/views/main.py index c0063552fb..02a2a4ade5 100644 --- a/django/contrib/admin/views/main.py +++ b/django/contrib/admin/views/main.py @@ -111,6 +111,7 @@ def model_admin_view(request, app_label, model_name, rest_of_url): raise Http404("App %r, model %r, not found" % (app_label, model_name)) mav = ModelAdminView(model._meta) return mav(request, rest_of_url) +model_admin_view = staff_member_required(never_cache(model_admin_view)) class ModelAdminView(object): "Class that encapsulates all admin views for a given model." |
