cells: fix wrong display of 'site' field of tracking code cell in backoffice (#86508)
gitea/combo/pipeline/head This commit looks good
Details
gitea/combo/pipeline/head This commit looks good
Details
This commit is contained in:
parent
bbb12f507f
commit
3a6ebed4db
|
@ -1907,13 +1907,6 @@ class TrackingCodeInputCell(CellBase):
|
|||
self.__class__, fields=['wcs_site'], widgets={'wcs_site': Select(choices=combo_wcs_sites)}
|
||||
)
|
||||
|
||||
def get_cell_extra_context(self, context):
|
||||
extra_context = super().get_cell_extra_context(context)
|
||||
if not self.wcs_site:
|
||||
self.wcs_site = list(get_wcs_services().keys())[0]
|
||||
extra_context['url'] = (get_wcs_services().get(self.wcs_site) or {}).get('url')
|
||||
return extra_context
|
||||
|
||||
|
||||
@register_cell_class
|
||||
class BackofficeSubmissionCell(CategoriesAndWcsSiteValidityMixin, CategoriesFilteringMixin, WcsDataBaseCell):
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
{% endblock %}
|
||||
<div>
|
||||
{% block form-pre %}{% endblock %}
|
||||
<form data-wcs-url="{{ url }}" method="post" action="{{ site_base }}{% url 'wcs-tracking-code' %}">
|
||||
<form method="post" action="{{ site_base }}{% url 'wcs-tracking-code' %}">
|
||||
{% block form-top %}
|
||||
{% block intro-text %}
|
||||
<p>
|
||||
|
|
Loading…
Reference in New Issue