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:
parent
8c72a21cd9
commit
2410ace701
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user