V
V
val1n0r2020-02-09 01:27:15
MySQL
val1n0r, 2020-02-09 01:27:15

How to copy the value of one column to another?

Good day, here the question is ripe

Actually there is a model "A" with fields, there is a model "B" with exactly the same fields and names
How to swap A <-> B values ​​and vice versa using django orm?

PS while implemented in cycles, they get the entire record from "A" in the cycle and replace it with "B"

Thank you

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2020-02-09
@val1n0r

For ORM: django-swappable-models
For mysql swap query: see here .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question