

def get_object(self, request, object_id, from_field=None):
    fruit = super().get_object(request, from_field)
    if fruit:
        fruit._was_deleted = fruit.deleted
    return fruit

dataset/ETHPy150Open jsmesami/naovoce/src/fruit/admin.py FruitAdmin.get_object/VarMisuse@28/36 `object_id`->`from_field`