add ua to contact list
This commit is contained in:
@@ -44,7 +44,8 @@ class ContactPojo:
|
||||
u'first_name': self.first_name,
|
||||
u'mail': self.mail,
|
||||
u'store': self.store,
|
||||
u'ip_country': self.ip_country
|
||||
u'ip_country': self.ip_country,
|
||||
u'ua': self.ua
|
||||
}
|
||||
return dest
|
||||
|
||||
@@ -67,7 +68,11 @@ class ContactPojo:
|
||||
ip_country = "FR"
|
||||
if source.get('ip_country'):
|
||||
ip_country = source['ip_country']
|
||||
ua = ""
|
||||
if source.get('ua'):
|
||||
ua = source['ua']
|
||||
result = ContactPojo(phone_number=phone, passport_number=passport, mail=email,
|
||||
last_name=last_name, first_name=first_name, store=store)
|
||||
result.ip_country = ip_country
|
||||
result.ua = ua
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user