Skip to content

Commit 62d463b

Browse files
make ID serialize with page model (#356)
1 parent d79984c commit 62d463b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/wrapped/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class PageSerializer(serializers.ModelSerializer):
3232

3333
class Meta:
3434
model = Page
35-
fields = ["name", "template_path", "combined_stats", "duration"]
35+
fields = ["id", "name", "template_path", "combined_stats", "duration"]
3636

3737
def get_combined_stats(self, obj):
3838
if not (semester := self.context.get("semester", obj)):

0 commit comments

Comments
 (0)