Guard against blowup when displaying std_level if it hasn't been set.

- Legacy-Id: 4059
This commit is contained in:
Henrik Levkowetz 2012-03-07 10:13:35 +00:00
parent 3301bfba0e
commit fd7c95fd28

View file

@ -653,7 +653,10 @@ class InternetDraft(Document):
#current_status = models.CharField(max_length=50,null=True)
@property
def current_status(self):
return self.std_level.name
if self.std_level:
return self.std_level.name
else:
return u"(None)"
#updates = models.CharField(max_length=200,blank=True,null=True)
@property