Mercurial > public > sg101
diff bandmap/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 | 09ed84a7394c |
children |
line wrap: on
line diff
--- a/bandmap/models.py Sat Jan 04 21:34:31 2025 -0600 +++ b/bandmap/models.py Wed Jan 22 17:58:16 2025 -0600 @@ -16,7 +16,7 @@ class BandEntry(models.Model): """Represents a band entry on the band map.""" name = models.CharField(max_length=128) - user = models.ForeignKey(User) + user = models.ForeignKey(User, on_delete=models.CASCADE) date_submitted = models.DateTimeField() date_approved = models.DateTimeField(null=True, blank=True) url = models.URLField(blank=True, max_length=200)