我想自定义django admin ..对于添加我做了这个:
class SomeAdmin(admin.ModelAdmin):
"""
Customized admin template and corresponding
views for adding media.
"""
add_form_template = "admin/add.html"
def add_view(self, request, form_url='', extra_context=None):
if request.method == "POST":
//YOur logic
return super(SomeAdmin,self).add_view(request)
它工作正常..以同样的方式我如何获得自定义列表视图和自定义更改视图?
任何帮助?