diff --git a/reversion_compare/admin.py b/reversion_compare/admin.py index cbf62d1..b6ccde9 100644 --- a/reversion_compare/admin.py +++ b/reversion_compare/admin.py @@ -179,7 +179,7 @@ def get_many_to_something(self, ids, related_model, is_reverse=False): for ver in reversion.get_for_object(o): # An object can only be missing if it actually existed prior to this version # Otherwise its a new item - if ver.revision.date_created < version.revision.date_created: + if ver.revision.date_created < old_revision.date_created: true_missing_objects.append(o) missing_objects = true_missing_objects deleted = [d for d in reversion.get_deleted(related_model) if d.revision == old_revision]