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