Added a setting where the exported excel files should be stored.

Added a option to send the exported excel as mail attachment.
This commit is contained in:
2017-12-07 09:40:35 +01:00
parent 84880281c6
commit c7b714c41b
9 changed files with 48 additions and 54 deletions

View File

@@ -7,7 +7,7 @@ from django import http
from django.conf import settings
from django.contrib import auth, messages
from django.contrib.auth.mixins import LoginRequiredMixin
from django.core.urlresolvers import reverse
from django.urls import reverse
from django.http import Http404
from django.utils.decorators import method_decorator
from django.utils.translation import ugettext as _
@@ -114,7 +114,7 @@ class MembershipDetail(LoginRequiredMixin, generic.DetailView):
def get_context_data(self, **kwargs):
""" Add the ladder ranking and the Kyu and Dan ranking the user profile.
:return: array with the context data
:return: array with the context data
"""
context = generic.DetailView.get_context_data(self, **kwargs)
try:
@@ -139,11 +139,11 @@ class RegisterForm(generic.FormView):
@method_decorator(csp_update(**RECAPTCHA_CSP))
def dispatch(self, request, *args, **kwargs):
"""Overwrite to add googles recaptcha ressoruces to the
"""Overwrite to add googles recaptcha ressoruces to the
Content-Security_Policity HTTP Headers.
:param request:
:param args:
:param kwargs:
:param request:
:param args:
:param kwargs:
:return: """
return super(RegisterForm, self).dispatch(request, *args, **kwargs)