Unverified Commit 7e20a36c authored by Joost Rijneveld's avatar Joost Rijneveld
Browse files

Apply isort to entire codebase

parent 8aacf7db
from __future__ import unicode_literals, print_function, absolute_import
from __future__ import absolute_import, print_function, unicode_literals
from bleach import clean
from django import template
......
......@@ -19,25 +19,24 @@ Including another URLconf
import os.path
from django.conf import settings
from django.conf.urls import url, include
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.sitemaps.views import sitemap
from django.views.generic import TemplateView
from django.views.i18n import JavaScriptCatalog
from events.feeds import DeprecationFeed
from utils.views import private_thumbnails
import members
from .sitemaps import StaticViewSitemap
from activemembers.sitemaps import sitemap as activemembers_sitemap
from members.sitemaps import sitemap as members_sitemap
from documents.sitemaps import sitemap as documents_sitemap
from thabloid.sitemaps import sitemap as thabloid_sitemap
from events.feeds import DeprecationFeed
from members.sitemaps import sitemap as members_sitemap
from partners.sitemaps import sitemap as partners_sitemap
from thabloid.sitemaps import sitemap as thabloid_sitemap
from utils.views import private_thumbnails
from . import views
from .sitemaps import StaticViewSitemap
thalia_sitemap = {
'main-static': StaticViewSitemap,
......
from django.conf import settings
from django.contrib.auth import authenticate, login
from django.views.decorators.http import require_POST
from django.http import (HttpResponseBadRequest, HttpResponseForbidden,
JsonResponse)
from django.http import (HttpResponseBadRequest,
HttpResponseForbidden, JsonResponse)
from django.utils import timezone
from django.conf import settings
from django.views.decorators.csrf import csrf_exempt
from django.views.decorators.http import require_POST
from members.models import Member
......
import random
import string
import tempfile
from datetime import date
import factory
from django.contrib.auth.models import User
from django.core.management.base import BaseCommand
from django.core.files import File
from django.core.management.base import BaseCommand
from faker import Factory as FakerFactory
from members.models import Member, Membership
from partners.models import Partner
from pydenticon import Generator as IconGenerator
import factory
from faker import Factory as FakerFactory
faker = FakerFactory.create('nl_NL')
......
from django.core.management.base import BaseCommand
import getpass
from bs4 import BeautifulSoup
import requests
import getpass
from bs4 import BeautifulSoup
from django.core.management.base import BaseCommand
class Command(BaseCommand):
......
import os
from django.utils import timezone
from django.utils.six.moves.urllib.parse import unquote
import os
def datetime_to_lectureyear(date):
if isinstance(date, timezone.datetime):
......
import os
from django import template
from django.conf import settings
from django.urls import reverse
from django.db.models.fields.files import ImageFieldFile
from django.urls import reverse
from PIL import Image, ImageOps
import os
register = template.Library()
......
from django.core.exceptions import FieldError
from django.db import models
from utils.translation import MultilingualField, ModelTranslateMeta
from django.utils import translation
from django.test import TestCase, override_settings
from django.core.exceptions import FieldError
from django.utils import translation
from utils.translation import ModelTranslateMeta, MultilingualField
LANGUAGES = [
('en', 'English'),
......
from django.conf import settings
from django.contrib import admin
from django.core.exceptions import FieldError, ImproperlyConfigured
from django.db import models
from django.db.models.fields.related import RelatedField
from django.conf import settings
from django.utils.translation import get_language, string_concat
from django.core.exceptions import ImproperlyConfigured, FieldError
"""This module makes it easy to define translatable model fields.
......
from django.core.exceptions import ValidationError
import os
from django.core.exceptions import ValidationError
def validate_file_extension(file, exts=['.txt', '.pdf', '.jpg', '.png']):
ext = os.path.splitext(file.name)[1]
......
import os
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.http import Http404
from django.conf import settings
from sendfile import sendfile
import os
from .snippets import sanitize_path
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment