If I create some model like this, it's ok: sm = SomeModel() sm.save() self.sm = sm
But if I try to this: self.sm = SomeModel() self.sm.save() Then when I try to save self, OtherModel.save(self), because it wasn't yet saved I receive information, that self.sm id wasn't set (and it can't be null). Why it happens so? -- Filip Gruszczyński --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---