Fix codestyle errors, use currying instead of lambdas for determing user access

This commit is contained in:
Garret Wassermann
2018-07-19 00:06:57 -04:00
parent 38d9ae9c57
commit c70cf04e4d
5 changed files with 36 additions and 15 deletions

View File

@ -11,6 +11,14 @@ import mimetypes
import os
from smtplib import SMTPException
from django.conf import settings
from django.db.models import Q
from django.utils import six
from django.utils.encoding import smart_text
from django.utils.safestring import mark_safe
from helpdesk.models import Attachment, EmailTemplate
import six
if six.PY3:
@ -20,14 +28,6 @@ else:
from base64 import urlsafe_b64encode as b64encode
from base64 import urlsafe_b64decode as b64decode
from django.conf import settings
from django.db.models import Q
from django.utils import six
from django.utils.encoding import smart_text
from django.utils.safestring import mark_safe
from helpdesk.models import Attachment, EmailTemplate
logger = logging.getLogger('helpdesk')