Mercurial > public > sg101
diff membermap/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 |
line wrap: on
line diff
--- a/membermap/models.py Sat Jan 04 21:34:31 2025 -0600 +++ b/membermap/models.py Wed Jan 22 17:58:16 2025 -0600 @@ -10,7 +10,7 @@ class MapEntry(models.Model): """Represents a user's entry on the map.""" - user = models.ForeignKey(User) + user = models.ForeignKey(User, on_delete=models.CASCADE) location = models.CharField(max_length=255) lat = models.FloatField() lon = models.FloatField()