Skip to content

Home Information - Your home, your data, organized.

Python
272 B
Raw Blame
from .enums import ItemType


class ItemTypeModelMixin:

    @property
    def item_type(self) -> ItemType:
        raise NotImplementedError( 'This method must be implemented.' )
    
    @property
    def html_id(self):
        return self.item_type.html_id( self.id )