fix shadowed name
@@ -225,10 +225,10 @@ class ChangeSet(models.Model):
if issubclass(model, ModelWrapper):
model = model._obj
- object = self.get_changed_object(model(pk=pk))
- if object.deleted and not allow_deleted:
+ obj = self.get_changed_object(model(pk=pk))
+ if obj.deleted and not allow_deleted:
raise model.DoesNotExist
- return object.get_obj(get_foreign_objects=get_foreign_objects)
+ return obj.get_obj(get_foreign_objects=get_foreign_objects)
def get_created_pks(self, model) -> set:
"""
