Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 467029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:32:22+00:00 2026-05-12T23:32:22+00:00

There are a lot of complex forms in my project and I keep getting

  • 0

There are a lot of complex forms in my project and I keep getting the feeling that I could be coding them much more elegantly and simply.
So my question is what are some good apps and practices that might help me? Specifically, I’m thinking about situations when I need to do stuff like:

  • edit/add more than one object via one form (example: Lets say I have a Partnership model and a Person model – every partnership object is related to two people. Now lets say I want to edit the partnership and the two people in the partnership simultaneously.)
  • deal with many to many relationships – particularly those that have extra data associated
  • “wizard-like” forms (as in there’s a couple of pages/steps and the user has to get through all of them before anything gets saved to the database)
  • giving suggestions for what to write into a form field based on what’s in the database (I guess this is an AJAX question really, but I’m interested in whether there are some django apps that simplify this somehow)

Solutions to any other more complex form scenarios also welcome. The above are problems I’ve already come across, but I’d like to generally find out about what are some best practices with forms.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T23:32:23+00:00Added an answer on May 12, 2026 at 11:32 pm

    I’ve asked similar questions myself. There’s a lot of room for improvement in Django’s form handling, and there is some discussion of doing something about that but it isn’t moving very quickly. Your asking this question validates this area needs some attention.

    That said, the current ways (to the best of my knowledge) to handle those scenarios is:

    1. The easiest way is to use a ModelForm for the Partnership and inlineformset for the People. It isn’t too difficult, but be aware that there’s no easy way to combine them into one form object so you’ll have to handle them separately.
    2. Not exactly sure what scenario you have in mind, but I think inline formsets are the way to go here as well.
    3. Django has support for this as of 1.0: http://docs.djangoproject.com/en/dev/ref/contrib/formtools/form-wizard/
    4. I’m working on an app to do exactly this (with help from jQuery). I’ve been meaning to clean it up and put it on GitHub, and any extra interest will certainly speed up that process.

    Inline Formsets: http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#inline-formsets

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a fairly complex application in Delphi 2006 that communicates through an ApdComport
I'm building a Q&A app on Rails with a lot of complex validations (e.g.
Alright I'm going to create a fairly complex form to post via AJAX a
i have to create a program for a kind of complex proces. Well, the
Once you’ve taken the leap to start using the jQuery library (or another JS
this question is from Codechef.com [if anyone is still solving this question dont look
I got several questions regarding this issue 1) ActiveMQ after installed and started also
I am experienced with Spring, but new to Spring Batch. Now I have the
I ve two aspCalendar controls on the website. I would like to perform validation
I know this question may sound silly, but I am learning (at least trying)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.