Answer the question
In order to leave comments, you need to log in
How to show or hide input field in django admin?
For example, there is a model:
class Receipt(models.Model):
sum = models.FloatField(verbose_name='Сумма')
com = models.TextField(verbose_name='Коментарий', blank=True, null=True)
type = models.CharField(max_length=2, choices=MONEY, default=CASH, verbose_name='Вид движения средств')
date = models.DateField(default=timezone.now, verbose_name='Дата прихода')
category = models.ForeignKey(CategoriesOfReceipt, on_delete=models.DO_NOTHING, verbose_name='Категория')
deal = models.ForeignKey(Affairs, on_delete=models.DO_NOTHING, verbose_name='Дело', blank=True, null=True)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question