Skip to content

Commit c3c4b5b

Browse files
committed
fix: really really
1 parent 917d7da commit c3c4b5b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

share/admin/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def _pls_make_default_for_searching(index_strategy: IndexStrategy, request_kwarg
131131

132132

133133
def _pls_delete(index_strategy: IndexStrategy, request_kwargs):
134-
if request_kwargs.get('really') == 'really':
134+
if request_kwargs.get('really') == 'really really':
135135
index_strategy.pls_teardown()
136136

137137

templates/admin/search-indexes.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ <h3>current: {{ strategy_info.status.strategy_id }}</h3>
8787
<input type="hidden" name="strategy_name" value="{{index_strategy_name}}" />
8888
<input type="hidden" name="pls_do" value="delete" />
8989
<input type="submit" value="{% trans "delete" %}" />
90-
<label>{% trans "really?" %}<input type="checkbox" name="really" value="really"/></label>
90+
<label>{% trans "really? (you have to type 'really really')" %}<input type="text" name="really"/></label>
9191
</form>
9292
{% endif %}
9393
</nav>
@@ -149,7 +149,7 @@ <h3>prior: {{ prior_strategy_status.strategy_id }}</h3>
149149
<input type="hidden" name="strategy_name" value="{{prior_strategy_status.strategy_id}}" />
150150
<input type="hidden" name="pls_do" value="delete" />
151151
<input type="submit" value="{% trans "delete" %}" />
152-
<label>{% trans "really?" %}<input type="checkbox" name="really" value="really"/></label>
152+
<label>{% trans "really? (you have to type 'really really')" %}<input type="text" name="really"/></label>
153153
</form>
154154
{% endif %}
155155
</nav>

0 commit comments

Comments
 (0)