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 intention. For example, there is nothing i

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 Ma

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 Manager

Re: Abstract models and their managers

2010-03-03 Thread Stephen McDonald
Hi Russel, Thanks for your feedback. That's a really interesting position to learn about with regard to multiple inheritance as I use it all the time across basic abstract models without any issues. The approach I was thinking of is very simplistic and possibly naive. It appears as though I just

Re: Abstract models and their managers

2010-03-03 Thread Russell Keith-Magee
On Mon, Mar 1, 2010 at 12:40 PM, Stephen McDonald 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 models that each define a manager > with the same a

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 the derived