{"repo":"jedie/django-reversion-compare","free":true,"listed":false,"github":"https://github.com/jedie/django-reversion-compare","clone":"git clone https://github.com/jedie/django-reversion-compare.git","description":"Add compare view to django-reversion for comparing two versions of a reversion model.","language":"Python","stars":321,"topics":["python","django","reversion"],"license":"GPL-3.0","category":"api-integrations-sdks","readme_excerpt":"django-reversion-compare django-reversion-compare is an extension to django-reversion that provides a history compare view to compare two versions of a model which is under reversion. Comparing model versions is not a easy task. Maybe there are different view how this should looks like. This project will gives you a generic way to see whats has been changed. Many parts are customizable by overwrite methods or subclassing, see above. Installation Just use: Setup Add reversion compare to INSTALLED APPS in your settings.py, e.g.: Usage Inherit from CompareVersionAdmin instead of VersionAdmin to get the comparison feature. admin.py e.g.: If you're using an existing third party app, then you can add patch django-reversion-compare into its admin class by using the reversion compare.helpers.patch admin() method. For example, to add version control to the built-in User model: e.g.: Add django-cms Page model: Customize It's possible to change the look for every field or for a entire field type. You must only define a methods to your admin class with this name scheme: \"compare %s\" % field name \"compare %s\" % field.get internal type() If there is no method with this name scheme, the fallback compare() method will be used. An example for specifying a compare method for a model field by name: and example using patch admin with custom version admin class: Class Based View Beyond the Admin views, you can also create a Class Based View for displaying and comparing version differences. This i","default_branch":null,"files":null,"tree":[],"storefront":"/r/jedie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jedie/django-reversion-compare/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}