示例#1
0
文件: home.py 项目: Qnetis/university
 def __init__(self, request):
     self.request = request
     user_perms = UserPagePermissionsProxy(request.user)
     self.page_revisions_for_moderation = (user_perms.revisions_for_moderation()
                                           .select_related('page', 'user').order_by('-created_at'))
示例#2
0
文件: home.py 项目: sixpearls/wagtail
 def __init__(self, request):
     self.request = request
     user_perms = UserPagePermissionsProxy(request.user)
     self.page_revisions_for_moderation = user_perms.revisions_for_moderation().select_related('page', 'user').order_by('-created_at')
示例#3
0
文件: home.py 项目: thrawny/wagtail
 def __init__(self, request):
     self.request = request
     user_perms = UserPagePermissionsProxy(request.user)
     self.page_revisions_for_moderation = (
         user_perms.revisions_for_moderation().select_related("page", "user").order_by("-created_at")
     )