Advertisement
Mochinov

Untitled

Dec 11th, 2020
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. if pacient.type_call in doctor_info.type_call.all():
  2.    pass
  3. else:
  4.    pacient.doctor = None
  5.    pacient.save()
  6.  
  7.  
  8. так будет правильнее ???
  9.  
  10. if pacient.type_call not in doctor_info.type_call.all():
  11.    pacient.doctor = None
  12.    pacient.save()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement