wcs: include an option to look for tracking code on all sites (#21970)

This commit is contained in:
Frédéric Péters 2018-02-19 14:10:37 +01:00
parent d59c602c33
commit 2abe10a09b
1 changed files with 1 additions and 1 deletions

View File

@ -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)})