Skip to content

Commit

Permalink
release version 1.5.1
Browse files Browse the repository at this point in the history
- Update
  - some translation updates
  • Loading branch information
ChanTsune authored Apr 19, 2020
2 parents bba0a6d + 57ec7f3 commit d72850c
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 15 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Versions

### 1.5.1

- Update
- some translation updates

### 1.5

- Add
Expand Down
1 change: 1 addition & 0 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
MIDDLEWARE = [
'django_boost.middleware.RedirectCorrectHostnameMiddleware', # django_boost
'django_boost.middleware.HttpStatusCodeExceptionMiddleware', # django_boost
'django_boost.middleware.SpaceLessMiddleware', # django_boost
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
Expand Down
2 changes: 1 addition & 1 deletion django_boost/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = (1, 5, 0)
VERSION = (1, 5, 1)


def get_version(version=VERSION):
Expand Down
Binary file modified django_boost/locale/es_MX/LC_MESSAGES/django.mo
Binary file not shown.
8 changes: 4 additions & 4 deletions django_boost/locale/es_MX/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ msgstr ""

#: django_boost/management/commands/adminsitelog.py:94
msgid "Do you want to delete these logs"
msgstr ""
msgstr "¿Quieres eliminar estos registros?"

#: django_boost/models/__init__.py:11
msgid "username"
Expand All @@ -36,12 +36,12 @@ msgstr ""

#: django_boost/models/__init__.py:22
msgid "A user with that email address already exists."
msgstr ""
msgstr "Ya existe un usuario con esa dirección de correo electrónico."

#: django_boost/validators.py:17
msgid "Enter valid JSON string."
msgstr ""
msgstr "Ingrese una cadena JSON válida."

#: django_boost/validators.py:36
msgid "Enter 6-digit hexadecimal number including #."
msgstr ""
msgstr "Ingrese un número hexadecimal de 6 dígitos incluyendo #."
Binary file modified django_boost/locale/tt/LC_MESSAGES/django.mo
Binary file not shown.
8 changes: 4 additions & 4 deletions django_boost/locale/tt/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ msgstr ""

#: django_boost/management/commands/adminsitelog.py:94
msgid "Do you want to delete these logs"
msgstr ""
msgstr "Сез бу бүрәнәләрне бетерергә телисезме?"

#: django_boost/models/__init__.py:11
msgid "username"
Expand All @@ -36,12 +36,12 @@ msgstr ""

#: django_boost/models/__init__.py:22
msgid "A user with that email address already exists."
msgstr ""
msgstr "Бу электрон почта адресы булган кулланучы бар."

#: django_boost/validators.py:17
msgid "Enter valid JSON string."
msgstr ""
msgstr "Дөрес JSON юлын кертегез."

#: django_boost/validators.py:36
msgid "Enter 6-digit hexadecimal number including #."
msgstr ""
msgstr "6 санлы алты санлы санны кертегез."
3 changes: 2 additions & 1 deletion django_boost/management/commands/deletemigrations.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os

from django.utils.translation import gettext as _
from django.db.migrations.loader import MIGRATIONS_MODULE_NAME

from django_boost.core.management import AppCommand

Expand Down Expand Up @@ -28,7 +29,7 @@ def add_arguments(self, parser):
def handle_app_config(self, app_config, **options):
self.yes = options['y']
app_path = app_config.path
migration_dir = os.path.join(app_path, 'migrations')
migration_dir = os.path.join(app_path, MIGRATIONS_MODULE_NAME)
file_list = []
if os.path.exists(migration_dir):
for d, dirs, files in os.walk(migration_dir):
Expand Down
12 changes: 9 additions & 3 deletions django_boost/middleware/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
from django_boost.http import STATUS_MESSAGES
from django_boost.http.response import (HttpExceptionBase,
HttpRedirectExceptionBase)
from django_boost.middleware.html import SpaceLessMiddleware
from .html import SpaceLessMiddleware


__all__ = ['SpaceLessMiddleware',
'RedirectCorrectHostnameMiddleware',
'HttpStatusCodeExceptionMiddleware']


class RedirectCorrectHostnameMiddleware(MiddlewareMixin):
Expand Down Expand Up @@ -37,7 +42,9 @@ class RedirectCorrectHostnameMiddleware(MiddlewareMixin):
This is useful when migrating domains
Originally it should be done with server software such as nginx and apache, but it is useful when the setting is troublesome or when using services such as heroku
Originally it should be done with server software such as nginx and apache,
but it is useful when the setting is troublesome or when using services such as heroku.
"""

conditions = not settings.DEBUG and hasattr(settings, 'CORRECT_HOST')
Expand Down Expand Up @@ -74,7 +81,6 @@ class HttpStatusCodeExceptionMiddleware(MiddlewareMixin):
This Middleware is required when using the :doc:`http_status_code_exceptions`.
"""

def get_template_from_status_code(self, status_code, request=None):
Expand Down
1 change: 1 addition & 0 deletions django_boost/middleware/html.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from django.utils.deprecation import MiddlewareMixin

from django_boost.utils.html import strip_spaces_between_tags


Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# The short X.Y version
version = '1.5'
# The full version, including alpha/beta/rc tags
release = '1.5'
release = '1.5.1'


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def read(fname):

setup(
name='django_boost',
version='1.5',
version='1.5.1',
description='Django Extension library',
long_description=read('README.md'),
long_description_content_type="text/markdown",
Expand Down

0 comments on commit d72850c

Please sign in to comment.