Commits

Ivan Zakrevsky  committed b9b9663

force types in Model.__setattr__()

  • Participants
  • Parent commits dc0f0f0

Comments (0)

Files changed (1)

File autumn/models.py

                 return object.__setattr__(self, name, value)
         if name in self._meta.fields:
             self._changed.add(name)
+            value = data_registry.convert_to_python(type(self).qs.dialect(), self._meta.fields[name].type_code, value)
         self.__dict__[name] = value
 
     def __eq__(self, other):