1 parent 8fcd1e1 commit b140725Copy full SHA for b140725
1 file changed
pgweb/core/models.py
@@ -74,7 +74,7 @@ def treestring(self):
74
else:
75
return "%s %s" % (self.numtree, TESTING_SHORTSTRING[self.testing])
76
77
- def save(self):
+ def save(self, update_fields=None):
78
# Make sure only one version at a time can be the current one.
79
# (there may be some small race conditions here, but the likelyhood
80
# that two admins are editing the version list at the same time...)
@@ -87,7 +87,7 @@ def save(self):
87
88
# Now that we've made any previously current ones non-current, we are
89
# free to save this one.
90
- super(Version, self).save()
+ super(Version, self).save(update_fields=update_fields)
91
92
class Meta:
93
ordering = ('-tree', )
0 commit comments