Skip to content

Commit fd7c95f

Browse files
committed
Guard against blowup when displaying std_level if it hasn't been set.
- Legacy-Id: 4059
1 parent 3301bfb commit fd7c95f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ietf/doc/proxy.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,10 @@ def rfc_published_date(self):
653653
#current_status = models.CharField(max_length=50,null=True)
654654
@property
655655
def current_status(self):
656-
return self.std_level.name
656+
if self.std_level:
657+
return self.std_level.name
658+
else:
659+
return u"(None)"
657660

658661
#updates = models.CharField(max_length=200,blank=True,null=True)
659662
@property

0 commit comments

Comments
 (0)