diff --git a/.travis.yml b/.travis.yml index a81c37f..5b8a997 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,10 @@ matrix: env: TOX_ENV=py35-django20 - python: "3.6" env: TOX_ENV=py36-django20 + - python: "3.5" + env: TOX_ENV=py35-django21 + - python: "3.6" + env: TOX_ENV=py36-django21 - python: "2.7" env: TOX_ENV=coverage cache: diff --git a/CHANGELOG.rst b/CHANGELOG.rst index d0fd75e..8c4666a 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,12 +6,27 @@ All notable changes to this project will be documented in this file. .. contents:: Table of Contents :depth: 2 +v1.1.0 - 2019-03-02 +=================== + +Added +----- + +* Support for Django 2.1 + +Fixes +----- + +* Checkbox position on the login page +* Set ldap3 client_strategy from sync to sync-restartable +* Deprecation warning for {% load staticfiles %} and django.contrib.staticfiles v1.0.0 - 2019-01-12 =================== Added ----- + * Support for python 3.6 and Django 1.11 * Support for Django 2.0 * Keep query string then redirecting from / to /login diff --git a/cas_server/__init__.py b/cas_server/__init__.py index 1a50834..26a5bcd 100644 --- a/cas_server/__init__.py +++ b/cas_server/__init__.py @@ -11,7 +11,7 @@ """A django CAS server application""" #: version of the application -VERSION = '1.0.0' +VERSION = '1.1.0' #: path the the application configuration class default_app_config = 'cas_server.apps.CasAppConfig' diff --git a/cas_server/auth.py b/cas_server/auth.py index 4a5b141..0e07d74 100644 --- a/cas_server/auth.py +++ b/cas_server/auth.py @@ -277,6 +277,7 @@ class LdapAuthUser(DBAuthUser): # pragma: no cover settings.CAS_LDAP_SERVER, settings.CAS_LDAP_USER, settings.CAS_LDAP_PASSWORD, + client_strategy="RESTARTABLE", auto_bind=True ) cls._conn = conn diff --git a/cas_server/default_settings.py b/cas_server/default_settings.py index 64d0140..14b2352 100644 --- a/cas_server/default_settings.py +++ b/cas_server/default_settings.py @@ -11,7 +11,7 @@ # (c) 2015-2016 Valentin Samir """Default values for the app's settings""" from django.conf import settings -from django.contrib.staticfiles.templatetags.staticfiles import static +from django.templatetags.static import static from django.utils.translation import ugettext_lazy as _ from importlib import import_module diff --git a/cas_server/forms.py b/cas_server/forms.py index 3c42bab..107423c 100644 --- a/cas_server/forms.py +++ b/cas_server/forms.py @@ -31,7 +31,10 @@ class BootsrapForm(forms.Form): # Only tweak the field if it will be displayed if not isinstance(field.widget, widgets.HiddenInput): attrs = {} - if isinstance(field.widget, (widgets.Input, widgets.Select, widgets.Textarea)): + if ( + isinstance(field.widget, (widgets.Input, widgets.Select, widgets.Textarea)) and + not isinstance(field.widget, (widgets.CheckboxInput,)) + ): attrs['class'] = "form-control" if isinstance(field.widget, (widgets.Input, widgets.Textarea)) and field.label: attrs["placeholder"] = field.label diff --git a/cas_server/templates/cas_server/base.html b/cas_server/templates/cas_server/base.html index 927df1f..9980d38 100644 --- a/cas_server/templates/cas_server/base.html +++ b/cas_server/templates/cas_server/base.html @@ -1,4 +1,4 @@ -{% load i18n %}{% load staticfiles %}{% get_current_language as LANGUAGE_CODE %} +{% load i18n %}{% load static %}{% get_current_language as LANGUAGE_CODE %}
diff --git a/cas_server/templates/cas_server/logout.html b/cas_server/templates/cas_server/logout.html index d8ab1dc..8069337 100644 --- a/cas_server/templates/cas_server/logout.html +++ b/cas_server/templates/cas_server/logout.html @@ -1,5 +1,5 @@ {% extends "cas_server/base.html" %} -{% load staticfiles %} +{% load static %} {% load i18n %} {% block content %}