Commits

Alex Ulianytskyi  committed 0c2f8eb

Добавлен декотратор @admin_view@

  • Participants
  • Parent commits 8ff0ff9

Comments (0)

Files changed (1)

File decorators.py

                 del generic_kw['paginate_by']
                 return generic_func(request, ** generic_kw)
         return wrapper
-    return decorator
+    return decorator
+
+def admin_view(site, cacheable=True):
+    def decorator(view):
+        return site.admin_view(view, cacheable)
+    return decorator