disable ES sync after news_type updating
This commit is contained in:
parent
a9acbf3955
commit
6ba8fb31cf
|
|
@ -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