Commits

Petar Bukvic  committed 9850eda

Custom field name fix in utils

  • Participants
  • Parent commits 4304c98

Comments (0)

Files changed (1)

File versioning/utils.py

         original_data = get_field_data(obj2, field)
         new_data = get_field_data(obj1, field)
         if model.__name__ == 'Prescription': 
-            if (field == 'creator' and original_data != new_data):
+            if (field == 'drug_product_custom_dosage' and original_data != new_data):
                 drug_product_field_name = 'drug_product'
                 original_drug_product_data = get_field_data(obj1, drug_product_field_name)
                 new_drug_product_data = get_field_data(obj2, drug_product_field_name)