'Overrides ``models.Field`` method. This converts the value
returned from the database to an instance of this class.'

def from_db_value(self, value, expression, connection, context):

    return self.to_python(value)
