K
K
Konstantin Malyarov2018-05-11 11:12:21
Django
Konstantin Malyarov, 2018-05-11 11:12:21

How to add value on first migration?

There is a payment model:
Pay (ID, name).
How to make it so that during migration values ​​\u200b\u200bare added (OMS, DMS, VMP) if they are not in the table?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Bragin, 2018-05-11
@Konstantin18ko

1) Migration date https://docs.djangoproject.com/en/2.0/topics/migra...
2) Fixtures https://docs.djangoproject.com/en/2.0/howto/initia...
Choose what is more convenient :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question