Update core/models.py

added comment to Campaign.clone method
pull/1/head
eshellman 2012-09-22 13:00:17 -03:00
parent b6862cad3d
commit 376dbdac37
1 changed files with 1 additions and 0 deletions

View File

@ -211,6 +211,7 @@ class Campaign(models.Model):
return u"Campaign %s (no associated work)" % self.name
def clone(self):
"""use a previous UNSUCCESSFUL campaign's data as the basis for a new campaign"""
if self.clonable():
old_managers= self.managers.all()
new_premiums= self.premiums.filter(type='CU')