예제 #1
0
 class TestForm(Form):
     a = QuerySetSelectField(queryset=self.queryset,
                             widget=lazy_select,
                             get_label=lambda x: x.name.upper())
예제 #2
0
 class F(Form):
     a = QuerySetSelectField(allow_blank=True,
                             get_label='name',
                             widget=lazy_select)
     b = QuerySetSelectField(queryset=self.queryset, widget=lazy_select)