Re: Multiple ModelAdmins for a single Model

2009-03-27 Thread Dan Ward
I tried a number of ways, but still failed to get where I needed. I've created my own control panel now. On Mar 27, 1:18 pm, andybak wrote: > Did the proxy table solution that Alex suggested work out for you? > > That's the one I try just as soon as I upgrade to trunk (some of the > admin templ

Re: Multiple ModelAdmins for a single Model

2009-03-27 Thread andybak
Did the proxy table solution that Alex suggested work out for you? That's the one I try just as soon as I upgrade to trunk (some of the admin template changes in trunk breaks my admin template overrides so I might hold off for the 1.1 release in case it changes some more) On Mar 24, 2:53 pm, Dan

Re: Multiple ModelAdmins for a single Model

2009-03-24 Thread Dan Ward
OK, I've done a fair amount of research and I want to detail what I'm aiming to achieve. I have a page table. The page table contains various fields, which are dependent upon the pgtype option (containing three possible values). What I want to achieve is three separate pages in the admin site,

Re: Multiple ModelAdmins for a single Model

2009-03-24 Thread Dan Ward
To follow up, I can see how I can achieve different forms, however I can't figure out how to provide three separate links in the admin index page. Any suggestions? On Mar 22, 11:22 am, Dan Ward wrote: > Hi, > > First of all thanks for the replies. I won't be able to try anything > until tomorr

Re: Multiple ModelAdmins for a single Model

2009-03-22 Thread Dan Ward
Hi, First of all thanks for the replies. I won't be able to try anything until tomorrow, however it has given some food for thought. Malcom, the three admin entries is what I'm looking for. Essentially, I'm aiming to have the admin home page display the pages block as so: Pages (admin group) --

Re: Multiple ModelAdmins for a single Model

2009-03-21 Thread Malcolm Tredinnick
On Sat, 2009-03-21 at 18:01 -0400, Alex Gaynor wrote: [...] > In the development version there's actually a more clever solution to > this. You can create pure python subclasses(proxy classes) that use > the same DB table and fields and everything, but have their own class. > So you could create

Re: Multiple ModelAdmins for a single Model

2009-03-21 Thread Alex Gaynor
On Sat, Mar 21, 2009 at 5:58 PM, Malcolm Tredinnick < malc...@pointy-stick.com> wrote: > > On Sat, 2009-03-21 at 03:31 -0700, Dan Ward wrote: > [...] > > What I'd like to do, to simplify the interface for end users, is > > provide three separate ModelAdmins for each page type, so in the > > Django

Re: Multiple ModelAdmins for a single Model

2009-03-21 Thread Malcolm Tredinnick
On Sat, 2009-03-21 at 03:31 -0700, Dan Ward wrote: [...] > What I'd like to do, to simplify the interface for end users, is > provide three separate ModelAdmins for each page type, so in the > Django admin site I'd like to have "Web Site Pages", "Video Pages", > "Message Pages", as apposed to the

Multiple ModelAdmins for a single Model

2009-03-21 Thread Dan Ward
Hello, I have a table, which contains three types of page. Each page has its own type of information. Up to now, all possible fields from the table have been displayed on an admin form and a drop down box provides the option to determine the type of page (page_type). Validation is carried out pe