Re: inlineformset_factory. how to get pk of parent model without saving.

2009-03-26 Thread igor.potapenko
btw, if I leave instance = None, I got an list index out of range here: http://dpaste.com/hold/19039/ full example. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

inlineformset_factory. how to get pk of parent model without saving.

2009-03-25 Thread igor.potapenko
Hi, people! I want to write a view, which save all my data, entered to form.(like contrib.admin) But I got a problem. How to get a pk value of parent form, when it's just saved(form is continue editing)? I have such models: ## class Question(models.Model): number = models.IntegerField(