Re: Self-referenced template recursion handling

2013-12-09 Thread Stephen McDonald
Cool! FWIW I built the same feature as an external app called django-overextends some time ago, you might like to compare implementations: https://github.com/stephenmcd/django-overextends/ https://github.com/stephenmcd/django-overextends/blob/master/overextends/templatetags/overextends_tags.py

Re: Abstract models and their managers

2010-03-04 Thread Stephen McDonald
Regarding your managers: couldn't you just use inheritance explicitly? > >    class ManagerC(ManagerA, ManagerB): pass > >    class ModelC(ModelA, ModelB): >          objects = ManagerC() > > __ > Johannes > > Am 03.03.2010 um 23:08 schrieb Stephen McDonald:

Re: Abstract models and their managers

2010-03-03 Thread Stephen McDonald
Mar 3, 11:52 pm, Russell Keith-Magee wrote: > 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

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