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:
Sunil Mohan Adapa 2023-08-11 10:57:45 -07:00 committed by James Valleroy
parent da24f852cf
commit ebf2dd5c80
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

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