Mercurial > public > sg101
comparison gcalendar/models.py @ 1206:02181fa5ac9d modernize tip
Update to Django 1.9.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 22 Jan 2025 17:58:16 -0600 |
parents | f0ac48aa8c64 |
children |
comparison
equal
deleted
inserted
replaced
1205:510ef3cbf3e6 | 1206:02181fa5ac9d |
---|---|
39 (DEL_REQ, 'Delete Request'), | 39 (DEL_REQ, 'Delete Request'), |
40 (DEL_APRV, 'Delete Approved'), | 40 (DEL_APRV, 'Delete Approved'), |
41 (ON_CAL, 'On Calendar'), | 41 (ON_CAL, 'On Calendar'), |
42 ) | 42 ) |
43 | 43 |
44 user = models.ForeignKey(User) | 44 user = models.ForeignKey(User, on_delete=models.CASCADE) |
45 what = models.CharField(max_length=255) | 45 what = models.CharField(max_length=255) |
46 start_date = models.DateField() | 46 start_date = models.DateField() |
47 start_time = models.TimeField(null=True, blank=True) | 47 start_time = models.TimeField(null=True, blank=True) |
48 end_date = models.DateField() | 48 end_date = models.DateField() |
49 end_time = models.TimeField(null=True, blank=True) | 49 end_time = models.TimeField(null=True, blank=True) |