On Thu, Jun 18, 2009 at 11:21 AM, Luc Saffre wrote:
>
> Okay, when I add an explicit parent link in my example:
>
>contact = models.OneToOneField(contacts.Contact,parent_link=True)
>
> then the TypeError disappears. But still I would now expect that the
> following works:
>
> >>> c = Custome
On 18.06.2009 14:05, Ramiro Morales wrote:
>
> Why do you thing there should be a automatically created one to one
> relationship from Customer to Contact named "contact"?.
Why I think there should be a automatic one-to-one relation from
Customer to Contact? Because that's what the MTI documenta
On Thu, Jun 18, 2009 at 7:00 AM, Luc Saffre wrote:
>
> sandbox.contacts.models
> ---
>
> from django.db import models
> class Contact(models.Model):
> first_name = models.CharField(max_length=200)
> [...]
> class Customer(contacts.Contact):
> payment_term = models.Integer
3 matches
Mail list logo