Revert "disable ES sync after news_type updating"
This reverts commit 6ba8fb3
This commit is contained in:
parent
1cd0458acc
commit
1c01604f43
|
|
@ -36,7 +36,7 @@ def update_news(sender, **kwargs):
|
||||||
instance = kwargs['instance']
|
instance = kwargs['instance']
|
||||||
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))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user