本文整理匯總了Python中lib.admin_helpers.CustomAdmin類的典型用法代碼示例。如果您正苦於以下問題:Python CustomAdmin類的具體用法?Python CustomAdmin怎麽用?Python CustomAdmin使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了CustomAdmin類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: change_view
def change_view(self, request, object_id, form_url='', extra_context=None):
extra_context = CustomAdmin.get_view_status(request, extra_context)
return super(ScheduleLogAdmin, self).change_view(request, object_id, form_url, extra_context=extra_context)
示例2: has_delete_permission
def has_delete_permission(self, request, obj=None):
return CustomAdmin.get_permission_status(request)
示例3: get_readonly_fields
def get_readonly_fields(self, request, obj=None):
return CustomAdmin.get_readonly_status(request, self.readonly_fields, obj)
示例4: has_add_permission
def has_add_permission(self, request):
return CustomAdmin.get_permission_status(request)