Work on localization and some small fixes

This commit is contained in:
thooge committed 2026-10-17 08:34:54 +02:00
1 parent 3a43f749f5
commit ee947b772f
6 files changed
+1190 -289

No files matched your search

+5 -1
View File
@@ -145,5 +145,9 @@ class DbRecord:
out = [self._title.format(self.pk_value)]
for field in self.fields:
value = getattr(self, field, None)
out.append(" {:15}: {}".format(field, value))
oldvalue = self.data[field]
if value != oldvalue:
out.append(" {:15}: {} ({})".format(field, value, oldvalue))
else:
out.append(" {:15}: {}".format(field, value))
return "\n".join(out)