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
0
votes
1 answer

django-reversion didnt work with MultipleChoiceField?

I have form with MultipleChoiceField. It shows me data from tuple CHOICES. Users select checkboxes and then I use that selected data to create new objects (in my case requirements) inside view. When I try to use django-reversion in my view it raise…
Nurzhan Nogerbek
  • 4,806
  • 16
  • 87
  • 193
0
votes
1 answer

How to make correct revert to specific version in django-reversion?

I have 2 question cause little bit comfused with django-reversion app. I have page where users can see list all of reversions. Every version has button to revert. 1 Question: How to show only some fields of changes. Right now it shows me all fields.…
Nurzhan Nogerbek
  • 4,806
  • 16
  • 87
  • 193
0
votes
1 answer

AJAX dont update page

I have strange problem in my project. Can someone say why it happens and how to fix it. I have function in view for edit/update object (function_edit). Also I use AJAX to update list of objects (function_list) after success edit and also I use…
Nurzhan Nogerbek
  • 4,806
  • 16
  • 87
  • 193
0
votes
1 answer

Django - django-reversion - not working in inheritance

I have created a common class with it's admin class which should be inherited by all of my models. My common admin class inherited the VersionAdmin from reversion.admin import VersionAdmin class CommonAdmin(VersionAdmin): pass The problem…
Siva Arunachalam
  • 7,582
  • 15
  • 79
  • 132
0
votes
1 answer

Django-Reversion: Accessing QuerySet Data

I have a model that is under version control using Django-Reversion. Within a Terminal window I can access all of the previous versions of a model instance using: foo = FooModel.objects.get() versions = Version.objects.get_for_object(foo) When I…
0
votes
1 answer

django reversion and get__display

i have a model like this: USER_TYPES=(("pro","Professional"),("beg","Beginner")) mdl_user(models.Model): name=models.CharField(max_length=128) utype=models.CharField(max_length=3,Choices=USER_TYPES) i want track user changes using…
hosein
  • 519
  • 5
  • 25
0
votes
1 answer

Model does not create a verion after deleting a foreign key model object (django-reversion)

I have 2 classes: class ContactInternal(models.Model): name = models.CharField(max_length=80) SysAppApp = apps.get_app_config('SysApp') SysAppModel = SysAppApp.models reversion.register(ContactInternal,…
DSO
  • 33
  • 5
0
votes
1 answer

Conflict with django-reversion package while adding custom button in django admin

i am customizing django admin so i added a custom button to a model admin by "extending admin/change_list.html" template {% block object-tools-items %} //add custom button here {% endblock %} it looks like this when i added a new…
Ajeet Lakhani
  • 3,768
  • 2
  • 22
  • 37
0
votes
1 answer

How to write a revision for Gerenic DeleteView visible in the admin (Django Reversion)?

I can view all deleted objects when I delete an object in the Django Admin with Reversion installed. But I can't see the deleted object when I delete it in my self-written (gerenic) view. (I'm using the context manager. I can see the changes in the…
yofee
  • 1,287
  • 12
  • 25
0
votes
0 answers

Is django-reversion compatible with django-hstore fields?

I'm curious to know if anyone else has come across this situation: I've got a django model with a standard CharField and an hstore field: class MyModel(models.Model): name = models.CharField() data = hstore.DictionaryField() When I save…
Quentin Donnellan
  • 2,687
  • 1
  • 18
  • 24
0
votes
1 answer

Getting revision id from django-reversion

I am trying to get the reversion id on the history page. On my history page, there are links like: 6 May 2015, 3:11 p.m. root Initial version. 6 May 2015, 3:36 p.m. root Changed description. The links are…
A G
  • 997
  • 2
  • 18
  • 36
0
votes
1 answer

Multiple undos in Django-Reversion

I want to undo my changes done in the model. I can undo it 1-level down using django-reversion. how but do I undo my changes multiple times. For eg:- I've a model with reversion.create_revision(): server_obj = Server(url = 1) …
Praful Bagai
  • 16,684
  • 50
  • 136
  • 267
0
votes
1 answer

Django Reversion

I want to undo my last POST/PUt/DELETE or any sort of transaction within a database. I read about Django-reversion & tried implementing it. But to no luck. Here's my code. Please confirm what wrong am I doing!!! Models to be reversed…
Praful Bagai
  • 16,684
  • 50
  • 136
  • 267
0
votes
1 answer

django reversion - revert related field to the same version

I have two models: class Plan(models.Model): ... class Sales(models.Model): plan = models.ForeignKey(Plan) I registered these models in django-reversion: reversion.register(Plan, follow=['sales_set']) reversion.register(Sales) So, when I…
eiscalle
  • 139
  • 2
  • 6
0
votes
1 answer

Model not available during datamigration

I have added a Target model in my app that tags a Revision object (from django-reversion) through a one-to-one field. The tag depends on the objects in the version set, and if any of these objects requires a tag, then the tag should be set for the…
Michael Dunn
  • 8,163
  • 4
  • 37
  • 54