Skip to content

Commit 1571044

Browse files
committed
Give telechat agenda items a default type, for easier secretariat use of the admin interface for adding entries. Use an empty title string when no title is available.
- Legacy-Id: 3626
1 parent 7e62969 commit 1571044

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/iesg/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ class TelechatAgendaItem(models.Model):
8686
TYPE_CHOICES_DICT = dict(TYPE_CHOICES)
8787
id = models.AutoField(primary_key=True, db_column='template_id')
8888
text = models.TextField(blank=True, db_column='template_text')
89-
type = models.IntegerField(db_column='template_type', choices=TYPE_CHOICES)
89+
type = models.IntegerField(db_column='template_type', choices=TYPE_CHOICES, default=3)
9090
title = models.CharField(max_length=255, db_column='template_title')
9191
#The following fields are apparently not used
9292
#note = models.TextField(null=True,blank=True)
9393
#discussed_status_id = models.IntegerField(null=True, blank=True)
9494
#decision = models.TextField(null=True,blank=True)
9595
def __unicode__(self):
9696
type_name = self.TYPE_CHOICES_DICT.get(self.type, str(self.type))
97-
return u'%s: %s' % (type_name, self.title)
97+
return u'%s: %s' % (type_name, self.title or "")
9898
class Meta:
9999
db_table = 'templates'
100100

0 commit comments

Comments
 (0)