last_campaign should return None when there's no campaign rather than a string of text only relevant in one place
parent
92b91d2dbe
commit
c1db972208
|
@ -131,7 +131,7 @@ class Work(models.Model):
|
||||||
try:
|
try:
|
||||||
last = self.campaigns.order_by('-created')[0]
|
last = self.campaigns.order_by('-created')[0]
|
||||||
except:
|
except:
|
||||||
last = "No campaign yet"
|
last = None
|
||||||
return last
|
return last
|
||||||
|
|
||||||
def percent_unglued(self):
|
def percent_unglued(self):
|
||||||
|
|
Loading…
Reference in New Issue