3f1c49ca2c9032e5a01a72dcdcc9aa282b5e71b5
By:
maxgonpe

How to update two files with a single form?

July 3, 2017 557 views
Django Ubuntu 16.04

HELLO, I WANTED TO ASK FOR A SITUATION THAT I DID NOT GET IN DJANGO'S TUTORIALS, AND IS, HOW CAN I DO TO FILL OUT A FORM AND BY GIVING THE "SUBMIT" THESE DATA IN ADDITION TO ENTERING THE FILE THAT POINTS THE DORMULARY, ALSO THE YOU CAN ENTER ANOTHER FILE DIRECTLY WITHOUT USING A FORM BUT USING THE SAME INSTANCE.

What I want is to copy records into other files that are not marked on the form. how can I do it?

5 Answers
maxgonpe July 5, 2017
Accepted Answer

@hansen

Thanks hansen, but it's not what I need. What I want is something very simple, but I have noticed that there is not much information on this subject. It is about having a form that when you do submit register the data and also take this data and send it directly to another table (model) without having to open or attach a form to get it.

Now if you have any notions of how to do it, I thank you, you can guide me. THANK YOU

There's no need to yell. Learn Django and code it to do what you want it to do.

  • Ok, you're right, you already know what the issue is, just tell me or send me a link where I get the material to study and get to the solution. I hope so, that you really know and can help. Because your first comment does not help much.

Forget the subject your interventions are not of any help, it is funny what you say, because if I am reviewing the documentation to learn and you say that "I must learn" (is precisely what I am looking for) is very curious. I think you use this just to entertain you, since I checked your other interventions and I realized that in the end you never really help anyone, you question the knowledge that others do not have but according to your "you know them all" thanks for your help , You are a little mistaken with your vision. And bye I got bored I go to this medium for help and you leave me as a teacher asking for a final exam, but first it shows that you know. I can also copy your style, it is easy to start reviewing the forum and to all those who ask questions I will put you "Django should know or anything before asking" and I remain as the "expert." And please do not obstruct my question, which I really need to resolve on time, and I do not care if this proves that I am not up to your standards. bye (This comment is for woet, for internal I block as spam)

@hansen

Many many thanks Hansen, if this is the example I needed, and I can study and understand it clearly.

With this I close the subject, and thanks for your help and dedication

Have another answer? Share your knowledge.