T
T
Tobim2021-05-04 09:37:28
Django
Tobim, 2021-05-04 09:37:28

How to auto-substitute a value in a field through a select in django?

I have a table with products with supplier prices and I have a table with products for sale. How to make it so that when filling out the form with goods for sale, when choosing via ForeignKey, the price value from the supplier is automatically substituted?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Deleting Account, 2021-05-04
@Andriy_Kosmenyuk

Ajax(fetch js) and json api for the desired functionality.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question