From fa972f1632fb69861c913f2bf359fcf4d2284d7a Mon Sep 17 00:00:00 2001 From: Petter Friberg Date: Sat, 19 Nov 2022 19:57:37 +0100 Subject: [PATCH] Type `ModelAdmin.fieldsets` 'description' option to support `gettext_lazy` (#1268) --- django-stubs/contrib/admin/options.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django-stubs/contrib/admin/options.pyi b/django-stubs/contrib/admin/options.pyi index 77ccd3231..704b0c727 100644 --- a/django-stubs/contrib/admin/options.pyi +++ b/django-stubs/contrib/admin/options.pyi @@ -54,7 +54,7 @@ _FieldGroups: TypeAlias = Sequence[str | Sequence[str]] class _OptionalFieldOpts(TypedDict, total=False): classes: Sequence[str] - description: str + description: _StrOrPromise class _FieldOpts(_OptionalFieldOpts, total=True): fields: _FieldGroups