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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:44:02+00:00 2026-05-26T12:44:02+00:00

Can’t find how to do this for some reason. When clicking the Add_model Entry

  • 0

Can’t find how to do this for some reason.

When clicking the “Add_model Entry” button on the Admin page, I want most of the fields to be filled in with the same values the user put into the previous model instance that they created and saved. (I don’t care about which users, just about the last (youngest) saved instance of a model).

Use Case: The user will be creating instances of this model in batch mode, for example 10 very similar items, so it would be very helpful if most of the info is prepopulated each time they hit the “Add entry” button. They may do this 3-4 times per day, if that mattered for some reason, and each batch would have significantly different values in the fields from the previous batch, but each instance in the batch would be similar. Hence my thought of prepopulating with the most recently saved values.

Contrived Example:


class person:<br>
    name= CharField       =>   (obvious)<br>
    interests= CharField  =>   Example (fly, skate, swim)<br>
    age_range= CharField  =>   Example (old, middle, young)<br>

batch 1 = people who fly and are old

Jim Smith, Fly, Old
Sara Smith, Fly, Old
Larry Jones, Fly, Old

batch 2 = skaters

Sam Samuelson, Skate, Young
Alfred Bob, Skate, Old
Jon Jon, Skate, Old

There is much similarity in each batch, but batches can be very different. So I would guess I need a copy of the previously saved model with a new id, (there is no Inheritance here to deal with, but there are ForeignKeys). How do I add it to the “Add Entry” button/site?

  • 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-26T12:44:03+00:00Added an answer on May 26, 2026 at 12:44 pm

    As a second option, you could also use the Django Admin Save As functionality. This isn’t exactly what you’re looking for, but it would allow users to go to a previous entry, edit some fields, and then save that as a new object, which would be close to the same effect.

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

Sidebar

Related Questions

Can anybody tell me a regular expression to use within some PHP to find
Can anyone help me trying to find out why this doesn't work. The brushes
can someone show me the regex for this preg_match. I want to make sure
Can anyone (maybe an XSL-fan?) help me find any advantages with handling presentation of
can you recommend some good ASP.NET tutorials or a good book? Should I jump
Can you suggest some good MVC framework for perl -- one I am aware
Can someone maybe tell me why this is not working? I have used echo
Can I have a project that has some parts written in c and other
Can some one confirm me that only one UIWindow instance is possible in any
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this

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.