mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Refs #31441 -- Added red border to inputs with errors for TabluarInline.
This commit is contained in:
parent
058b38b43e
commit
b4e7bf5284
4 changed files with 83 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue