SHARE
TWEET

Untitled

a guest Oct 21st, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.             user = {
  2.                 "PERS_ID": userid,
  3.                 "LAST_NAME": email_user.last_name,
  4.                 "NAME": email_user.first_name,
  5.                 "SECOND_NAME": email_user.middle_name,
  6.                 "PERSONAL_BIRTHDAY": email_user.birth_date if email_user.birth_date else '14.01.1984',
  7.                 "DISMISS_DATE": "",
  8.                 "EMAIL": email_user.email,
  9.                 "LOGIN": "croc_{}".format(email_user.username),
  10.                 "PASSWORD": email_user.password,
  11.                 "WORK_POSITION": email_user.position if email_user.position else "Сотрудник",
  12.                 "DATE_REGISTER": email_user.date_joined.strftime("%d.%m.%Y"),
  13.                 "RESPONSIBLE": "",
  14.                 "PERSONAL_PHONE": email_user.phone_number if email_user.phone_number else "",
  15.                 "WORK_COMPANY": email_user.organization.title if email_user.organization else "",
  16.                 "UF_INN": email_user.identification_number,
  17.                 "REGION": email_user.organization.region.title if email_user.organization and
  18.                                                                   email_user.organization.region else "",
  19.                 "INDUSTRY": email_user.organization.org_selection.title if email_user.organization and
  20.                                                                            email_user.organization.org_selection else "",
  21.                 "FIO_GD": "",
  22.                 "ORG_ADDRESS": ""
  23.             }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top