1 2 3 4 5 6 7 8 9 10
from django import forms def form_for_poll(poll): return type("PollForm", (forms.BaseForm,), { "base_fields": { "answers": forms.ModelChoiceField(poll.choice_set.all(), widget=forms.RadioSelect, empty_label=None), } })
Loggerhead is a web-based interface for Breezy Version: 2.0.1