disable ES sync after news_type updating

This commit is contained in:
Kuroshini 2020-01-22 21:09:25 +03:00
parent a9acbf3955
commit 6ba8fb31cf

View File

@ -36,7 +36,7 @@ def update_news(sender, **kwargs):
instance = kwargs['instance']
app_label_model_name_to_filter = {
('location', 'country'): 'country',
('news', 'newstype'): 'news_type',
# ('news', 'newstype'): 'news_type',
('tag', 'tag'): 'tags',
}
filter_name = app_label_model_name_to_filter.get((app_label, model_name))