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

Importing django reversion gives an error

I have the need to add version control for my models in the django admin and for that reason I have installed django-reversion from here.My server does not have have internet connectivity so I could not use pip.I had to manually download the zip…
Amistad
  • 7,100
  • 13
  • 48
  • 75
0
votes
1 answer

Does django-reversion require me to re-define all of my model pre_save & post_save signals?

I recently added django-reversion to my project to keep a history of model changes. Now, any time I save a model in my system, I get the following warning in the log: .../site-packages/reversion/models.py:218: UserWarning: pre_save and post_save…
Troy
  • 21,172
  • 20
  • 74
  • 103
0
votes
1 answer

Django model instance __nonzero__ override ignored

I'm trying to override a model instance's __nonzero__ so it evaluates to False I've first tested on a simple Python class: >>> class A(): ... pass ... >>> a = A() >>> a.__nonzero__ = lambda: False >>> b = A() >>> bool(a) False >>>…
rxdazn
  • 1,380
  • 1
  • 14
  • 30
0
votes
1 answer

django-reversion: get_for_object() throws database error "'.django_content_type' doesn't exist"

During my first attempt at using django-reversion, I was evaluating it to see if I can do certain basic version retrieval operations on my model: I'm unable to retrieve a list of prior versions of specific model after saving a change to a specific…
rajivRaja
  • 527
  • 3
  • 6
  • 16
0
votes
1 answer

Django-reversion and proxy models

I'm having trouble saving my model revisions when there are proxy models defined. class MyModel(models.Model): field = model.IntegerField(...) class MyModelProxy(MyModel): class Meta: proxy = True reversion.register(MyModel) I'm…
Marek M.
  • 3,799
  • 9
  • 43
  • 93
-1
votes
2 answers

Trying to install Django reversion

I'm trying to setup a Django project but Im getting this: python2.7 manage.py migrate Traceback (most recent call last): File "manage.py", line 10, in execute_from_command_line(sys.argv) File…
tirenweb
  • 30,963
  • 73
  • 183
  • 303
-1
votes
1 answer

Cannot use VersionAdmin with a database that does not support savepoints

I use django-reversion and I am getting this error out of the blue. django.core.exceptions.ImproperlyConfigured: Cannot use VersionAdmin with a database that does not support savepoints. It occurs on the line …
learner
  • 39
  • 9
1 2 3 4 5
6