- Added mypy type checking
- Updated type annotations to align with django-stubs for downstream projects/packages
- Confirmed Django 4.2 support
Periodic version compatibility release.
Breaking changes 💥
- Dropped support for Python 3.7
- Dropped support for Django 4.0
The library likely still works on those versions, but they are no longer tested.
Other changes
- Confirmed support for Python 3.11
- Confirmed support for Django 4.2
Feature release
- Added
privates.admin.PrivateMediaMixin.private_media_no_download_fields
so admin classes can mark fields for which no file download URL/view should be generated - Specifying
privates.admin.PrivateMediaMixin.private_media_fields
is now optional, available private media fields are now automatically discovered.
Periodic maintenance release
- Confirmed support for Django 4.0 and 4.1
- Dropped support for Django 2.2
- Dropped support for Python 3.5 and 3.6
- Updated CI infrastructure
- Code base is now formatted with black
- Codebase now exposes type hints (incomplete!)
Align supported version with Django LTS. The CI-tested versions are now Django 2.2 and 3.2.
Django 3.0 and 3.1 probably also still work, but these are end of life and not officially supported.
- Dropped Django 1.11 support
- Added Python 3.9 support
- Added Python 3.10 support
- Migrated from Travis CI to Github Action
Fixed deprecation message about django.conf.urls (thanks @GerjonM).
Supported Django versions are now 1.11, 2.2 and 3.2.
Maintenance update, some small features and cleanup
- Fixed packaging so that
testapp/
andtests/
are no longer packaged - Dropped support for Django 2.0 and 2.1, added support for Django 3.0
- Added support for Python 3.8
- Depends on django-sendfile2 > 0.5, which went through a package rename from
sendfile
todjango_sendfile
. - Improved hooks to customize representations
- Added
privates.fields.PrivateMediaImageField
- thanks to @GerjonM - Support dropped for Django 2.0 (EOL)
- Support dropped for Python 3.4 (EOL)
Most likely this will still work on Python 3.4 and Django 2.0, however, it's not explicitly listed in the CI build anymore, so use on your own risk.