T
T
Tobim2021-03-20 18:35:06
Django
Tobim, 2021-03-20 18:35:06

How to make a dynamically resizable form in django?

I have two tables with materials for services:
Materials:

class Materials(models.Model):
    title = models.CharField("Название материала", max_length=200)
    quantity_for_1 = models.FloatField("Цена за одну единицу")

How can I make a dynamically resizable form so that you can add an unlimited number of materials in it and so that you can immediately calculate the cost. Maybe there are some libraries for this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Antonio Solo, 2021-03-21
@Tobim

you probably need a formset

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question