Re: Abstract models and their managers

2010-03-04 Thread Russell Keith-Magee
On Thu, Mar 4, 2010 at 5:02 PM, Johannes Dollinger wrote: > Hi Steve, > > Multiple inheritance with abstract models works, and mostly did since the > feature was added afaict. I use it regulary. If multiple abstract inheritance works, it is accident, not

Re: Abstract models and their managers

2010-03-04 Thread Stephen McDonald
Hi Johannes, Yes inheriting the managers is in fact how I currently deal with the situation however I feel as though this violates the DRY principle as the relationship is already expressed via the model inheritance. I guess "explicit is better than implicit" chimes in here to some degree. On

Re: Abstract models and their managers

2010-03-04 Thread Johannes Dollinger
Hi Steve, Multiple inheritance with abstract models works, and mostly did since the feature was added afaict. I use it regulary. Just stay away from diamond inheritance and multi-multi-table inheritance. Regarding your managers: couldn't you just use inheritance explicitly? class

Re: Abstract models and their managers

2010-03-03 Thread Stephen McDonald
:52 pm, Russell Keith-Magee <freakboy3...@gmail.com> wrote: > On Mon, Mar 1, 2010 at 12:40 PM, Stephen McDonald <stephen...@gmail.com> > wrote: > > Hi there, > > > I'm just getting an understanding around how managers from abstract > > models are applied to a

Re: Abstract models and their managers

2010-03-03 Thread Russell Keith-Magee
On Mon, Mar 1, 2010 at 12:40 PM, Stephen McDonald <stephen...@gmail.com> wrote: > Hi there, > > I'm just getting an understanding around how managers from abstract > models are applied to a subclass model and it appears as though if a > model inherits from two abstract mo

Abstract models and their managers

2010-02-28 Thread Stephen McDonald
Hi there, I'm just getting an understanding around how managers from abstract models are applied to a subclass model and it appears as though if a model inherits from two abstract models that each define a manager with the same attribute name, eg "objects", then normal mro applies and t