positions need to be serialized too

This commit is contained in:
Laura Klünder 2024-12-17 00:11:46 +00:00
parent c4e3ca197e
commit b0de389337

View file

@ -549,6 +549,8 @@ def get_position_secret():
class Position(CustomLocationProxyMixin, models.Model):
locationtype = "position"
owner = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
name = models.CharField(_('name'), max_length=32)
secret = models.CharField(_('secret'), unique=True, max_length=32, default=get_position_secret)