Re: saving to two models from one class view

2014-01-14 Thread Dan Gentry
With a formset, like your application form, the template could look like one of these examples: {{ formset.management_form }} {% for form in formset %} {{ form }} {% endfor %} {{ formset }} (found on https://docs.djangoproject.com/en/de

Re: saving to two models from one class view

2014-01-10 Thread Brad Rice
Thanks for the help. I've modified the Applicant model: class Application(models.Model): app_complete = models.BooleanField(default=False) applicant = models.ForeignKey('Applicant', unique=True) created_by = models.ForeignKey(User, related_name='+') There is really no data being ente

Re: saving to two models from one class view

2014-01-09 Thread trojactory
Hi Brad, At the moment, two models do not have any relationship. I think you made an error in Line 3: created_by = models.ForeignKey(User, unique=True) I think you meant "Applicant" instead of User. Regards, Arun On Friday, January 10, 2014 3:13:42 AM UTC+5:30, Brad Rice wrote: > > I have