- Dropped Support for Django <=1.10.
- Fixed 'next' URL argument redirect.
- Django 2.1 and Python 3.7 support.
- General code cleanup.
- Added a missing database migration.
- New templatetag
attachments_count
. - New setting
DELETE_ATTACHMENTS_FROM_DISK
to delete attachment files if the attachment model is deleted. - New setting
FILE_UPLOAD_MAX_SIZE
to deny file uploads exceeding this value.
- Django 1.11 and 2.0 compatibility and tests.
- Django 1.10 compatibility and tests.
- Python 3.6 compatibility and tests.
- Fixes problems where models have a foreign key named something other than "id".
- Added finnish translation.
- Minor test suite improvements.
General code cleanup to keep compatibility with the latest Django (currently 1.8 upwards) as well as Python3. Introduced full testsuite.
Backwards incompatible: The attachment views now use a urlpattern
namespace
so you need to adjust the urlpattern:url(r'^attachments/', include('attachments.urls', namespace='attachments')),
- Backwards incompatible: The quotes around the
as
variable name must be removed:
{% get_attachments_for entry as "my_entry_attachments" %} becomes {% get_attachments_for entry as my_entry_attachments %}
- Backwards incompatible: The quotes around the
- Possibly backwards incompatible: The old version had bugs around
permissions and were not enforcing it in all places. From now on the related permissions
add_attachment
anddelete_attachment
must been applied to all related users.
- Added a note to the README that you should secure your static files.
This version adds more granular control about user permissons. You need to explicitly add permissions to users who should been able to upload, delete or delete foreign attachments.
This might be backwards incompatible as you did not need to assign add/delete permissions before!