thanks for the reply, let me modify your example.
class Account(Model):
owner = CharField()
class Reimburse(Model):
price = FloatField()
count = IntegerField()
account = ForeignKey(Account)
expenditure = ForeignKey(Expenditure) # diff
class Expenditure(Model):
cost = FloatField()
account = ForeignKey(Account)
the only diff is Reimburse now has a field called expenditure.
so how would the creation code work now?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---