Thanks, I was looking at his suggestion, The problems is:
class Contrato_Marco(models.Model):
Cliente=ForeignKey('Cliente')
Firma_Cliente=ForeignKey('Personal_Cliente',null=True,blank=True,limit_choices_to={'Cliente':Cliente_set.all()})
NameError: name Cliente_set is not definit
a
i had a slightly hard time understanding your problem.
are you asking for Personal_Cliente.contract_macro_set.all()
http://www.djangoproject.com/documentation/db-api/#related-objects
or are you asking for how to climb the tree the other way?
On Jun 25, 10:02 am, mariu <[EMAIL PROTECTED]> wrote:
Hello friends
This is my first django proyect and I have a problem.
class Cliente(models.Model):
nombre=CharField(max_length=80)
Fecha_Vencimiento=DateField(null=True,blank=True,editable=False)
class Personal_Cliente(models.Model):
nombre=CharField(max_length=50)
Client
3 matches
Mail list logo