Home:ALL Converter>django admin custom list view

django admin custom list view

Ask Time:2015-03-25T13:09:06         Author:gamer

Json Formatter

I want to customize django admin.. For additing I did this :

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)

Its working fine.. In the same way how can I get custom list view and custom change view ?

Any help ?

Author:gamer,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/29247904/django-admin-custom-list-view
yy