mirror of
https://github.com/django/django.git
synced 2025-07-05 18:29:11 +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:
parent
50ad53dbca
commit
fde0bfe929
@ -19,7 +19,9 @@ class RevisionableModel(models.Model):
|
|||||||
super(RevisionableModel, self).save(*args, **kwargs)
|
super(RevisionableModel, self).save(*args, **kwargs)
|
||||||
if not self.base:
|
if not self.base:
|
||||||
self.base = self
|
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):
|
def new_revision(self):
|
||||||
new_revision = copy.copy(self)
|
new_revision = copy.copy(self)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user