Commit 9bc38527 authored by Vasyl Bodnaruk's avatar Vasyl Bodnaruk

Add function to get common item

parent 50b27c03
......@@ -5,3 +5,7 @@ class QueryMixin:
if self.condition:
print(self.condition)
self.query += ' or {}'.format(self.condition)
def get_common_items(self, company):
return {'region_id': company.region_id, 'type_id': company.type_id,
'media_id': company.media_id, 'company_id': company.id}
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