Child: [77df3f] (diff)

Download this file

forms.py    10 lines (7 with data), 379 Bytes

1
2
3
4
5
6
7
8
9
from django import forms
from django.forms.widgets import RadioSelect
class SearchForm(forms.Form):
TARGETS = [['0','All forges'],['5','FSF'],['2','FM'],['12','GC'],['11','GH'],['100','Ohloh']]
target = forms.ChoiceField( widget=RadioSelect(), choices=TARGETS)
name = forms.CharField(max_length=50)
analysis_id = forms.CharField(widget=forms.HiddenInput())