Type checking tweaks.

- Legacy-Id: 16866
This commit is contained in:
Henrik Levkowetz 2019-10-15 16:50:43 +00:00
parent 447525de73
commit a288401fd1

View file

@ -20,8 +20,8 @@ from ietf.person.fields import SearchablePersonsField
NUM_SESSION_CHOICES = (('','--Please select'),('1','1'),('2','2'))
# LENGTH_SESSION_CHOICES = (('','--Please select'),('1800','30 minutes'),('3600','1 hour'),('5400','1.5 hours'), ('7200','2 hours'),('9000','2.5 hours'))
LENGTH_SESSION_CHOICES = (('','--Please select'),('1800','30 minutes'),('3600','1 hour'),('5400','1.5 hours'), ('7200','2 hours'))
WG_CHOICES = list( Group.objects.filter(type__in=('wg','rg','ag'),state__in=('bof','proposed','active')).values_list('acronym','acronym').order_by('acronym')) # type: ignore
WG_CHOICES.insert(0,('','--Select WG(s)'))
WG_CHOICES = list( Group.objects.filter(type__in=('wg','rg','ag'),state__in=('bof','proposed','active')).values_list('acronym','acronym').order_by('acronym')) # type:ignore
WG_CHOICES.insert(0,('','--Select WG(s)')) # type:ignore
# -------------------------------------------------
# Helper Functions