def __getattribute__(self, name): if name.startswith("property_"): try: return self.resourceproperty_set.get(key=name.replace("property_", "")).value except: pass return MPTTModel.__getattribute__(self, name)
def __getattribute__(self, name): if name.startswith("property_"): try: return self.resourceproperty_set.get( key=name.replace("property_", "")).value except: pass return MPTTModel.__getattribute__(self, name)
def clean(self): MPTTModel.clean(self) AbstractPathModel.clean(self)
def __init__(self, *a, **kw): base.__init__(self, *a, **kw)