Hi,
Is there a way to filter the data of a "one-to-one" field widget before it is
rendered as HTML?
thanks,
Jorge Hugo Murillo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Chris,
Are you using the IP address of your network interface?
Jorge Hugo Murillo
- Original Message
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: Django users
Sent: Tuesday, July 8, 2008 2:37:02 PM
Subject: Re:
Chris,
Are you using the IP address of your network interface?
Jorge Hugo Murillo
- Original Message
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: Django users
Sent: Tuesday, July 8, 2008 2:37:02 PM
Subject: Re:
hello all,
I get a operational error when i try to access the sqlite3 database file. This
doesn't happen with Django built in server only with apache. The file has 660
permission so i dont know why it cant be opened everything else works fine. OS
is openSUSE 10.3.
Regards,
Jorge Hugo
Yes, thanks a lot Jared.
regards,
Jorge Hugo Murillo
- Original Message
From: Jared Dobson <[EMAIL PROTECTED]>
To: django-users@googlegroups.com
Sent: Friday, April 4, 2008 11:05:39 AM
Subject: Re: foreign key question
Hello Jorge,
Are you trying to do this?
def
It's a form that derives from the ModelForm class:
Here's my model class:
class CartuchoFallado(models.Model):
serie = models.CharField(max_length = 15, primary_key = True)
informe = models.ForeignKey(SolicitudCambio, verbose_name = 'Informe de
Falla')
cartucho =
here's my final working view function. I don't know if it was the best way to
solve this problem but it was the best i could come up with. Any suggestions?
And thanks for the assistance guys.
def cartuchoFallado(request, numinfo):
if request.method == 'POST':
form =
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 =
heres my modelform class:
class CartuchoFalladoFrm(ModelForm):
class Meta:
model = models.CartuchoFallado
exclude = ('informe',)#My model has for fields serie, cartucho, marca,
informe
and here is my view function:
def cartuchoFallado(request, numinfo):
if
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
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
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
Hi all,
I am having a problem trying to add a field that i excluded in my ModelForm
class in my views.py. This field is requeired by the model . In the django
documentation says i should do the following:
form = Myform(request.POST)
formInstance = form.save(commit=False)
Hi all,
Is there a good python shopping cart that works well with django?
Thanks,
Jorge Hugo Murillo
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
Dean,
You have to add python to your system PATH variable or always give python full
path (c:\python\python manage.py runserver).
To add Python to your PATH variable do the following:
1 right click on my computer and select properties
2 click on the advanced tab
3 click on the Environment
I'm unshelving an object that i wrote in the views module and a get
AtributeError, 'module' object has no attribute Myobject. And run one of its
functions.
Any idea what i am doing wrong??
Jorge Hugo Murillo
16 matches
Mail list logo