fix for warning refs filtering

parent 6da17c19
Pipeline #126386 passed with stages
in 28 minutes and 45 seconds
......@@ -89,7 +89,7 @@ class DrugWarningResource(ChemblModelResource):
'warning_description': CHAR_FILTERS,
'warning_country': CHAR_FILTERS,
'warning_year': NUMBER_FILTERS,
'indication_refs': ALL_WITH_RELATIONS,
'warning_refs': ALL_WITH_RELATIONS,
}
ordering = [field for field in list(filtering.keys()) if not ('comment' in field or 'description' in field)]
......@@ -128,7 +128,7 @@ class DrugWarningEmbeddedResource(ChemblModelResource):
'warning_description': CHAR_FILTERS,
'warning_country': CHAR_FILTERS,
'warning_year': NUMBER_FILTERS,
'indication_refs': ALL_WITH_RELATIONS,
'warning_refs': ALL_WITH_RELATIONS,
}
ordering = [field for field in list(filtering.keys()) if not ('comment' in field or 'description' in field)]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment