That might work, but I was hoping the change_list was a generic class
based view I could subclass and use in my own urls.py for my app, but
looking into the source
(site-packages\django-1.3-py2.7.egg\django\contrib\admin\views\main.py)
of the admin it's not clear at all about how to approach it.

Any clues on how to subclass the admin views?

Thomas

On Thu, Aug 25, 2011 at 2:31 AM, Thomas Orozco
<g.orozco.tho...@gmail.com> wrote:
> What about calling your admin view with a GET "alternate=1" parameter ?
>
> An if statement in a template override would then allow you to render
> properly depending on the aforementioned attribute provided you're passing
> the request in the Context.
>
> This event allows you to fine tune which bits you want to change.
>
> Le 24 août 2011 23:38, "Thomas Weholt" <thomas.weh...@gmail.com> a écrit :
>> I want to create a view looking and working just like the admin
>> change_list, but using my own template ( based on the admin
>> change_list template ) so that all the filtering you get from
>> specifiying filtering in your adminmodel still works in my new view. I
>> DO NOT want to extend or override the existing one but provide an
>> additional/alternative view to the existing change_list for a specific
>> app/model. I need to change how the elements in the change_list are
>> presented. I'm listing photos, and want a layout like googles image
>> search, not the table-based you get by default in the admin. I need to
>> do this as well in my alternative view. I want to use the
>> date-hierarchy, filtering, pagination, admin actions etc you get for
>> free in the admin in my alternative view.
>>
>> Is this possible? How do I reuse most of the existing admin code to
>> achieve this?
>>
>>
>> --
>> Mvh/Best regards,
>> Thomas Weholt
>> http://www.weholt.org
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Mvh/Best regards,
Thomas Weholt
http://www.weholt.org

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

Reply via email to