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 8041993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:25:02+00:00 2026-06-05T04:25:02+00:00

Django Newbie working on a form to collect information for a carpool app. In

  • 0

Django Newbie working on a form to collect information for a carpool app. In this form, a family is specifying which “legs” of a carpool for which their child needs a ride. The Leg model looks like this:

class Leg(models.Model):
  drive_date = models.DateField()
  startpoint = models.CharField(max_length=50)
  endpoint = models.CharField(max_length=50)
  start_time = models.TimeField()
  riders = models.ManyToManyField(Rider, blank=True)
  drivers = models.ManyToManyField(Driver, blank=True)
  carpool = models.ForeignKey(Carpool)

A unique form will be generated for each rider. The form will look like this: For each leg in a carpool, it will have actual uneditable data for the drive_date, startpoint, start_time (this information is already known). Then they’ll have a checkbox to indicate whether or not the rider needs a ride for that leg or not. If the box is checked, that rider gets added to that leg when the form is submitted.

I’ve looked into model formsets, and at some other methods for creating “dynamic” django forms, but having a hard time making anything work. Any advice on the best approach to show all the legs of a carpool on the same form, and include the rider checkbox, is much appreciated. if there’s already a good example of something like this, I’d sincerely appreciate a pointer to it.

Thanks!

  • 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-06-05T04:25:05+00:00Added an answer on June 5, 2026 at 4:25 am

    For this instance, I gave up on forms and formsets and built custom templates from scratch

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

Sidebar

Related Questions

I am a newbie with a problem working with Django-nonrel on Google App Engine.
I am a Python and Django newbie working on a Django app and I
Newbie question. I have Django models that look like this: class Video(models.Model): uploaded_by =
Django newbie question.... I'm trying to write a search form and maintain the state
I'm a Django newbie who needs your help Have this database model: class Record(models.Model):
I have created a Django app. I have a registration page(simple HTML form) in
I'm a complete newbie to Django. I've been trying to get it working on
Being a Django newbie, I have a question to ask, which should be very
a newbie django question I want to use 3rd party app, but I need
Django and programming newbie with a question about how to build a dynamic form.

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.