first locations endpoint might… be… something?

This commit is contained in:
Laura Klünder 2023-11-23 16:37:25 +01:00
parent d84226dc5c
commit 8b47a89865
4 changed files with 132 additions and 3 deletions

View file

@ -82,6 +82,7 @@ class LocationSlug(SerializableMixin, models.Model):
def _serialize(self, **kwargs):
result = super()._serialize(**kwargs)
result["locationtype"] = self.__class__.__name__.lower()
result['slug'] = self.get_slug()
return result