Skip to content

2.3.1

Latest
Compare
Choose a tag to compare
@triole triole released this 16 May 15:17
d31198a

How to upgrade

pip install --upgrade rdmo
python manage.py upgrade

Changelog 📔

RDMO 2.3.1 (May 16, 2025)

  • Allow / in the URI path of conditions, tasks, and views (#1316)
  • Add /api/v1/projects/projects/user/ endpoint and refactor/fix projects table (#1318)
  • Add options endpoint to API list (#1313)
  • Use ACCOUNT_SIGNUP_FIELDS instead of ACCOUNT_EMAIL_REQUIRED (#1322)
  • Use SESSION_COOKIE_* settings for store_id cookie (#1321)
  • Fix translations (#1317)
  • Fix badge-optional and move interview-block-options
  • Improve styling for empty question sets (without questions)
  • Clean tags and special html characters in contact message
  • Fix interview management panels by fixing configureStore (#1314)
  • Fix copy of elements in management interface for multisite (#1339)
  • Fix bug when reference documents are configured as strings (#1341)
  • Fix bug in display of warnings at import of catalog elements (#1340)
  • Fix bug in display of value and unit in range slider (#1353)
  • Fix the resolving of multiple conditional questions in interview
  • Fix bug with the back button and conditions
  • Fix jumping of cursor when values are stored in the interview
  • Fix {more} functionality (#1351)
  • Fix focus in interview and scroll to top when changing pages
  • Update dependencies

Important changes to templates 🔧

In RDMO 2.3.0, we made changes to the core/base.html template. If changed this file in you local theme you need to update it accordingly. At the top, the current language is set at an attribute to <html>:

{% load static compress core_tags i18n %}{% get_current_language as lang_code %}<!DOCTYPE html>
<html lang="{{ lang_code }}">

The {% block vendor %} needs to be removed.

The {% block css %} now looks like this:

    {% block css %}
    <link rel="stylesheet" href="{% static 'core/css/base.css' %}" />

    {% compress css %}
    <link rel="stylesheet" type="text/x-scss" href="{% static 'core/css/base.scss' %}" />
    <link rel="stylesheet" type="text/x-scss" href="{% static 'core/css/fonts.scss' %}" />
    <link rel="stylesheet" type="text/x-scss" href="{% static 'core/css/footer.scss' %}" />

    <link rel="stylesheet" type="text/x-scss" href="{% static 'core/css/style.scss' %}" />
    {% endcompress %}

    {% endblock %}

And the {% block js %} now looks like this:

    {% block js %}
    <script src="{% url 'javascript-catalog' %}"></script>
    <script src="{% static 'core/js/base.js' %}"></script>
    {% endblock %}

See https://github.com/rdmorganiser/rdmo/blob/2.3.0/rdmo/core/templates/core/base.html for the file in the 2.3.0 branch.

We also changed slightly changed the projects/project_detail_sidebar.html template. If changed this file in you local theme you need to update it and change the url name project_question to project_interview:

...
<ul class="list-unstyled">
    <li id="project-questions">
        <strong>
            {% if can_change_value %}
            <a href="{% url 'project_interview' project.pk %}">{% trans 'Answer questions' %}</a>
            {% else %}
            <a href="{% url 'project_interview' project.pk %}">{% trans 'View questions' %}</a>
            {% endif %}
        </strong>
    </li>
</ul>
...