I\'d like to perform some manipulation (simple math) to the posted data and save it to the db, via custom save method... I\'ve used the inlineformset_factory (parent child table..., foreign key...)
I have a model called picks that allows users to select an nfl team (from a static list).Whenever they choose a team, they can no longer choose that team again, so there selection choices are reduced
I have the following form: 开发者_如何学运维from django import forms class PostForm(forms.Form):
I have 2 models: class City(models.Model): name = models.CharField(max_length=50) slug = models.SlugField(max_length=50)
This is the form: from django.forms.extras.widgets import SelectDateWidget class EntryForm(forms.ModelForm):
I have a table where one of the fields is categories: Sports, Movies, Books, etc I have another table with开发者_开发知识库 sub-categories, for instance sports is divided into ballet, futebol, golf, e
I have a modelform, which has three required fields: user, network, and position. The position is pulled by request.POST, and the other two will be supplied outside of it. This is what I currently hav
I have a dropdown form for one to select their graduation year -- graduation = forms.ChoiceField(choices=[(x,str(x)) for x in graduation_range])
I built a form in django and I\'m having trouble debugging my Tours Choices.It is a ChoiceField and I use the CheckboxMultipleSelect Widget.I don\'t know what I\'m doing wrong to get the error in the
I m creating a django site (using django forms) that lets users subscribe their email. How do I get that email into a text file? Currently I have a cron job that runs a python script sending an email