1

In my admin forms I have some default submit actions e.g. "save", "save and continue", "save and add another". I want to modify the last one adding some prepopulated fields, so the form will open with some fields filled according to the previous object. Is there a way to do so?

UPD

Found an answer here: https://stackoverflow.com/a/14068598/8386351

algeron
  • 21
  • 4
  • Dear do you want to redesign and edit admin panel which is built in? – Muhammed Bilal Oct 05 '19 at 16:26
  • @MuhammedBilal Yes, admin users of the site will create a lot of records with similar values in some fk-fields, so I want to make it a bit easier for them. I mean, there are four different fk in the model, but two of them has a big probability to have the same value as in the previous created record, so I could let admin to use some shortcut like 'save and create another with the same value of fields 1 and 2' – algeron Oct 05 '19 at 16:53
  • Go in my computer disk where you installed python go inside python search for LIB go inside LIB folder then search site-packages enter this folder then enter in django folder – Muhammed Bilal Oct 05 '19 at 17:36
  • there you can access all built in forms templates etc – Muhammed Bilal Oct 05 '19 at 17:38
  • Thanks but I'd looked for a more concrete answer. Found it now. – algeron Oct 05 '19 at 17:58
  • Yeah this is not complete but you got the idea , – Muhammed Bilal Oct 06 '19 at 00:45

0 Answers0