wcs: include an option to look for tracking code on all sites (#21970)
This commit is contained in:
parent
d59c602c33
commit
2abe10a09b
|
@ -471,7 +471,7 @@ class TrackingCodeInputCell(CellBase):
|
|||
def get_default_form_class(self):
|
||||
if len(get_wcs_services()) == 1:
|
||||
return None
|
||||
combo_wcs_sites = [(x, y.get('title')) for x, y in get_wcs_services().items()]
|
||||
combo_wcs_sites = [('', _('All Sites'))] + [(x, y.get('title')) for x, y in get_wcs_services().items()]
|
||||
return model_forms.modelform_factory(self.__class__,
|
||||
fields=['wcs_site'],
|
||||
widgets={'wcs_site': Select(choices=combo_wcs_sites)})
|
||||
|
|
Loading…
Reference in New Issue