Author: adrian
Date: 2007-01-14 14:04:56 -0600 (Sun, 14 Jan 2007)
New Revision: 4317

Modified:
  django/branches/newforms-admin/django/contrib/admin/views/main.py
Log:
newforms-admin: Added staff_member_required and never_cache decorators to 
model_admin_view()

Modified: django/branches/newforms-admin/django/contrib/admin/views/main.py
===================================================================
--- django/branches/newforms-admin/django/contrib/admin/views/main.py   
2007-01-14 20:03:28 UTC (rev 4316)
+++ django/branches/newforms-admin/django/contrib/admin/views/main.py   
2007-01-14 20:04:56 UTC (rev 4317)
@@ -111,6 +111,7 @@
        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."


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django 
updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to