admin: fix display of JSON data source dynamic parameters (#36511)
This commit is contained in:
parent
66e1afc797
commit
05173ccbfe
|
@ -56,7 +56,7 @@ class NamedDataSourceUI(object):
|
|||
advanced=False,
|
||||
attrs={
|
||||
'data-dynamic-display-child-of': 'data_source$type',
|
||||
'data-dynamic-display-value': _('JSON URL'),
|
||||
'data-dynamic-display-value': 'json',
|
||||
})
|
||||
form.add(StringWidget, 'query_parameter',
|
||||
value=self.datasource.query_parameter,
|
||||
|
@ -66,7 +66,7 @@ class NamedDataSourceUI(object):
|
|||
advanced=False,
|
||||
attrs={
|
||||
'data-dynamic-display-child-of': 'data_source$type',
|
||||
'data-dynamic-display-value': _('JSON URL'),
|
||||
'data-dynamic-display-value': 'json',
|
||||
})
|
||||
form.add(StringWidget, 'id_parameter',
|
||||
value=self.datasource.id_parameter,
|
||||
|
@ -76,7 +76,7 @@ class NamedDataSourceUI(object):
|
|||
advanced=False,
|
||||
attrs={
|
||||
'data-dynamic-display-child-of': 'data_source$type',
|
||||
'data-dynamic-display-value': _('JSON URL'),
|
||||
'data-dynamic-display-value': 'json',
|
||||
})
|
||||
if self.datasource.slug:
|
||||
form.add(StringWidget, 'slug',
|
||||
|
|
Loading…
Reference in New Issue