Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
1205:510ef3cbf3e6 | 1206:02181fa5ac9d |
---|---|
14 | 14 |
15 | 15 |
16 class BandEntry(models.Model): | 16 class BandEntry(models.Model): |
17 """Represents a band entry on the band map.""" | 17 """Represents a band entry on the band map.""" |
18 name = models.CharField(max_length=128) | 18 name = models.CharField(max_length=128) |
19 user = models.ForeignKey(User) | 19 user = models.ForeignKey(User, on_delete=models.CASCADE) |
20 date_submitted = models.DateTimeField() | 20 date_submitted = models.DateTimeField() |
21 date_approved = models.DateTimeField(null=True, blank=True) | 21 date_approved = models.DateTimeField(null=True, blank=True) |
22 url = models.URLField(blank=True, max_length=200) | 22 url = models.URLField(blank=True, max_length=200) |
23 location = models.CharField(max_length=255) | 23 location = models.CharField(max_length=255) |
24 lat = models.FloatField() | 24 lat = models.FloatField() |