django-reversion-compare icon indicating copy to clipboard operation
django-reversion-compare copied to clipboard

Make it possible to override object retrieval in `compare_view` method.

Open NikAzanov opened this issue 3 years ago • 1 comments

In the BaseCompareVersionAdmin.compare_view method, the current implementation of object retrieval uses get_object_or_404 for the model. This method uses _default_manager, which makes it impossible to work with logically deleted objects. It would be nice to have a separate method for getting an object or something like that, so it can be easily overridden and work with the needed queryset.

NikAzanov avatar Feb 21 '22 03:02 NikAzanov

Pull requests are welcome. Plesse with a complete test ;)

jedie avatar Feb 22 '22 06:02 jedie