tarp20
tarp20

Reputation: 695

How to configure data migration from one model to another . Django?

There is model Leads

with fields :

name, phone, email, address

and I create model Contacts with the same fields but with processed data from Leads for example, combine all leads with the same names and phone numbers into one contact, etc. how to implement it? whether to create a migration or a . how it is better to implement it?

Upvotes: 1

Views: 42

Answers (1)

antpngl92
antpngl92

Reputation: 534

You can do it either through shell or management command (if the action needs to be done regularly)

Check Django's management commands

Upvotes: 1

Related Questions