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:
|
||||
last = self.campaigns.order_by('-created')[0]
|
||||
except:
|
||||
last = "No campaign yet"
|
||||
last = None
|
||||
return last
|
||||
|
||||
def percent_unglued(self):
|
||||
|
|
Loading…
Reference in New Issue