Hi, first of all, this question maybe don't belongs here, i konw, but
anyway i didn't found noting about it in docs, and also in the source,
and 2 hours spend on it sisn't bring anything. So i had decided to ask
here
explanation, i have:
class A(models.Model):
name = models.CharFiled(...., required=True)
.....
class B(A):
....
I have an existing instance of A, say `a` and i "want to make"
instance of b out of it.
i'm looking for something like:
b = B()
b.origin = a
b.save()
Is this somehow possible? Forcing a foreign key doesn't work - because
of the validation of required field in model A.
Thanks a lot!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---