positions need to be serialized too
This commit is contained in:
parent
c4e3ca197e
commit
b0de389337
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue