parent
8cc5355200
commit
1cd0458acc
|
|
@ -18,7 +18,7 @@ def update_document(sender, **kwargs):
|
||||||
# todo: remove after migration
|
# todo: remove after migration
|
||||||
('establishment', 'establishmenttype'): 'establishment_type',
|
('establishment', 'establishmenttype'): 'establishment_type',
|
||||||
('establishment', 'establishmentsubtype'): 'establishment_subtypes',
|
('establishment', 'establishmentsubtype'): 'establishment_subtypes',
|
||||||
# ('tag', 'tag'): 'tags',
|
('tag', 'tag'): 'tags',
|
||||||
}
|
}
|
||||||
filter_name = app_label_model_name_to_filter.get((app_label, model_name))
|
filter_name = app_label_model_name_to_filter.get((app_label, model_name))
|
||||||
if filter_name:
|
if filter_name:
|
||||||
|
|
@ -37,7 +37,7 @@ def update_news(sender, **kwargs):
|
||||||
app_label_model_name_to_filter = {
|
app_label_model_name_to_filter = {
|
||||||
('location', 'country'): 'country',
|
('location', 'country'): 'country',
|
||||||
# ('news', 'newstype'): 'news_type',
|
# ('news', 'newstype'): 'news_type',
|
||||||
# ('tag', 'tag'): 'tags',
|
('tag', 'tag'): 'tags',
|
||||||
}
|
}
|
||||||
filter_name = app_label_model_name_to_filter.get((app_label, model_name))
|
filter_name = app_label_model_name_to_filter.get((app_label, model_name))
|
||||||
if filter_name:
|
if filter_name:
|
||||||
|
|
@ -56,7 +56,7 @@ def update_product(sender, **kwargs):
|
||||||
app_label_model_name_to_filter = {
|
app_label_model_name_to_filter = {
|
||||||
('product', 'productstandard'): 'standards',
|
('product', 'productstandard'): 'standards',
|
||||||
('product', 'producttype'): 'product_type',
|
('product', 'producttype'): 'product_type',
|
||||||
# ('tag', 'tag'): 'tags',
|
('tag', 'tag'): 'tags',
|
||||||
# ('location', 'wineregion'): 'wine_region',
|
# ('location', 'wineregion'): 'wine_region',
|
||||||
# ('location', 'winesubregion'): 'wine_sub_region',
|
# ('location', 'winesubregion'): 'wine_sub_region',
|
||||||
# ('location', 'winevillage'): 'wine_village',
|
# ('location', 'winevillage'): 'wine_village',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user