Skip to content
Snippets Groups Projects
Commit 6df70c28 authored by Felix Blanke's avatar Felix Blanke
Browse files

Export ids as str

parent cebd1062
No related branches found
No related tags found
1 merge request!3Merge into fork's `main` branch
......@@ -587,7 +587,7 @@ class Room(models.Model):
time_constraints = [f"availability-room-{self.pk}"]
data = {
"id": self.pk,
"id": str(self.pk),
"info": {
"name": self.name,
},
......@@ -714,7 +714,7 @@ class AKSlot(models.Model):
return [f"availability-person-{owner.pk}"]
data = {
"id": self.pk,
"id": str(self.pk),
"duration": int(self.duration * self.slots_in_an_hour),
"properties": {},
"room_constraints": [constraint.name
......
......@@ -131,7 +131,7 @@ class AKJSONExportView(AdminViewMixin, FilterByEventSlugMixin, ListView):
constraints.append(f"availability-room-{room}")
current_block.append({
"id": slot_index,
"id": str(slot_index),
"info": {
"start": slot.simplified,
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment