typo
authorJan Szejko <janek37@gmail.com>
Mon, 21 May 2018 11:55:17 +0000 (13:55 +0200)
committerJan Szejko <janek37@gmail.com>
Mon, 21 May 2018 11:55:17 +0000 (13:55 +0200)
apps/catalogue/views.py
apps/organizations/forms.py
redakcja/utils.py [new file with mode: 0644]
redakcja/utlis.py [deleted file]

index 4204e77..0e7dff3 100644 (file)
@@ -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
index 98efeab..aa84512 100644 (file)
@@ -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 (file)
index 0000000..806d106
--- /dev/null
@@ -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 (file)
index 806d106..0000000
+++ /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)