Changelog

This commit is contained in:
Martin Mahner 2017-09-01 12:34:57 +02:00
parent 201f78e81b
commit 1167d6fcdb
2 changed files with 13 additions and 12 deletions

View file

@ -1,13 +1,16 @@
Changelog Changelog
========= =========
2.14 (master) 3.0 (master)
------------- -------------
* General code cleanup
* Removed jQuery, all Javascript is native.
* Removed Bootstrap for theming.
* Django 1.11 based templates, forms, views, models, etc.
* All views are now class based and use the latest generic based views sugar.
* Removed "Suspicious" middleware which was never been used, documented, * Removed "Suspicious" middleware which was never been used, documented,
and also not functional for a while. and also not functional for a while.
* All views are now class based and use the latest generic based views sugar
provided by Django.
2.13 (2017-01-20) 2.13 (2017-01-20)
----------------- -----------------

View file

@ -5,7 +5,6 @@ import difflib
import json import json
from django.conf import settings from django.conf import settings
from django.views.generic import FormView
from django.core.exceptions import ObjectDoesNotExist from django.core.exceptions import ObjectDoesNotExist
from django.core.urlresolvers import reverse from django.core.urlresolvers import reverse
from django.db.models import Count from django.db.models import Count
@ -15,16 +14,17 @@ from django.shortcuts import get_object_or_404
from django.utils.decorators import method_decorator from django.utils.decorators import method_decorator
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from django.views.decorators.csrf import csrf_exempt from django.views.decorators.csrf import csrf_exempt
from django.views.defaults import page_not_found as django_page_not_found from django.views.defaults import page_not_found as django_page_not_found, \
from django.views.defaults import server_error as django_server_error server_error as django_server_error
from django.views.generic.base import View, TemplateView from django.views.generic import FormView
from django.views.generic.base import TemplateView, View
from django.views.generic.detail import DetailView from django.views.generic.detail import DetailView
from pygments.lexers import get_lexer_for_filename from pygments.lexers import get_lexer_for_filename
from pygments.util import ClassNotFound from pygments.util import ClassNotFound
from .forms import EXPIRE_CHOICES, get_expire_values, SnippetForm from .forms import EXPIRE_CHOICES, SnippetForm, get_expire_values
from .highlight import (LEXER_DEFAULT, LEXER_KEYS, LEXER_LIST, from .highlight import (LEXER_DEFAULT, LEXER_KEYS, LEXER_LIST,
LEXER_WORDWRAP, PLAIN_CODE, pygmentize) LEXER_WORDWRAP, PLAIN_CODE, pygmentize)
from .models import ONETIME_LIMIT, Snippet from .models import ONETIME_LIMIT, Snippet
template_globals = { template_globals = {
@ -37,8 +37,6 @@ template_globals = {
# Snippet Handling # Snippet Handling
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
class SnippetView(FormView): class SnippetView(FormView):
""" """
Create a new snippet. Create a new snippet.