Registry / web-framework / django-reversion-compare

django-reversion-compare

JSON →
library0.19.2pypypiunverified

Add compare view to django-reversion for comparing two versions of a reversion model. Version 0.19.2 supports Python >=3.11 and Django 4.2+. Released irregularly.

pip install django-reversion-compare
INSTALL
IMPORT
SIG · DJANGO-REVERSION-C
D
django-reversion-compare
web-frameworkpythonv0.19.2
Install
4.6s avg
Import
Disk
80MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.17.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 80.3MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 4.6s · import 0.000s · 81MB
80MB installed
● package 80MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CompareVersionAdmin
from reversion_compare.admin import CompareVersionAdmin
from reversion_compare.admin import CompareVersionAdmin

Enable version comparison in the Django admin for a model registered with django-reversion.

# settings.py INSTALLED_APPS = [ ... 'reversion', 'reversion_compare', ] # admin.py from django.contrib import admin from reversion_compare.admin import CompareVersionAdmin from .models import YourModel class YourModelAdmin(CompareVersionAdmin): pass admin.site.register(YourModel, YourModelAdmin)
Debug
Known issues
breakingRequires django-reversion 5.0+. Older versions of django-reversion are incompatible.
fix
Ensure django-reversion >= 5.0 is installed: pip install 'django-reversion>=5.0'
affects: >=0.18.0
deprecatedThe 'reversion_compare.views.revision_diff' function signature changed in 0.17.0. Old calls with positional arguments will break.
fix
Use keyword arguments when calling revision_diff. See documentation.
affects: 0.17.0+
gotchaModel fields that are not registered with reversion (e.g., excluded fields) will not appear in the compare view. Users often expect all fields to be compared.
fix
Register all relevant fields with reversion: use reversion.register(YourModel, fields=['field1', 'field2', ...]) or follow_fields.
affects: all
Upgrade
Version history
0.19.2latest on PyPI · released Feb 6, 2026
Audit
Dependencies
django-reversionrequiredRequired to provide versioning that can be compared.
djangorequiredDjango ORM and admin integration.
Agent activity
6 hits · last 30 days
node
6
Resources
django-reversion-compare — pip install django-reversion-compare · libregistry