

def reload_schema(self, schema):
    '\n        Reload schema arbitrarily at run-time\n        '
    if schema:
        self._validate_schema(schema)
        self.schema = schema
        schema.schema_mode = True
        self.editable = False
    else:
        self.schema = None
        self.schema_mode = False
        self.editable = True
    self._remove_hstore_virtual_fields()
    setattr(self.model, self.name, HStoreDescriptor(self, schema_mode=self.schema_mode))
    self._create_hstore_virtual_fields(self.model, self.name)

dataset/ETHPy150Open djangonauts/django-hstore/django_hstore/fields.py DictionaryField.reload_schema/VarMisuse@32/56 `self`->`schema`