1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Fix get_context formatting.

This commit is contained in:
seanhelvey 2024-12-13 18:37:26 -08:00 committed by Sean Helvey
parent 8c72a21cd9
commit 2410ace701

View File

@ -313,7 +313,11 @@ class RelatedFieldWidgetWrapper(forms.Widget):
)
def get_context(self, name, value, attrs):
from django.contrib.admin.views.main import IS_POPUP_VAR, SOURCE_MODEL_VAR,TO_FIELD_VAR
from django.contrib.admin.views.main import (
IS_POPUP_VAR,
SOURCE_MODEL_VAR,
TO_FIELD_VAR,
)
rel_opts = self.rel.model._meta
info = (rel_opts.app_label, rel_opts.model_name)