@property
    def type(self):
        return self.is_root and 'section' or 'subsection'
A property that returns the string 'section' if the section is at the 
dataset/ETHPy150Open mazelife/django-scaffold/scaffold/models.py/BaseSection.type