#15008: Convert admin views to use TemplateResponse
-------------------------------------+-------------------------------------
               Reporter:  acdha      |          Owner:  acdha
                   Type:             |         Status:  closed
  Cleanup/optimization               |      Component:  contrib.admin
              Milestone:             |       Severity:  Normal
                Version:  SVN        |       Keywords:  templateresponse
             Resolution:  fixed      |      Has patch:  1
           Triage Stage:  Accepted   |    Needs tests:  0
    Needs documentation:  1          |  Easy pickings:  0
Patch needs improvement:  1          |
-------------------------------------+-------------------------------------

Comment (by lukeplant):

 @acdha - your admin.py looks very different from the Django's trunk
 `ModelAdmin.changelist_view`, so it's very difficult to see exactly what
 you are needing to change in the admin. In fact I cannot find any released
 version of Django that looks close to a simply copy-paste job for this.

 Because of that, it's extremely difficult to analyse where the admin could
 be easier to customise for your needs.

 However, from your description, it's possible that simply overriding the
 'get_changelist' method is all you need to do. This has existed since
 Django 1.2.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/15008#comment:13>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to