Error adding an excluded field

2008-04-02 Thread jorgehugoma
ded Message From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: django-users Sent: Wednesday, April 2, 2008 4:39:10 PM Subject: Error adding an excluded field here's my model class: class CartuchoFallado(models.Model): serie = models.CharField(max_length = 15, primary

Error adding an excluded field

2008-04-02 Thread jorgehugoma
here's my model class: class CartuchoFallado(models.Model): serie = models.CharField(max_length = 15, primary_key = True) informe = models.ForeignKey(CambioDeProducto, verbose_name = 'Informe de Falla') cartucho = models.ForeignKey(Cartucho, verbose_name = 'Cartucho') marca = mode

Re: Error adding an excluded field

2008-04-01 Thread Kenneth Gonsalves
On 02-Apr-08, at 7:59 AM, [EMAIL PROTECTED] wrote: > def cartuchoFallado(request, numinfo): > if request.method == 'POST': > data = copy(request.POST) > data['informe'] = numinfo > form = forms.CartuchoFalladoFrm(data) > if form.is_valid(): > form

Re: Error adding an excluded field

2008-04-01 Thread jorgehugoma
problems with Spanglish. Jorge Hugo Murillo - Original Message From: Malcolm Tredinnick <[EMAIL PROTECTED]> To: django-users@googlegroups.com Sent: Tuesday, April 1, 2008 10:16:22 PM Subject: Re: Error adding an excluded field On Tue, 2008-04-01 at 19:09 -0700, [EMAIL PROTECT

Re: Error adding an excluded field

2008-04-01 Thread Malcolm Tredinnick
On Tue, 2008-04-01 at 19:09 -0700, [EMAIL PROTECTED] wrote: > Malcom, > > I looked at the ModelForm documentation and to be honest with you i > don't understand how am i suppose to change or add a required value > that i excluded. I should underscore that i am fairly new to django so > please ba

Re: Error adding an excluded field

2008-04-01 Thread jorgehugoma
Malcom, I looked at the ModelForm documentation and to be honest with you i don't understand how am i suppose to change or add a required value that i excluded. I should underscore that i am fairly new to django so please bare with me. I tried coping request.POST into a dictionary variable and a

Re: Error adding an excluded field

2008-04-01 Thread Malcolm Tredinnick
On Tue, 2008-04-01 at 16:28 -0700, [EMAIL PROTECTED] wrote: > Hello, > > How do I add a field that is required by my database but excluded in > my forms.py? I used ModelForm class to define my forms but in the meta > class I excluded one of the required fields so i can add it later in > my views

Error adding an excluded field

2008-04-01 Thread jorgehugoma
Hello, How do I add a field that is required by my database but excluded in my forms.py? I used ModelForm class to define my forms but in the meta class I excluded one of the required fields so i can add it later in my views.py. I tried adding the value using the save(commit = False) like this:

Error adding an excluded field

2008-04-01 Thread jorgehugoma
Hello, How do I add a field that is required by my database but excluded in my forms.py? I used ModelForm class to define my forms but in the meta class I excluded one of the required fields so i can add it later in my views.py. I tried adding the value using the save(commit = False) like this: