Commits

Hynek Cernoch committed 1967e0f

Fixed export to be nicer after modifying values back to defaults

  • Participants
  • Parent commits b35af71

Comments (0)

Files changed (1)

File livesettings/values.py

                 except SettingNotSet:
                     s = self.make_setting(db_value)
 
-                if self.use_default and self.default == new_value:
+                if self.use_default and self.to_python(self.default) == self.to_python(new_value):
                     if s.id:
                         log.info("Deleted setting %s.%s", self.group.key, self.key)
                         s.delete()