From: Jan Szejko Date: Mon, 21 May 2018 11:55:17 +0000 (+0200) Subject: typo X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/80839825a00cc5dbbdd386e2b617df88bb47977e typo --- diff --git a/apps/catalogue/views.py b/apps/catalogue/views.py index 4204e770..0e7dff35 100644 --- a/apps/catalogue/views.py +++ b/apps/catalogue/views.py @@ -35,7 +35,7 @@ from librarian.document import Document as SST from librarian.formats.html import HtmlFormat from librarian.formats.pdf import PdfFormat from librarian.formats.epub import EpubFormat -from redakcja.utlis import send_notify_email +from redakcja.utils import send_notify_email from .constants import STAGES from .models import Document, Plan from dvcs.models import Revision diff --git a/apps/organizations/forms.py b/apps/organizations/forms.py index 98efeab0..aa84512e 100644 --- a/apps/organizations/forms.py +++ b/apps/organizations/forms.py @@ -7,7 +7,7 @@ from django import forms from django.contrib.sites.models import Site from django.utils.translation import ugettext as _ -from redakcja.utlis import send_notify_email +from redakcja.utils import send_notify_email from .models import Organization, UserCard, countries diff --git a/redakcja/utils.py b/redakcja/utils.py new file mode 100644 index 00000000..806d106e --- /dev/null +++ b/redakcja/utils.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# +# This file is part of MIL/PEER, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# +from constance import config +from django.core.mail import send_mail + + +def send_notify_email(subject, content): + addresses = [part.strip() for part in config.NOTIFY_EMAIL.split(';') if '@' in part] + send_mail(subject, content, 'milpeer@mdrn.pl', addresses) diff --git a/redakcja/utlis.py b/redakcja/utlis.py deleted file mode 100644 index 806d106e..00000000 --- a/redakcja/utlis.py +++ /dev/null @@ -1,12 +0,0 @@ -# -*- coding: utf-8 -*- -# -# This file is part of MIL/PEER, licensed under GNU Affero GPLv3 or later. -# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. -# -from constance import config -from django.core.mail import send_mail - - -def send_notify_email(subject, content): - addresses = [part.strip() for part in config.NOTIFY_EMAIL.split(';') if '@' in part] - send_mail(subject, content, 'milpeer@mdrn.pl', addresses)