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
Get develop into master #1207
Get develop into master #1207
Conversation
* Store mimetype of uploaded file in database * Fix a few CI errors * set default mime_type to application/octet-stream * Server.serve() now accepts a filer.File object * Fix: JPG testimage shall be uploaded with Content-Type image/jpeg * fix flake8 complaints * Use NotImplementedError * fix flake8 complaints * describe changes * use master branch instead of develop * add additional tests to support MIME type * check that content-type is stored by django-filer * Allow latest unidecode version (#1171) * Allow latest unidecode version Resolves dependency issue in other projects where Unidecode >= 1.1 is needed. * Fix annotation by @yakky on PR #1152 * use url instead of path to guess mime-type * Use property ‘download’ to reuse original filename (#1169) * Use property ‘download’ to reuse original filename * add feature to changelog Co-authored-by: Angelo Dini <angelo.dini@divio.ch> Co-authored-by: Ashish Patil <ashishnitinpatil@gmail.com>
# Conflicts: # docs/running_tests.rst # filer/models/filemodels.py # filer/server/backends/base.py # filer/utils/files.py # tests/test_admin.py
After this is merged, I can release - any other PRs to merge as well? |
@jrief is much more up to date than me regarding important PRs to be merged |
@FinalAngel I edited a documentation note Probably it's better to add this https://github.com/divio/django-filer/pull/1207/files#diff-70df4411a50fd8fafbe1cff6f3b283b6R55 in the changelog as a breaking change to properly communicate it |
Codecov Report
@@ Coverage Diff @@
## master #1207 +/- ##
==========================================
- Coverage 70.90% 70.84% -0.06%
==========================================
Files 63 64 +1
Lines 3052 3077 +25
Branches 436 439 +3
==========================================
+ Hits 2164 2180 +16
- Misses 735 742 +7
- Partials 153 155 +2
Continue to review full report at Codecov.
|
I just went through all open pull requests. The only one, I would consider to merge is #958. This however has to be slightly changed (requested by @yakky, but never done by the original author). Otherwise I'm OK with merging this pull request. Just one side-note: I would really appreciate, if we could add a JSON field to the |
@jrief that's probably best to discuss with @divio/django-cms-core |
models.File
, add fieldmime_type
to store the Content-Type as set bythe browser during file upload.
matches_file_type
to itsnew signature.
download
to the download link in order to offer the fileunder its original name.