A
A
alexkomp2019-08-27 14:26:41
Django
alexkomp, 2019-08-27 14:26:41

How to make an additional field added to the admin when you click on the plus on Django?

How to make an additional field added to the admin when you click on the plus on Django?
here is the model

class Organization(models.Model):
    title = models.CharField('Заголовок', max_length=50)
    phone = models.CharField('Телефон', max_length=50)
    address = models.CharField('Адрес', max_length=50)
    
    def __str__(self):
        return self.title

How to make it possible to add multiple phones?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2019-08-27
@alexkomp

Use inlines .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question