Skip to content
Snippets Groups Projects
Commit 9cc512c0 authored by Jiří Setnička's avatar Jiří Setnička
Browse files

DB: Při sumírování changes chceme str

Jinak dělají problémy převod datetime
parent 15ddb140
Branches
No related tags found
2 merge requests!10Nastavení kol a úloh,!9WIP: Zárodek uživatelské části webu a submitování
......@@ -158,7 +158,7 @@ class RoundState(MOEnum):
round_state_names = {
RoundState.preparing: 'iprava',
RoundState.preparing: 'íprava',
RoundState.running: 'běží',
RoundState.grading: 'opravuje se',
RoundState.closed: 'ukončeno',
......@@ -496,7 +496,7 @@ def get_object_changes(obj):
after = getattr(obj, attr.key)
if before != after:
if before or after:
changes[attr.key] = {'before': before, 'after': after}
changes[attr.key] = {'before': str(before), 'after': str(after)}
return changes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment