css: don't display "(optional)" label for checkbox widgets (#48140)

This commit is contained in:
Serghei Mihai 2020-10-30 11:01:47 +01:00
parent 6df0438bf6
commit fe2f71dad3
1 changed files with 1 additions and 1 deletions

View File

@ -531,7 +531,7 @@ form.pk-mark-optional-fields {
display: none;
}
}
.widget-optional span.optional {
.widget-optional:not(.django-checkbox-input) span.optional {
display: inline;
font-style: italic;
}