voipms-python/templates/subdir_init.j2

5 lines
185 B
Django/Jinja

@property
def {{method_name}}(self):
if self._{{method_name}} is None:
self._{{method_name}} = {{class_name}}(self.base)
return self._{{method_name}}