Questions tagged [django-reversion]

django-reversion is an extension to the Django web framework that provides comprehensive version control facilities.

Features

  • Roll back to any point in a model's history - an unlimited undo facility!
  • Recover deleted models - never lose data again!
  • Admin integration for maximum usability.
  • Group related changes into revisions that can be rolled back in a single transaction.
  • Automatically save a new version whenever your model changes using Django's flexible signalling framework.
  • Automate your revision management with easy-to-use middleware.

django-reversion can be easily added to your existing Django project with an absolute minimum of code changes.

82 questions
1
vote
2 answers

Is there a way to access a django-reversion object as if it were the current object?

I'm using Django-Reversion - is there a way to temporarily re-instate a previous version of an object so that it can be viewed in a DetailView? Non working code - version.get_object() would be nice.. class ProductDetailView(DetailView): def…
Guy Bowden
  • 4,997
  • 5
  • 38
  • 58
1
vote
1 answer

filter particular field name and value from field_dict of package django-reversion

I have a function which returns json data as history from Version of reversion.models. from django.http import HttpResponse from reversion.models import Version from django.contrib.admin.models import LogEntry import json def history_list(request): …
Praneeth
  • 902
  • 2
  • 11
  • 25
1
vote
2 answers

split the revision.comment into field and value in Django-reversion

I have a function to display history list of version objects as below and I have this particular .py file in public repo at https://github.com/praneethkumarpidugu/django-reversion/blob/master/rev_history/views.py#L1: from django.http import…
Praneeth
  • 902
  • 2
  • 11
  • 25
1
vote
1 answer

How to provide view for django-reversion History objects?

Admin integration for django reversion is pretty straightforward. When I visit 127.0.0.1/admin I have the option for staff users to recover deleted objects or view previous versions. But this is only from the admin side. How can I provide a public…
Praneeth
  • 902
  • 2
  • 11
  • 25
1
vote
1 answer

Can i use django reversion only for Admin or front end as well

I am trying to use Django reversion so that i can have the audit log of all changes done to all models in front end application done in Angular JS as front end and Django REST as backend. I am thinking of using Django Reversion and their docs say…
user3214546
  • 6,523
  • 13
  • 51
  • 98
1
vote
1 answer

django data history/auditing

I'm requiring model data history for my django project, and have come across the following products: django-reversion django-revisions django-simple-history django-audit-log cleanerversion I can't find a recent recent comparison of these; a…
askvictor
  • 3,621
  • 4
  • 32
  • 45
1
vote
1 answer

Getting django-mptt to play nice with django-reversion

I'm working on a project that is using django-reversion to track changes and give the ability to revert to earlier states, and django-mptt for some tree-shaped models. The delete and revert functionality, however, have some funky behavior. I'm…
MBrizzle
  • 1,783
  • 1
  • 18
  • 31
1
vote
1 answer

How to keep Django Flat Pages under version control?

Django flatpages is a very basic CMS Django-reversions enables a backup of models past versions access in the admin https://github.com/etianen/django-reversion How can I keep the flatpages app models under reversion? The models are not explicitly…
jordn
  • 25
  • 4
1
vote
1 answer

Using reversion with GeoDjango in Django admin

I know how to use django-reversion and geodjango for admin site separately. my class looks like this: class My_model_Admin(admin.GeoModelAdmin, reversion.VersionAdmin): list_display = ('id', 'name') admin.site.register(My_model,…
jcs
  • 426
  • 3
  • 14
1
vote
1 answer

filter results returned by django-reversion

Just started using django-reversion with the Polls application from the django tutorial. To get this working, all I did was to create mysite/polls/admin.py with the following code: from django.contrib import admin from polls.models import…
Trewq
  • 3,187
  • 6
  • 32
  • 50
0
votes
1 answer

Django-reversion manually create version

Let's say I want to create a version of an object only in certain conditions, for example when 'status' field of object of class 'mymodel' is being changed to 'submitted'. How can I do this? class MyModel(AbstractModel): number =…
0
votes
0 answers

Django Reversion - Viewing incompatible version data

Is there a way to view incompatible version data using Django-Reversion or after making a change to the model? I understand I wouldn't be able to revert or reinstate a previous version before the model change, but is there a way to simply view the…
0
votes
1 answer

My django didnt work(I'm studying in tutorial)

I'm very new to django. So I'm studying using tutorial site. I think type perfectly same on site, but it's not work. so plz give me advice. mysite/urls.py from django.contrib import admin from django.urls import include, path urlpatterns = [ …
user13834263
0
votes
1 answer

Django reversion recovery from a web page

Is it any chance to implement recovery of the deleted model objects by django-reversion from a site web page or it works only from admin panel? I dont wait for ready solution, rather i need to know if it possible or not or maybe some advice where i…
Aleksei Khatkevich
  • 1,923
  • 2
  • 10
  • 27
0
votes
1 answer

How to combine django-modeltranslation and django-reversion apps?

Question: how to combine django-modeltranslation and django-reversion apps? I have next problem: in models.py file I registered Slide model which has head field. This field has several other fields for translation like head_ru, head_kz, head_en. I…