diff --git a/.coveragerc b/.coveragerc
deleted file mode 100644
index ed8ca510..00000000
--- a/.coveragerc
+++ /dev/null
@@ -1,12 +0,0 @@
-[run]
-source =
- activity
- member
- note
-omit =
- activity/tests/*.py
- activity/migrations/*.py
- member/tests/*.py
- member/migrations/*.py
- note/tests/*.py
- note/migrations/*.py
\ No newline at end of file
diff --git a/.env_example b/.env_example
index 5aba0d14..d903b724 100644
--- a/.env_example
+++ b/.env_example
@@ -1,13 +1,13 @@
-DJANGO_APP_STAGE="dev"
+DJANGO_APP_STAGE=dev
# Only used in dev mode, change to "postgresql" if you want to use PostgreSQL in dev
-DJANGO_DEV_STORE_METHOD="sqllite"
-DJANGO_DB_HOST="localhost"
-DJANGO_DB_NAME="note_db"
-DJANGO_DB_USER="note"
-DJANGO_DB_PASSWORD="CHANGE_ME"
-DJANGO_DB_PORT=""
-DJANGO_SECRET_KEY="CHANGE_ME"
-DJANGO_SETTINGS_MODULE="note_kfet.settings"
-DOMAIN="localhost"
-CONTACT_EMAIL="tresorerie.bde@localhost"
-NOTE_URL="localhost"
+DJANGO_DEV_STORE_METHOD=sqllite
+DJANGO_DB_HOST=localhost
+DJANGO_DB_NAME=note_db
+DJANGO_DB_USER=note
+DJANGO_DB_PASSWORD=CHANGE_ME
+DJANGO_DB_PORT=
+DJANGO_SECRET_KEY=CHANGE_ME
+DJANGO_SETTINGS_MODULE=note_kfet.settings
+DOMAIN=localhost
+CONTACT_EMAIL=tresorerie.bde@localhost
+NOTE_URL=localhost
diff --git a/Dockerfile b/Dockerfile
index dfc49d04..80f2c773 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -18,7 +18,6 @@ COPY . /code/
# Comment what is not needed
RUN pip install -r requirements/base.txt
-RUN pip install -r requirements/api.txt
RUN pip install -r requirements/cas.txt
RUN pip install -r requirements/production.txt
diff --git a/README.md b/README.md
index 9b0c927e..0c0cfb2e 100644
--- a/README.md
+++ b/README.md
@@ -106,18 +106,18 @@ On supposera pour la suite que vous utilisez Debian/Ubuntu sur un serveur tout n
On copie le fichier `.env_example` vers le fichier `.env` à la racine du projet
et on renseigne des secrets et des paramètres :
- DJANGO_APP_STAGE="dev" # ou "prod"
- DJANGO_DEV_STORE_METHOD="sqllite" # ou "postgres"
- DJANGO_DB_HOST="localhost"
- DJANGO_DB_NAME="note_db"
- DJANGO_DB_USER="note"
- DJANGO_DB_PASSWORD="CHANGE_ME"
- DJANGO_DB_PORT=""
- DJANGO_SECRET_KEY="CHANGE_ME"
- DJANGO_SETTINGS_MODULE="note_kfet.settings"
- DOMAIN="localhost" # note.example.com
- CONTACT_EMAIL="tresorerie.bde@localhost"
- NOTE_URL="localhost" # serveur cas note.example.com si auto-hébergé.
+ DJANGO_APP_STAGE=dev # ou "prod"
+ DJANGO_DEV_STORE_METHOD=sqllite # ou "postgres"
+ DJANGO_DB_HOST=localhost
+ DJANGO_DB_NAME=note_db
+ DJANGO_DB_USER=note
+ DJANGO_DB_PASSWORD=CHANGE_ME
+ DJANGO_DB_PORT=
+ DJANGO_SECRET_KEY=CHANGE_ME
+ DJANGO_SETTINGS_MODULE="note_kfet.settings
+ DOMAIN=localhost # note.example.com
+ CONTACT_EMAIL=tresorerie.bde@localhost
+ NOTE_URL=localhost # serveur cas note.example.com si auto-hébergé.
Ensuite on (re)bascule dans l'environement virtuel et on lance les migrations
diff --git a/static/vendor/select2/Gruntfile.js b/static/vendor/select2/Gruntfile.js
deleted file mode 100644
index b4c4508a..00000000
--- a/static/vendor/select2/Gruntfile.js
+++ /dev/null
@@ -1,262 +0,0 @@
-const sass = require('node-sass');
-
-module.exports = function (grunt) {
- // Full list of files that must be included by RequireJS
- includes = [
- 'jquery.select2',
- 'almond',
-
- 'jquery-mousewheel' // shimmed for non-full builds
- ];
-
- fullIncludes = [
- 'jquery',
-
- 'select2/compat/containerCss',
- 'select2/compat/dropdownCss',
-
- 'select2/compat/initSelection',
- 'select2/compat/inputData',
- 'select2/compat/matcher',
- 'select2/compat/query',
-
- 'select2/dropdown/attachContainer',
- 'select2/dropdown/stopPropagation',
-
- 'select2/selection/stopPropagation'
- ].concat(includes);
-
- var i18nModules = [];
- var i18nPaths = {};
-
- var i18nFiles = grunt.file.expand({
- cwd: 'src/js'
- }, 'select2/i18n/*.js');
-
- var testFiles = grunt.file.expand('tests/**/*.html');
- var testUrls = testFiles.map(function (filePath) {
- return 'http://localhost:9999/' + filePath;
- });
-
- var testBuildNumber = "unknown";
-
- if (process.env.TRAVIS_JOB_ID) {
- testBuildNumber = "travis-" + process.env.TRAVIS_JOB_ID;
- } else {
- var currentTime = new Date();
-
- testBuildNumber = "manual-" + currentTime.getTime();
- }
-
- for (var i = 0; i < i18nFiles.length; i++) {
- var file = i18nFiles[i];
- var name = file.split('.')[0];
-
- i18nModules.push({
- name: name
- });
-
- i18nPaths[name] = '../../' + name;
- }
-
- var minifiedBanner = '/*! Select2 <%= package.version %> | https://github.com/select2/select2/blob/master/LICENSE.md */';
-
- grunt.initConfig({
- package: grunt.file.readJSON('package.json'),
-
- concat: {
- 'dist': {
- options: {
- banner: grunt.file.read('src/js/wrapper.start.js'),
- },
- src: [
- 'dist/js/select2.js',
- 'src/js/wrapper.end.js'
- ],
- dest: 'dist/js/select2.js'
- },
- 'dist.full': {
- options: {
- banner: grunt.file.read('src/js/wrapper.start.js'),
- },
- src: [
- 'dist/js/select2.full.js',
- 'src/js/wrapper.end.js'
- ],
- dest: 'dist/js/select2.full.js'
- }
- },
-
- connect: {
- tests: {
- options: {
- base: '.',
- hostname: '127.0.0.1',
- port: 9999
- }
- }
- },
-
- uglify: {
- 'dist': {
- src: 'dist/js/select2.js',
- dest: 'dist/js/select2.min.js',
- options: {
- banner: minifiedBanner
- }
- },
- 'dist.full': {
- src: 'dist/js/select2.full.js',
- dest: 'dist/js/select2.full.min.js',
- options: {
- banner: minifiedBanner
- }
- }
- },
-
- qunit: {
- all: {
- options: {
- urls: testUrls
- }
- }
- },
-
- jshint: {
- options: {
- jshintrc: true,
- reporterOutput: ''
- },
- code: {
- src: ['src/js/**/*.js']
- },
- tests: {
- src: ['tests/**/*.js']
- }
- },
-
- sass: {
- dist: {
- options: {
- implementation: sass,
- outputStyle: 'compressed'
- },
- files: {
- 'dist/css/select2.min.css': [
- 'src/scss/core.scss',
- 'src/scss/theme/default/layout.css'
- ]
- }
- },
- dev: {
- options: {
- implementation: sass,
- outputStyle: 'nested'
- },
- files: {
- 'dist/css/select2.css': [
- 'src/scss/core.scss',
- 'src/scss/theme/default/layout.css'
- ]
- }
- }
- },
-
- requirejs: {
- 'dist': {
- options: {
- baseUrl: 'src/js',
- optimize: 'none',
- name: 'select2/core',
- out: 'dist/js/select2.js',
- include: includes,
- namespace: 'S2',
- paths: {
- 'almond': require.resolve('almond').slice(0, -3),
- 'jquery': 'jquery.shim',
- 'jquery-mousewheel': 'jquery.mousewheel.shim'
- },
- wrap: {
- startFile: 'src/js/banner.start.js',
- endFile: 'src/js/banner.end.js'
- }
- }
- },
- 'dist.full': {
- options: {
- baseUrl: 'src/js',
- optimize: 'none',
- name: 'select2/core',
- out: 'dist/js/select2.full.js',
- include: fullIncludes,
- namespace: 'S2',
- paths: {
- 'almond': require.resolve('almond').slice(0, -3),
- 'jquery': 'jquery.shim',
- 'jquery-mousewheel': require.resolve('jquery-mousewheel').slice(0, -3)
- },
- wrap: {
- startFile: 'src/js/banner.start.js',
- endFile: 'src/js/banner.end.js'
- }
- }
- },
- 'i18n': {
- options: {
- baseUrl: 'src/js/select2/i18n',
- dir: 'dist/js/i18n',
- paths: i18nPaths,
- modules: i18nModules,
- namespace: 'S2',
- wrap: {
- start: minifiedBanner + grunt.file.read('src/js/banner.start.js'),
- end: grunt.file.read('src/js/banner.end.js')
- }
- }
- }
- },
-
- watch: {
- js: {
- files: [
- 'src/js/select2/**/*.js',
- 'tests/**/*.js'
- ],
- tasks: [
- 'compile',
- 'test',
- 'minify'
- ]
- },
- css: {
- files: [
- 'src/scss/**/*.scss'
- ],
- tasks: [
- 'compile',
- 'minify'
- ]
- }
- }
- });
-
- grunt.loadNpmTasks('grunt-contrib-concat');
- grunt.loadNpmTasks('grunt-contrib-connect');
- grunt.loadNpmTasks('grunt-contrib-jshint');
- grunt.loadNpmTasks('grunt-contrib-qunit');
- grunt.loadNpmTasks('grunt-contrib-requirejs');
- grunt.loadNpmTasks('grunt-contrib-uglify');
- grunt.loadNpmTasks('grunt-contrib-watch');
-
- grunt.loadNpmTasks('grunt-sass');
-
- grunt.registerTask('default', ['compile', 'test', 'minify']);
-
- grunt.registerTask('compile', [
- 'requirejs:dist', 'requirejs:dist.full', 'requirejs:i18n',
- 'concat:dist', 'concat:dist.full',
- 'sass:dev'
- ]);
- grunt.registerTask('minify', ['uglify', 'sass:dist']);
- grunt.registerTask('test', ['connect:tests', 'qunit', 'jshint']);
-};
diff --git a/static/vendor/select2/bower.json b/static/vendor/select2/bower.json
deleted file mode 100644
index 681600b5..00000000
--- a/static/vendor/select2/bower.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "name": "select2",
- "description": "Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.",
- "main": [
- "dist/js/select2.js",
- "src/scss/core.scss"
- ],
- "license": "MIT",
- "repository": {
- "type": "git",
- "url": "git@github.com:select2/select2.git"
- }
-}
diff --git a/static/vendor/select2/component.json b/static/vendor/select2/component.json
deleted file mode 100644
index 75e19f1e..00000000
--- a/static/vendor/select2/component.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "name": "select2",
- "repo": "select/select2",
- "description": "Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.",
- "version": "4.0.7",
- "demo": "https://select2.org/",
- "keywords": [
- "jquery"
- ],
- "main": "dist/js/select2.js",
- "styles": [
- "dist/css/select2.css"
- ],
- "scripts": [
- "dist/js/select2.js",
- "dist/js/i18n/*.js"
- ],
- "license": "MIT"
-}
diff --git a/static/vendor/select2/composer.json b/static/vendor/select2/composer.json
deleted file mode 100644
index 5ef2db2b..00000000
--- a/static/vendor/select2/composer.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "name": "select2/select2",
- "description": "Select2 is a jQuery based replacement for select boxes.",
- "type": "component",
- "homepage": "https://select2.org/",
- "license": "MIT",
- "extra": {
- "component": {
- "scripts": [
- "dist/js/select2.js"
- ],
- "styles": [
- "dist/css/select2.css"
- ],
- "files": [
- "dist/js/select2.js",
- "dist/js/i18n/*.js",
- "dist/css/select2.css"
- ]
- }
- }
-}
diff --git a/static/vendor/select2/docs/announcements-4.0.html b/static/vendor/select2/docs/announcements-4.0.html
deleted file mode 100644
index bc85b4c1..00000000
--- a/static/vendor/select2/docs/announcements-4.0.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
- select2
-
-
-
-
-
\ No newline at end of file
diff --git a/static/vendor/select2/docs/community.html b/static/vendor/select2/docs/community.html
deleted file mode 100644
index ffe8f83f..00000000
--- a/static/vendor/select2/docs/community.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
- select2
-
-
-
-
-
\ No newline at end of file
diff --git a/static/vendor/select2/docs/examples.html b/static/vendor/select2/docs/examples.html
deleted file mode 100644
index a463e84a..00000000
--- a/static/vendor/select2/docs/examples.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
- select2
-
-
-
-
-
\ No newline at end of file
diff --git a/static/vendor/select2/docs/index.html b/static/vendor/select2/docs/index.html
deleted file mode 100644
index ea8214d6..00000000
--- a/static/vendor/select2/docs/index.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
- select2
-
-
-
-
-
\ No newline at end of file
diff --git a/static/vendor/select2/docs/options-old.html b/static/vendor/select2/docs/options-old.html
deleted file mode 100644
index 4920b76b..00000000
--- a/static/vendor/select2/docs/options-old.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
- select2
-
-
-
-
-
\ No newline at end of file
diff --git a/static/vendor/select2/docs/options.html b/static/vendor/select2/docs/options.html
deleted file mode 100644
index 4920b76b..00000000
--- a/static/vendor/select2/docs/options.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
- select2
-
-
-
-
-
\ No newline at end of file
diff --git a/static/vendor/select2/package.json b/static/vendor/select2/package.json
deleted file mode 100644
index 231473b5..00000000
--- a/static/vendor/select2/package.json
+++ /dev/null
@@ -1,65 +0,0 @@
-{
- "name": "select2",
- "description": "Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.",
- "homepage": "https://select2.org",
- "author": {
- "name": "Kevin Brown",
- "url": "https://github.com/kevin-brown"
- },
- "contributors": [
- {
- "name": "Igor Vaynberg",
- "url": "https://github.com/ivaynberg"
- },
- {
- "name": "Alex Weissman",
- "url": "https://github.com/alexweissman"
- }
- ],
- "repository": {
- "type": "git",
- "url": "git://github.com/select2/select2.git"
- },
- "bugs": {
- "url": "https://github.com/select2/select2/issues"
- },
- "keywords": [
- "select",
- "autocomplete",
- "typeahead",
- "dropdown",
- "multiselect",
- "tag",
- "tagging"
- ],
- "license": "MIT",
- "main": "dist/js/select2.js",
- "style": "dist/css/select2.css",
- "files": [
- "src",
- "dist"
- ],
- "version": "4.0.7",
- "jspm": {
- "main": "js/select2",
- "directories": {
- "lib": "dist"
- }
- },
- "devDependencies": {
- "almond": "~0.3.1",
- "grunt": "^0.4.5",
- "grunt-cli": "^1.3.2",
- "grunt-contrib-concat": "^1.0.1",
- "grunt-contrib-connect": "^2.0.0",
- "grunt-contrib-jshint": "^1.1.0",
- "grunt-contrib-qunit": "^1.3.0",
- "grunt-contrib-requirejs": "^1.0.0",
- "grunt-contrib-uglify": "~4.0.1",
- "grunt-contrib-watch": "~1.1.0",
- "grunt-sass": "^2.1.0",
- "jquery-mousewheel": "~3.1.13",
- "node-sass": "^4.12.0"
- },
- "dependencies": {}
-}
diff --git a/static/vendor/select2/src/js/banner.end.js b/static/vendor/select2/src/js/banner.end.js
deleted file mode 100644
index ea00a036..00000000
--- a/static/vendor/select2/src/js/banner.end.js
+++ /dev/null
@@ -1,6 +0,0 @@
- // Return the AMD loader configuration so it can be used outside of this file
- return {
- define: S2.define,
- require: S2.require
- };
-}());
diff --git a/static/vendor/select2/src/js/banner.start.js b/static/vendor/select2/src/js/banner.start.js
deleted file mode 100644
index 78fe8b02..00000000
--- a/static/vendor/select2/src/js/banner.start.js
+++ /dev/null
@@ -1,6 +0,0 @@
-(function () {
- // Restore the Select2 AMD loader so it can be used
- // Needed mostly in the language files, where the loader is not inserted
- if (jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd) {
- var S2 = jQuery.fn.select2.amd;
- }
diff --git a/static/vendor/select2/src/js/jquery.mousewheel.shim.js b/static/vendor/select2/src/js/jquery.mousewheel.shim.js
deleted file mode 100644
index a27fda0e..00000000
--- a/static/vendor/select2/src/js/jquery.mousewheel.shim.js
+++ /dev/null
@@ -1,6 +0,0 @@
-define([
- 'jquery'
-], function ($) {
- // Used to shim jQuery.mousewheel for non-full builds.
- return $;
-});
diff --git a/static/vendor/select2/src/js/jquery.select2.js b/static/vendor/select2/src/js/jquery.select2.js
deleted file mode 100644
index 9136ff78..00000000
--- a/static/vendor/select2/src/js/jquery.select2.js
+++ /dev/null
@@ -1,58 +0,0 @@
-define([
- 'jquery',
- 'jquery-mousewheel',
-
- './select2/core',
- './select2/defaults',
- './select2/utils'
-], function ($, _, Select2, Defaults, Utils) {
- if ($.fn.select2 == null) {
- // All methods that should return the element
- var thisMethods = ['open', 'close', 'destroy'];
-
- $.fn.select2 = function (options) {
- options = options || {};
-
- if (typeof options === 'object') {
- this.each(function () {
- var instanceOptions = $.extend(true, {}, options);
-
- var instance = new Select2($(this), instanceOptions);
- });
-
- return this;
- } else if (typeof options === 'string') {
- var ret;
- var args = Array.prototype.slice.call(arguments, 1);
-
- this.each(function () {
- var instance = Utils.GetData(this, 'select2');
-
- if (instance == null && window.console && console.error) {
- console.error(
- 'The select2(\'' + options + '\') method was called on an ' +
- 'element that is not using Select2.'
- );
- }
-
- ret = instance[options].apply(instance, args);
- });
-
- // Check if we should be returning `this`
- if ($.inArray(options, thisMethods) > -1) {
- return this;
- }
-
- return ret;
- } else {
- throw new Error('Invalid arguments for Select2: ' + options);
- }
- };
- }
-
- if ($.fn.select2.defaults == null) {
- $.fn.select2.defaults = Defaults;
- }
-
- return Select2;
-});
diff --git a/static/vendor/select2/src/js/jquery.shim.js b/static/vendor/select2/src/js/jquery.shim.js
deleted file mode 100644
index 880993af..00000000
--- a/static/vendor/select2/src/js/jquery.shim.js
+++ /dev/null
@@ -1,14 +0,0 @@
-/* global jQuery:false, $:false */
-define(function () {
- var _$ = jQuery || $;
-
- if (_$ == null && console && console.error) {
- console.error(
- 'Select2: An instance of jQuery or a jQuery-compatible library was not ' +
- 'found. Make sure that you are including jQuery before Select2 on your ' +
- 'web page.'
- );
- }
-
- return _$;
-});
diff --git a/static/vendor/select2/src/js/select2/compat/containerCss.js b/static/vendor/select2/src/js/select2/compat/containerCss.js
deleted file mode 100644
index 45703ac8..00000000
--- a/static/vendor/select2/src/js/select2/compat/containerCss.js
+++ /dev/null
@@ -1,56 +0,0 @@
-define([
- 'jquery',
- './utils'
-], function ($, CompatUtils) {
- // No-op CSS adapter that discards all classes by default
- function _containerAdapter (clazz) {
- return null;
- }
-
- function ContainerCSS () { }
-
- ContainerCSS.prototype.render = function (decorated) {
- var $container = decorated.call(this);
-
- var containerCssClass = this.options.get('containerCssClass') || '';
-
- if ($.isFunction(containerCssClass)) {
- containerCssClass = containerCssClass(this.$element);
- }
-
- var containerCssAdapter = this.options.get('adaptContainerCssClass');
- containerCssAdapter = containerCssAdapter || _containerAdapter;
-
- if (containerCssClass.indexOf(':all:') !== -1) {
- containerCssClass = containerCssClass.replace(':all:', '');
-
- var _cssAdapter = containerCssAdapter;
-
- containerCssAdapter = function (clazz) {
- var adapted = _cssAdapter(clazz);
-
- if (adapted != null) {
- // Append the old one along with the adapted one
- return adapted + ' ' + clazz;
- }
-
- return clazz;
- };
- }
-
- var containerCss = this.options.get('containerCss') || {};
-
- if ($.isFunction(containerCss)) {
- containerCss = containerCss(this.$element);
- }
-
- CompatUtils.syncCssClasses($container, this.$element, containerCssAdapter);
-
- $container.css(containerCss);
- $container.addClass(containerCssClass);
-
- return $container;
- };
-
- return ContainerCSS;
-});
diff --git a/static/vendor/select2/src/js/select2/compat/dropdownCss.js b/static/vendor/select2/src/js/select2/compat/dropdownCss.js
deleted file mode 100644
index 02f55820..00000000
--- a/static/vendor/select2/src/js/select2/compat/dropdownCss.js
+++ /dev/null
@@ -1,56 +0,0 @@
-define([
- 'jquery',
- './utils'
-], function ($, CompatUtils) {
- // No-op CSS adapter that discards all classes by default
- function _dropdownAdapter (clazz) {
- return null;
- }
-
- function DropdownCSS () { }
-
- DropdownCSS.prototype.render = function (decorated) {
- var $dropdown = decorated.call(this);
-
- var dropdownCssClass = this.options.get('dropdownCssClass') || '';
-
- if ($.isFunction(dropdownCssClass)) {
- dropdownCssClass = dropdownCssClass(this.$element);
- }
-
- var dropdownCssAdapter = this.options.get('adaptDropdownCssClass');
- dropdownCssAdapter = dropdownCssAdapter || _dropdownAdapter;
-
- if (dropdownCssClass.indexOf(':all:') !== -1) {
- dropdownCssClass = dropdownCssClass.replace(':all:', '');
-
- var _cssAdapter = dropdownCssAdapter;
-
- dropdownCssAdapter = function (clazz) {
- var adapted = _cssAdapter(clazz);
-
- if (adapted != null) {
- // Append the old one along with the adapted one
- return adapted + ' ' + clazz;
- }
-
- return clazz;
- };
- }
-
- var dropdownCss = this.options.get('dropdownCss') || {};
-
- if ($.isFunction(dropdownCss)) {
- dropdownCss = dropdownCss(this.$element);
- }
-
- CompatUtils.syncCssClasses($dropdown, this.$element, dropdownCssAdapter);
-
- $dropdown.css(dropdownCss);
- $dropdown.addClass(dropdownCssClass);
-
- return $dropdown;
- };
-
- return DropdownCSS;
-});
diff --git a/static/vendor/select2/src/js/select2/compat/initSelection.js b/static/vendor/select2/src/js/select2/compat/initSelection.js
deleted file mode 100644
index 71ee29d1..00000000
--- a/static/vendor/select2/src/js/select2/compat/initSelection.js
+++ /dev/null
@@ -1,42 +0,0 @@
-define([
- 'jquery'
-], function ($) {
- function InitSelection (decorated, $element, options) {
- if (options.get('debug') && window.console && console.warn) {
- console.warn(
- 'Select2: The `initSelection` option has been deprecated in favor' +
- ' of a custom data adapter that overrides the `current` method. ' +
- 'This method is now called multiple times instead of a single ' +
- 'time when the instance is initialized. Support will be removed ' +
- 'for the `initSelection` option in future versions of Select2'
- );
- }
-
- this.initSelection = options.get('initSelection');
- this._isInitialized = false;
-
- decorated.call(this, $element, options);
- }
-
- InitSelection.prototype.current = function (decorated, callback) {
- var self = this;
-
- if (this._isInitialized) {
- decorated.call(this, callback);
-
- return;
- }
-
- this.initSelection.call(null, this.$element, function (data) {
- self._isInitialized = true;
-
- if (!$.isArray(data)) {
- data = [data];
- }
-
- callback(data);
- });
- };
-
- return InitSelection;
-});
diff --git a/static/vendor/select2/src/js/select2/compat/inputData.js b/static/vendor/select2/src/js/select2/compat/inputData.js
deleted file mode 100644
index 6e1dee26..00000000
--- a/static/vendor/select2/src/js/select2/compat/inputData.js
+++ /dev/null
@@ -1,128 +0,0 @@
-define([
- 'jquery',
- '../utils'
-], function ($, Utils) {
- function InputData (decorated, $element, options) {
- this._currentData = [];
- this._valueSeparator = options.get('valueSeparator') || ',';
-
- if ($element.prop('type') === 'hidden') {
- if (options.get('debug') && console && console.warn) {
- console.warn(
- 'Select2: Using a hidden input with Select2 is no longer ' +
- 'supported and may stop working in the future. It is recommended ' +
- 'to use a `