Skip to content

Conversation

frennkie
Copy link
Contributor

@frennkie frennkie commented Sep 26, 2020

This PR adds a new Attachment model which has a ForeignKey to Message. With this it is (optionally) possible to upload one or more files for a Message. When the message is send out the files are attached as normal e-mail attachments. The "read online" pages include a download link to these files.

A new migration has been created 0006_attachment.py and the graph_models for the documentation have been updated.

Basic tests for the new functionality are included.

This is a replacement for #145.

Screenshot - Django Admin:
message_admin

Screenshot - Thunderbird:
Thunderbird

Screenshot - Online View:
ReadOnline

@coveralls
Copy link

coveralls commented Sep 26, 2020

Coverage Status

Coverage increased (+0.6%) to 88.996% when pulling f9e7c0f on frennkie:add-attachment-new into 57ac58d on dokterbob:master.

@frennkie
Copy link
Contributor Author

frennkie commented Sep 26, 2020

@dokterbob @claudep any suggestions how this could be improved? Or would this be acceptable for merging?

@frennkie
Copy link
Contributor Author

@dokterbob could you look into this please?

@dokterbob
Copy link
Collaborator

Sorry for the late reply. I like the idea, especially considering that it's an optional feature.

Code looks very nice. Coverage increased. Very well done! Thanks!

@dokterbob dokterbob merged commit 9fa712c into jazzband:master Oct 24, 2020
@frennkie frennkie deleted the add-attachment-new branch October 24, 2020 11:27
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.

4 participants