Preparing 2.0 release

This commit is contained in:
Antoine Nguyen
2022-05-03 17:29:09 +02:00
parent 5a932835cf
commit 2f3174e27f
4 changed files with 12 additions and 4 deletions
+4 -2
View File
@@ -91,8 +91,8 @@ Rebuild Virtual Environment
Specific instructions
*********************
2.0.0-beta.1
============
2.0.0
=====
Add ``drf_spectacular`` and ``phonenumber_field`` to ``INSTALLED_APPS``
in the :file:`settings.py` file, as follows:
@@ -145,6 +145,8 @@ Add the new following settings:
PHONENUMBER_DB_FORMAT = 'INTERNATIONAL'
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
New admin interface
-------------------
+2 -1
View File
@@ -2,6 +2,7 @@
import logging
from django.utils.html import escape
from django.utils.translation import ugettext as _
from rest_framework import response, status
@@ -25,7 +26,7 @@ class TokenObtainPairView(jwt_views.TokenObtainPairView):
logger.warning(
_("Failed connection attempt from '%s' as user '%s'"),
request.META["REMOTE_ADDR"],
serializer.data["username"]
escape(serializer.data["username"])
)
raise InvalidToken(e.args[0])
@@ -172,6 +172,11 @@ USE_L10N = True
USE_TZ = True
# Default primary key field type
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.2/howto/static-files/
+1 -1
View File
@@ -3,7 +3,7 @@
<h2>{% trans "API access" %} <small>{% trans "Control your access to Modoboa API" %}</small></h2>
<hr>
<div class="alert alert-info">
{% url "docs-index" as api_doc_url %}
{% url "docs-index-v2" as api_doc_url %}
{% blocktrans with url=api_doc_url trimmed %}
A documentation of the API is available <strong><a href="{{ url }}" target="_blank">here</a></strong>.
{% endblocktrans %}