Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

src/a/r/archfinch-HEAD/main/forms.py   archfinch(Download)
class AddItemForm1(forms.ModelForm):
    category = forms.ModelChoiceField(queryset=Category.objects.filter(hide=False))
    class Meta:
        model = Item
        fields = ('name', 'category')