Refs #31441 -- Added red border to inputs with errors for TabluarInline.

This commit is contained in:
Hasan Ramezani 2020-04-10 16:52:56 +02:00 committed by Carlton Gibson
parent 058b38b43e
commit b4e7bf5284
4 changed files with 83 additions and 7 deletions

View file

@ -125,6 +125,29 @@ class Inner4Tabular(models.Model):
models.UniqueConstraint(fields=['dummy', 'holder'], name='unique_tabular_dummy_per_holder')
]
# Models for ticket #31441
class Holder5(models.Model):
dummy = models.IntegerField()
class Inner5Stacked(models.Model):
name = models.CharField(max_length=10)
select = models.CharField(choices=(('1', 'One'), ('2', 'Two')), max_length=10)
text = models.TextField()
dummy = models.IntegerField()
holder = models.ForeignKey(Holder5, models.CASCADE)
class Inner5Tabular(models.Model):
name = models.CharField(max_length=10)
select = models.CharField(choices=(('1', 'One'), ('2', 'Two')), max_length=10)
text = models.TextField()
dummy = models.IntegerField()
holder = models.ForeignKey(Holder5, models.CASCADE)
# Models for #12749