mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
backups: Remove use of length_is template function
- It has been deprecated in Django 4.2 Tests: - Add a remote backup location with valid SSH hostname and notice that the list of SSH host keys are shown properly. - Add a remote backup location with invalid SSH hostname and notice that the error "Could not reach SSH host..." is shown. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
da24f852cf
commit
ebf2dd5c80
@ -13,7 +13,7 @@
|
||||
<form class="form" method="post">
|
||||
{% csrf_token %}
|
||||
|
||||
{% if form.ssh_public_key|length_is:"0" %}
|
||||
{% if form.ssh_public_key|length == 0 %}
|
||||
<p>
|
||||
{% blocktrans trimmed %}
|
||||
Could not reach SSH host {{ hostname }}. Please verify that the host
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user