feat: Add important locations to search around
This commit is contained in:
@@ -3,6 +3,7 @@ from random import choices
|
||||
from tabnanny import verbose
|
||||
|
||||
from django.db import models
|
||||
from django.template.defaultfilters import slugify
|
||||
from django.urls import reverse
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
from django.utils import timezone
|
||||
@@ -99,6 +100,12 @@ class Location(models.Model):
|
||||
instance.save()
|
||||
|
||||
|
||||
class ImportantLocation(models.Model):
|
||||
location = models.OneToOneField(Location, on_delete=models.CASCADE)
|
||||
slug = models.SlugField(unique=True)
|
||||
name = models.CharField(max_length=200)
|
||||
|
||||
|
||||
class ExternalSourceChoices(models.TextChoices):
|
||||
OSM = "OSM", _("Open Street Map")
|
||||
|
||||
|
Reference in New Issue
Block a user