Advertisement
Guest User

Untitled

a guest
Sep 21st, 2014
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.66 KB | None | 0 0
  1. class Physician(models.Model):
  2.     user = models.OneToOneField(User)
  3.     patients = models.ManyToManyField(Patient, through='MedicalCase',
  4.                                       related_name='physicians')
  5.     hospital = models.ForeignKey(Hospital, related_name='physicians')
  6.     collaborator = models.ForeignKey(Collaborator, related_name='physicians')
  7.     phone_number = PhoneNumberField()
  8.     access_code = models.CharField(max_length=20)
  9.     educational_materials = models.FileField(
  10.         upload_to='user_files/educational_materials')
  11.     preview_file = models.FileField(upload_to='user_files/preview_files')
  12.     speciality = models.CharField(max_length=50)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement