Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user = {
- "PERS_ID": userid,
- "LAST_NAME": email_user.last_name,
- "NAME": email_user.first_name,
- "SECOND_NAME": email_user.middle_name,
- "PERSONAL_BIRTHDAY": email_user.birth_date if email_user.birth_date else '14.01.1984',
- "DISMISS_DATE": "",
- "EMAIL": email_user.email,
- "LOGIN": "croc_{}".format(email_user.username),
- "PASSWORD": email_user.password,
- "WORK_POSITION": email_user.position if email_user.position else "Сотрудник",
- "DATE_REGISTER": email_user.date_joined.strftime("%d.%m.%Y"),
- "RESPONSIBLE": "",
- "PERSONAL_PHONE": email_user.phone_number if email_user.phone_number else "",
- "WORK_COMPANY": email_user.organization.title if email_user.organization else "",
- "UF_INN": email_user.identification_number,
- "REGION": email_user.organization.region.title if email_user.organization and
- email_user.organization.region else "",
- "INDUSTRY": email_user.organization.org_selection.title if email_user.organization and
- email_user.organization.org_selection else "",
- "FIO_GD": "",
- "ORG_ADDRESS": ""
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement