Skip to content

Commit ce26647

Browse files
committed
Make docstate() return the same type of information in all cases. Make the returned information match the conventions for state::substate display
- Legacy-Id: 1254
1 parent 5661f55 commit ce26647

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/idtracker/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,9 +545,9 @@ def ballot_others(self):
545545
return IDInternal.objects.filter(models.Q(primary_flag=0)|models.Q(primary_flag__isnull=True), ballot=self.ballot_id)
546546
def docstate(self):
547547
if self.cur_sub_state_id > 0:
548-
return "%s :: %s" % ( self.cur_state, self.cur_sub_state )
548+
return "%s::%s" % ( self.cur_state.state, self.cur_sub_state.sub_state )
549549
else:
550-
return self.cur_state
550+
return self.cur_state.state
551551
class Meta:
552552
db_table = 'id_internal'
553553
verbose_name = 'IDTracker Draft'

0 commit comments

Comments
 (0)