if salesman_id == 'undefined':
salesman_id = None
user_profile = models.UserProfile.objects.create(salesman_id=salesman_id)
if salesman_id == 'undefined':
salesman_id = None
user_profile = models.UserProfile.objects.create(salesman_id=salesman_id)