1. Petar Bukvic
  2. django-versioning

Commits

Petar Bukvic  committed f34168d

Renamed custom field name

  • Participants
  • Parent commits 261dba1
  • Branches master

Comments (0)

Files changed (1)

File versioning/utils.py

View file
         original_data = get_field_data(obj2, field)
         new_data = get_field_data(obj1, field)
         if model.__name__ == 'Prescription': 
-            if (original_data != new_data or field == 'created'):
+            if (original_data != new_data or field == 'creator'):
                 lines.extend(["@@@ {0}".format(field)])
                 lines.append(new_data.strip())
         else: