Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
1205:510ef3cbf3e6 | 1206:02181fa5ac9d |
---|---|
8 from core.markup import site_markup | 8 from core.markup import site_markup |
9 | 9 |
10 | 10 |
11 class MapEntry(models.Model): | 11 class MapEntry(models.Model): |
12 """Represents a user's entry on the map.""" | 12 """Represents a user's entry on the map.""" |
13 user = models.ForeignKey(User) | 13 user = models.ForeignKey(User, on_delete=models.CASCADE) |
14 location = models.CharField(max_length=255) | 14 location = models.CharField(max_length=255) |
15 lat = models.FloatField() | 15 lat = models.FloatField() |
16 lon = models.FloatField() | 16 lon = models.FloatField() |
17 message = models.TextField(blank=True) | 17 message = models.TextField(blank=True) |
18 html = models.TextField(blank=True) | 18 html = models.TextField(blank=True) |