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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T11:52:22+00:00 2026-06-16T11:52:22+00:00

When creating custom model admin inlines in Django, you can set two parameters extra

  • 0

When creating custom model admin inlines in Django, you can set two parameters extra and max_num: the number of additional forms to display, and the maximum number of objects to allow the user to attach to the parent object.

I have a Question model, each of which can have several answers, which are inlines in the Question admin. Most questions will have three answers, so I would like to show three inlines by default; however, when editing a question that already has three answers, it looks crowded and tacky to show three whole extra fields when most likely there aren’t going to be any more answers at all. What I want is essentially a min_num parameter: I want to show at least three fields by default, empty if there are less than three answers already, while still allowing the user to add more than that which will then all be shown.

I’ve found tickets for adding this both to formsets and inlines, but it looks like they haven’t been resolved. Is there any convenient way to do this in Django 1.4 currently?

  • 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-16T11:52:24+00:00Added an answer on June 16, 2026 at 11:52 am

    There is a patch available for this:

    https://code.djangoproject.com/ticket/17642

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

Sidebar

Related Questions

I'm new with Django and I'm having some problems creating a custom user model.
I'm creating a my own custom User model by extending the User model provided
I am creating a custom model binder to initially load a model from the
I'm having problems creating custom forms in pyramid_formalchemy. I suspect there is a bug
I'm creating a custom model binder in an Mvc application and I want to
I've been following this guide on creating custom display attributes (specifically extra html attributes)
I've created a custom Manager for a Django model which returns a QuerySet holding
I'm creating a multiple-tenant application that won't use any of the standard Django Admin
I was creating custom content model in datalistModel.xml <type name=dl:car> <title>Car List</title> <parent>dl:dataListItem</parent> <properties>
I am creating a custom validation function in my model in CakePHP. After reading

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.