mirror of
https://github.com/django/django.git
synced 2025-10-27 15:46:10 +00:00
Refs #35189 -- Improved admin fieldset's accessibility by setting aria-labelledby.
Before this change, HTML <fieldset> elements in the admin site did not have an associated label to describe them. This commit defines a unique HTML id for the heading labeling a fieldset, and sets its aria-labelledby property to link the heading with the fieldset.
This commit is contained in:
committed by
nessita
parent
9c5fe93349
commit
01ed59f753
@@ -180,6 +180,27 @@ class ShoppingWeakness(models.Model):
|
||||
item = models.ForeignKey(OutfitItem, models.CASCADE)
|
||||
|
||||
|
||||
# Models for #35189
|
||||
|
||||
|
||||
class Photographer(Person):
|
||||
fullname = models.CharField(max_length=100)
|
||||
nationality = models.CharField(max_length=100)
|
||||
residency = models.CharField(max_length=100)
|
||||
siblings = models.IntegerField()
|
||||
children = models.IntegerField()
|
||||
|
||||
|
||||
class Photo(models.Model):
|
||||
photographer = models.ForeignKey(Photographer, on_delete=models.CASCADE)
|
||||
image = models.CharField(max_length=100)
|
||||
title = models.CharField(max_length=100)
|
||||
description = models.TextField()
|
||||
creation_date = models.DateField()
|
||||
update_date = models.DateField()
|
||||
updated_by = models.CharField(max_length=100)
|
||||
|
||||
|
||||
# Models for #13510
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user