Answer the question
In order to leave comments, you need to log in
Copying from table to Django table?
I thought to implement "offer news" as in contact in my blog.
There are two identical models, and you need to copy from one table to another when you click on the button in the admin panel. (The offer of news in the admin panel in the form of a table) Here you need to add a button for copying from table to table. The button will be as a separate field next to each entry for quick transfer.
I'm not asking you to do it for me. I ask to advise where to dig?
Answer the question
In order to leave comments, you need to log in
I propose not to produce entities, but to add the status field to the “news” object and make “proposed” one of the options for acceptable statuses. Accordingly, the acceptance of news is simply a change in status, a change in one field in the database.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question