diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bda6033..2feb429 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 23.3.0 hooks: - id: black args: ['--target-version', 'py37', '--skip-string-normalization', '--line-length', '110'] @@ -12,12 +12,12 @@ repos: - id: isort args: ['--profile', 'black', '--line-length', '110'] - repo: https://github.com/asottile/pyupgrade - rev: v3.1.0 + rev: v3.3.1 hooks: - id: pyupgrade - args: ['--keep-percent-format', '--py37-plus'] + args: ['--keep-percent-format', '--py39-plus'] - repo: https://github.com/rtts/djhtml - rev: 'v1.5.2' + rev: '3.0.6' hooks: - id: djhtml args: ['--tabwidth', '2'] diff --git a/gadjo/templates/gadjo/root.html b/gadjo/templates/gadjo/root.html index 5c345b3..da08d9d 100644 --- a/gadjo/templates/gadjo/root.html +++ b/gadjo/templates/gadjo/root.html @@ -36,7 +36,7 @@
  • {{ user.get_full_name|slice:":1" }}
  • {% block user-name %}{{ user.get_full_name }}{% endblock %}
  • {% trans "Logout" %}
  • + title="{% trans "Logout" %}">{% trans "Logout" %} {% endif %} {% block help-link %} {% endblock %} diff --git a/gadjo/templates/gadjo/widget.html b/gadjo/templates/gadjo/widget.html index 7e913d4..741254a 100644 --- a/gadjo/templates/gadjo/widget.html +++ b/gadjo/templates/gadjo/widget.html @@ -1,10 +1,10 @@ {% load gadjo i18n %}
    + {{ field.css_classes }} + django-{{ field|field_class_name }} + {% if field.errors %}widget-with-error{% endif %} + {% if field.field.required %}widget-required{% else %}widget-optional{% endif %}" + {% if field.id_for_label %}id="{{field.id_for_label}}_p"{% endif %}> {% block widget-title %}
    {{ field.label_tag }} @@ -17,8 +17,8 @@ {% endblock %} {% block widget-content %}
    + {% if field.id_for_label %}aria-labelledby="{{ field.id_for_label }}_title"{% endif %} + {% block widget-attrs %}{% endblock %}> {% block widget-error %} {% if field.errors %}