Skip to content
Snippets Groups Projects

Encoding issue

Merged Carlos Vega requested to merge encoding_issue into master
6 files
+ 13
5
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -48,10 +48,10 @@ class AppointmentForm(ModelForm):
description = '{} changed from "{}" to "{}"'.format(field, old_human_values, new_human_values)
else:
if self.instance.id: # update instance
previous_value = str(getattr(self.instance, field))
previous_value = getattr(self.instance, field)
else:
previous_value = ''
new_value = str(self.cleaned_data[field])
new_value = self.cleaned_data[field]
description = u'{} changed from "{}" to "{}"'.format(field, previous_value, new_value)
p = Provenance(modified_table=Appointment._meta.db_table,
Loading