Fix import and redefinition issues
This commit is contained in:
@@ -9,6 +9,8 @@ from django.utils.translation import ugettext as _
|
|||||||
from django.forms.models import model_to_dict
|
from django.forms.models import model_to_dict
|
||||||
from django_tables2.config import RequestConfig
|
from django_tables2.config import RequestConfig
|
||||||
|
|
||||||
|
import json
|
||||||
|
import requests
|
||||||
import logging
|
import logging
|
||||||
import csv
|
import csv
|
||||||
|
|
||||||
@@ -61,15 +63,6 @@ def validate_recaptcha(response):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
def send_mail_wrapper(subject, message):
|
|
||||||
"""Call send_mail function."""
|
|
||||||
send_mail(subject,
|
|
||||||
message,
|
|
||||||
'no-reply@sahkoinsinoorikilta.fi',
|
|
||||||
['viestintamestari@sahkoinsinoorikilta.fi'],
|
|
||||||
fail_silently=False)
|
|
||||||
|
|
||||||
|
|
||||||
def convert_table_to_html(table, request):
|
def convert_table_to_html(table, request):
|
||||||
"""
|
"""
|
||||||
Convert table to html.
|
Convert table to html.
|
||||||
|
|||||||
Reference in New Issue
Block a user