data_export_11.py 406 B

12345678910111213
  1. def check_authentication(support_upload_pk):
  2. upload = models.SupportUpload.objects.get(pk=support_upload_pk)
  3. upload.local_status = "Authenticating"
  4. upload.save()
  5. if is_authenticated(upload.account_id):
  6. upload.local_status = "Authenticated"
  7. upload.save()
  8. return True
  9. else:
  10. upload.local_status = "Access Denied"
  11. upload.save()
  12. return False