Re: More separation between admin and models

2007-09-22 Thread Ivan Sagalaev
Yuri Baburov wrote: > I can't subclass ModelAdmin, because: > > class ModelAdmin(BaseModelAdmin): > def __init__(self, model, admin_site): > self.model = model > self.opts = model._meta > ... > > I have no model and have no _meta, have no QuerySet subclass (I have > v

Re: More separation between admin and models

2007-09-21 Thread Yuri Baburov
2007/9/22, James Bennett <[EMAIL PROTECTED]>: > > On 9/21/07, Yuri Baburov <[EMAIL PROTECTED]> wrote: > > Please, read my whole post. > > I don't want to create my own implementation of filters. > > I don't want to create my own implementation of changelist sorting. > > etc. > > If you don't need

Re: More separation between admin and models

2007-09-21 Thread Yuri Baburov
> On 9/21/07, Yuri Baburov <[EMAIL PROTECTED]> wrote: > > I like newforms-admin very much, because it's customizeable. > > But now imagine that you have 10 usual models in admin interface, but > > 11th needs to be special. > > One possible example: you need to show, how much LogEntries for each >

Re: More separation between admin and models

2007-09-21 Thread James Bennett
On 9/21/07, Yuri Baburov <[EMAIL PROTECTED]> wrote: > Please, read my whole post. > I don't want to create my own implementation of filters. > I don't want to create my own implementation of changelist sorting. > etc. If you don't need a custom implementation of those bits, don't write custom imp

Re: More separation between admin and models

2007-09-21 Thread Yuri Baburov
2007/9/22, James Bennett <[EMAIL PROTECTED]>: > > On 9/21/07, Yuri Baburov <[EMAIL PROTECTED]> wrote: > > I like newforms-admin very much, because it's customizeable. > > But now imagine that you have 10 usual models in admin interface, but > > 11th needs to be special. > > One possible example: y

Re: More separation between admin and models

2007-09-21 Thread James Bennett
On 9/21/07, Yuri Baburov <[EMAIL PROTECTED]> wrote: > I like newforms-admin very much, because it's customizeable. > But now imagine that you have 10 usual models in admin interface, but > 11th needs to be special. > One possible example: you need to show, how much LogEntries for each > model was

More separation between admin and models

2007-09-21 Thread Yuri Baburov
Hi All, I like newforms-admin very much, because it's customizeable. But now imagine that you have 10 usual models in admin interface, but 11th needs to be special. One possible example: you need to show, how much LogEntries for each model was created by each user for some date interval. What you