Re: Add views to admin interface

2009-02-16 Thread Robert
Well then, now I have added my custom view to admin interface by altering the template index.html. I added the following: Diagramm Chart wrote a view and put both together in url.py. The problem is, as thought before, th

Re: Add views to admin interface

2009-02-16 Thread Ales Zoulek
> Once you have added a new HTML link to the template that will trigger > your view, you have to write a view for it. You add something to one of > your URL Conf files to catch the URL (do this *before* any admin > patterns are processed, so that your pattern is handled first) and send > it off to

Re: Add views to admin interface

2009-02-15 Thread Robert
Dear Malcom, thanks for your answer, but as I wrote in my first post altering templates is not a satisfying solution for me. By altering templates I have to define all permissions by hand. I thought it must be possible to define permission - as for models - in the table auth_permission... By the

Re: Add views to admin interface

2009-02-15 Thread Malcolm Tredinnick
On Sun, 2009-02-15 at 11:06 -0800, Robert wrote: > Hi, > > how can I add views to the admin interface that > 1. they are also so 'well-integrated' in the admin interface like > models > 2. I can also define permissions for them like for a model Adding views to the admin is easy, since a view is

Re: Add views to admin interface

2009-02-15 Thread Robert
Well, I read that short paragraph but I don't understand how this should work... Is it possible that you post some code how you solved that problem? Thanks a lot Robert On 15 Feb., 21:13, Brian Neal wrote: > On Feb 15, 1:06 pm, Robert wrote: > > > Hi, > > > how can I add views to the admin int

Re: Add views to admin interface

2009-02-15 Thread Brian Neal
On Feb 15, 1:06 pm, Robert wrote: > Hi, > > how can I add views to the admin interface that > 1. they are also so 'well-integrated' in the admin interface like > models > 2. I can also define permissions for them like for a model > > I know that it's possible to change a template (i.e. index.html

Add views to admin interface

2009-02-15 Thread Robert
Hi, how can I add views to the admin interface that 1. they are also so 'well-integrated' in the admin interface like models 2. I can also define permissions for them like for a model I know that it's possible to change a template (i.e. index.html) and add there the code, but that doesn't satisf