Fixed versioning in the Quota admin

This commit is contained in:
Raphael Michel
2015-06-21 22:25:28 +02:00
parent 926d543bf7
commit a0aa65e392
2 changed files with 23 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ class Versionable(BaseVersionable):
"""
This behaves like clone(), but misses all the Many2Many-relation-handling. This is
a performance optimization for cases in which we have to handle the Many2Many relations
by handy anyways.
by hand anyways.
"""
if not self.pk:
raise ValueError('Instance must be saved before it can be cloned')