Refactor code quality issues (#2001)

This commit is contained in:
Aksh Gupta
2021-03-16 23:43:02 +05:30
committed by GitHub
parent eae55e4b5a
commit 88ba7ab53a
18 changed files with 33 additions and 33 deletions

View File

@@ -309,7 +309,7 @@ class EventSerializer(I18nAwareModelSerializer):
# Item Meta properties
if item_meta_properties is not None:
current = [imp for imp in event.item_meta_properties.all()]
current = list(event.item_meta_properties.all())
for key, value in item_meta_properties.items():
prop = self.item_meta_props.get(key)
if prop in current: