last_campaign should return None when there's no campaign rather than a string of text only relevant in one place

pull/1/head
thatandromeda 2011-11-06 14:16:29 -05:00
parent 92b91d2dbe
commit c1db972208
1 changed files with 1 additions and 1 deletions

View File

@ -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):