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)
Cliente=ForeignKey('Cliente',edit_inline=models.TABULAR)
class Contrato_Marco(models.Model):
Cliente=ForeignKey('Cliente',
limit_choices_to={'Fecha_Vencimiento__gte':datetime.date.today()})
Firma_Cliente=ForeignKey('Personal_Cliente',null=True,blank=True)
To obtain Firma_Cliente I have to filter “Personal_Cliente” for
Cliente, but I don’t know how to filter both ForeignKey, due to one
(Firma-Cliente) is dependent of the other (Cliente).
Regards
Mariu
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---