Skip to content
Snippets Groups Projects
Verified Commit 9a34ef22 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Make pks generated in generate_list_of_all_register_objects unique

parent a0fe79e8
No related branches found
No related tags found
1 merge request!152Overview of all register objects
......@@ -259,7 +259,7 @@ def generate_list_of_all_register_objects(filter_dict: Dict[str, Any]) -> List[d
# Build table entry
entry = {
"pk": f"{lesson_period.pk}_{week.year}_{week.week}",
"pk": f"lesson_period_{lesson_period.pk}_{week.year}_{week.week}",
"week": week,
"has_documentation": has_documentation,
"substitution": sub,
......@@ -312,7 +312,7 @@ def generate_list_of_all_register_objects(filter_dict: Dict[str, Any]) -> List[d
# Build table entry
entry = {
"pk": str(register_object.pk),
"pk": f"{register_object.label_}_{register_object.pk}",
"has_documentation": has_documentation,
"register_object": register_object,
"date": day,
......
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