Commits

Petar Bukvic committed c4233bf

Fix for diff original and new ordering)

Comments (0)

Files changed (1)

versioning/utils.py

         new_data = get_field_data(obj1, field)
         #data_diff = unified_diff(original_data.splitlines(),
         #                         new_data.splitlines(), context=3)
-        data_diff = diff(new_data, original_data)
+        data_diff = diff(original_data, new_data)
         lines.extend(["--- {0}.{1}".format(model.__name__, field),
                      "+++ {0}.{1}".format(model.__name__, field)])
         #for line in data_diff: