Revert "disable ES sync after news_type updating"

This reverts commit 6ba8fb3
This commit is contained in:
Kuroshini 2020-01-22 21:29:37 +03:00
parent 1cd0458acc
commit 1c01604f43

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))