-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send mail refactor #14
base: master
Are you sure you want to change the base?
Conversation
Conflicts: django_mailer/__init__.py
@@ -26,8 +29,7 @@ def send_mail(subject, message, from_email, recipient_list, | |||
arguments are not used. | |||
|
|||
""" | |||
from django.core.mail import EmailMessage | |||
from django.utils.encoding import force_unicode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(the imports are kept locally because setup.py
imports the package to get the version number)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed :)
|
||
encoded_message = models.TextField() | ||
message = models.TextField() | ||
html_message = models.TextField(blank=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two things here...
Firstly, if we're changing the schema then we should probably use south.
Secondly, I'm not sure I like having html_message as a field. It seems like it'd be a better fit to have a MessageAlternative class and actually store it "properly"
- added a cron mode to the management commands
Hi Chris,
I made a new branch from your fork and applied my changes here. Take a look at it when you have time.
Thanks,
Selwin