Skip to content

django.template.exceptions.TemplateSyntaxError: Invalid block tag on line 163: 'ifnotequal', expected 'empty' or 'endfor'. Did you forget to register or load this tag? in /computes/<id>/storage/<storname> #604

@lbbMHz

Description

@lbbMHz

Hello.

Bug:
exception in /computes/{id}/storage/{stor-id}/
django.template.exceptions.TemplateSyntaxError: Invalid block tag on line 163: 'ifnotequal', expected 'empty' or 'endfor'. Did you forget to register or load this tag?

Manifestation:
500 Server error in /computes/{id}/storage/{stor-name}/

reason:
'ifnotequal' is deprecated and removed from django templates in 4.0
https://docs.djangoproject.com/en/4.0/internals/deprecation/#section-3

how to fix:

file \storages\templates\storage.html
line 163 replace {% ifnotequal volume.type "iso" %} = > {% if volume.type != "iso" %}
line 171 replace {% endifnotequal %} = > {% endif %}

Good luck :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions