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
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
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
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
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
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
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
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:
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:
9 matches
Mail list logo