feat: add important locations and buying to sitemap and fix

This commit is contained in:
2025-07-14 06:33:12 +02:00
parent 9f53836ce8
commit 5a6c2c99e5
3 changed files with 18 additions and 15 deletions

View File

@@ -107,6 +107,9 @@ class ImportantLocation(models.Model):
slug = models.SlugField(unique=True)
name = models.CharField(max_length=200)
def get_absolute_url(self):
return reverse('search-by-location', kwargs={'important_location_slug': self.slug})
class ExternalSourceChoices(models.TextChoices):
OSM = "OSM", _("Open Street Map")