Ejemplo n.º 1
0
def _delete_custom_data_fields(domain_name):
    # The CustomDataFieldsDefinition instances are cleaned up as part of the
    # bulk couch delete, but we also need to clear the cache
    logger.info('Deleting custom data fields...')
    for field_view in [LocationFieldsView, ProductFieldsView, UserFieldsView]:
        get_by_domain_and_type.clear(domain_name, field_view.field_type)
    logger.info('Deleting custom data fields complete.')
Ejemplo n.º 2
0
def _delete_custom_data_fields(domain_name):
    # The CustomDataFieldsDefinition instances are cleaned up as part of the
    # bulk couch delete, but we also need to clear the cache
    logger.info('Deleting custom data fields...')
    for field_view in [LocationFieldsView, ProductFieldsView, UserFieldsView]:
        get_by_domain_and_type.clear(domain_name, field_view.field_type)
    logger.info('Deleting custom data fields complete.')