@property
def slug(cls):
    """
        The state in string form so that it can be stored in databases etc.
        If a state is renamed, this should be set explicitly as a class attribute
        to the original value to avoid data problems.
        """
    return cls.__dict__.get('slug', cls.__name__)
