Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 5 | ||
Bugs | 0 | Features | 1 |
1 | # coding: utf-8 |
||
18 | class Appointments(models.Model): |
||
19 | |||
20 | """ |
||
21 | Appointments |
||
22 | """ |
||
23 | user = models.ForeignKey(User, on_delete=models.CASCADE) |
||
24 | appointment_types = models.ForeignKey(AppointmentTypes, |
||
25 | on_delete=models.CASCADE) |
||
26 | title = models.CharField(max_length=255) |
||
27 | body = models.TextField() |
||
28 | created = models.DateTimeField(auto_now_add=True) |
||
29 | modified = models.DateTimeField(auto_now=True) |
||
30 | date_appointments = models.DateField(null=True) |
||
31 | hour_appointments = models.TimeField(null=True) |
||
32 | recall_one_duration = models.IntegerField(null=True) |
||
33 | recall_two_duration = models.IntegerField(null=True) |
||
34 | recall_one_unit = models.IntegerField(null=True) |
||
35 | recall_two_unit = models.IntegerField(null=True) |
||
36 | |||
37 | class Meta: |
||
38 | verbose_name = 'Appointments' |
||
39 | verbose_name_plural = 'Appointments' |
||
40 | |||
41 | def __str__(self): |
||
42 | return "%s (date: %s)" % (self.title, self.date_appointments) |
||
43 |