Skip to content
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

add DJANGO_MAILBOX_MESSAGE_UPLOAD_TO to settings, change utils.get_at… #222

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Rokfordchez
Copy link
Contributor

By default original message eml store in 'messages/' if DJANGO_MAILBOX_STORE_ORIGINAL_MESSAGE == True
But there are no path settings for eml like for attachment.
Add DJANGO_MAILBOX_MESSAGE_UPLOAD_TO setting, rewrite get_attachment_save_path > get_save_path in utils.py, edit upload_to in model for Message.eml and MessageAttachment.document

…tachment_save_path to utils.get_save_path, change eml upload_to in model
@ad-m
Copy link
Collaborator

ad-m commented Jan 31, 2020

We can not accept PR which does not pass tests. Could you fix that?

fix get_save_path in Migration
@Rokfordchez
Copy link
Contributor Author

fix some things, but now tests failed without traceback after detecting Migrations

@ad-m
Copy link
Collaborator

ad-m commented Jan 31, 2020

Master is green ( https://travis-ci.org/coddingtonbear/django-mailbox/builds/642819853?utm_medium=notification&utm_source=github_status ), so therefore the problem is introduced in the pull request. There are no generated migrations associated with changes in the model. Execute: python manage.py makemigrations.

@Rokfordchez
Copy link
Contributor Author

fix error in the pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants