Skip to main content

Extra tools to work with django-reversion

Project description

https://img.shields.io/pypi/v/django-reversion-extras.svg https://img.shields.io/pypi/status/django-reversion-extras.svg https://travis-ci.org/luzfcb/django-reversion-extras.svg?branch=master https://coveralls.io/repos/luzfcb/django-reversion-extras/badge.svg?branch=master Code Health Requirements Status https://img.shields.io/pypi/dd//django-reversion-extras.svg https://img.shields.io/pypi/dm//django-reversion-extras.svg

Extra tools to work with django-reversion

!DANGER!

It is not ready for use, it does not have tests and only serves to try to validate the use of django-reversion for things which it was not designed

Documentation

The full documentation is at https://django-reversion-extras.readthedocs.org.

Quickstart

Install django-reversion-extras:

pip install django-reversion-extras

Then use it in a project:

from reversion_extras.views import DetailVersionListView, UpdateVersionListView

DetailVersionListView provides the same functionality as django.views.generic.DetailView

UpdateVersionListView provides the same functionality as django.views.generic.UpdateView

All inject in the template context some new variables:

object_versions_list: contains the list of django-reversion Versions of current model instance. The same value returned from reversion.get_for_object(model_instance)

model_name_versions_list: is a alias to object_versions_list

version_paginator version_page_obj version_is_paginated

Features

  • TODO:

Create ReversionView Create CompareVersionView

History

0.1.0 (2015-06-26)

  • First release on PyPI.

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-reversion-extras, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size django_reversion_extras-0.0.2-py2.py3-none-any.whl (7.0 kB) File type Wheel Python version 2.7 Upload date Hashes View hashes
Filename, size django-reversion-extras-0.0.2.tar.gz (7.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page