Advertisement
Mochinov

Untitled

Jan 13th, 2021
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.79 KB | None | 0 0
  1.  
  2.  
  3. class Attachment(models.Model):
  4.     """Прикрепление"""
  5.     recording_time = models.DateTimeField('Время записи', blank=False, null=True)
  6.     pacient = models.ForeignKey(Patient, verbose_name='Пациент', on_delete=models.CASCADE)
  7.     polyclinic = models.ForeignKey(Polyclinic, verbose_name='Поликлиника', on_delete=models.CASCADE)
  8.  
  9.     confirmation_polyclynic = models.BooleanField('Подтверждение поликлиники', default=False)
  10.     confirmation_pacient = models.BooleanField('Подтверждение пациента', default=False)
  11.  
  12.     class Meta:
  13.         db_table= 'attachment'
  14.         verbose_name = 'Запрос на прикрепление'
  15.         verbose_name_plural = 'Запросы на прикрепления'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement