def __init__(self, *args, **kwargs):
        entry = 'first_entry' in kwargs
        if entry:
            kwargs.pop('first_entry')
        super(JudgeForm, self).__init__(*args, **kwargs)
        if not entry:
            num_rounds = TabSettings.objects.get(key="tot_rounds").value
            try:
                judge = kwargs['instance']
                checkins = map(lambda c: c.round_number, CheckIn.objects.filter(judge=judge))
                for i in range(num_rounds):
                    self.fields['checkin_%s' % i] = forms.BooleanField(label ="Checked in for round %s?"+(i+1),
                                                                       initial = i+1 in checkins,
                                                                       required = False)
            except:
                pass
dataset/ETHPy150Open jolynch/mit-tab/mittab/apps/tab/forms.py/JudgeForm.__init__/operator `%` -> `+`