

def _create_hstore_virtual_fields(self, cls, hstore_field_name):
    '\n        this methods creates all the virtual fields automatically by reading the schema attribute\n        '
    if ((not self.schema) and (self.schema_mode is False)):
        return
    if (not hasattr(cls, '_hstore_virtual_fields')):
        cls._hstore_virtual_fields = {
            
        }
    for field in self.schema:
        virtual_field = create_hstore_virtual_field(field['class'], field.get('kwargs', {
            
        }), hstore_field_name)
        cls.add_to_class(field['name'], virtual_field)
        cls._hstore_virtual_fields[hstore_field_name['name']] = virtual_field

dataset/ETHPy150Open djangonauts/django-hstore/django_hstore/fields.py DictionaryField._create_hstore_virtual_fields/VarMisuse@111/197 `field`->`hstore_field_name`