enumchoicefield/fields.py
def from_db_value(self, value, expression, connection, context):
        """
        Convert a string from the database into an Enum value
        """
        if value is None:
            return value
        return self.enum[value]
def from_db_value(self, value, expression, connection, context):
        """
        Convert a string from the database into an Enum value
        """
        if value is None:
            return value
        return self.enum[value]
Convert a string from the database into an Enum value