1
0
mirror of https://github.com/django/django.git synced 2025-07-05 10:19:20 +00:00

[soc2009/multidb] Fix the extra_regress tests to be more forward compatible.

git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11422 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Alex Gaynor 2009-08-09 02:55:45 +00:00
parent 50ad53dbca
commit fde0bfe929

View File

@ -19,7 +19,9 @@ class RevisionableModel(models.Model):
super(RevisionableModel, self).save(*args, **kwargs)
if not self.base:
self.base = self
super(RevisionableModel, self).save(using=kwargs.pop('using', None))
kwargs.pop('force_insert', None)
kwargs.pop('force_update', None)
super(RevisionableModel, self).save(*args, **kwargs)
def new_revision(self):
new_revision = copy.copy(self)