Django-attachments

Latest version: v1.11

Safety actively analyzes 682387 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

1.11

------------------

- Return form errors as JSON from ``add_attachment()`` view
when the ``X-Return-Form-Errors`` request header is present.
Response code is 400 - BAD REQUEST because this is a client
error.

1.10

------------------

- Support custom form validators via ``AppConfig.attachment_validators``
- Remove quotes from "attachment_list" (Aaron C. de Bruyn)
- Add a URL for matching objects with a UUID4 primary key. Fix
`Issue 94 <https://github.com/bartTC/django-attachments/issues/94>`_
(Aaron C. de Bruyn)
- Document settings supported by django-attachments
- Document how to make a new release. Closes
`Issue 78 <https://github.com/bartTC/django-attachments/issues/78>`_
- Start testing with GitHub Actions
- Drop testing with end-of-life versions of Django
- Add testing with Django 4.0 and 4.1, Python 3.9 and 3.10
and switch the default Python version used to 3.10
- Add testing w/ Python 3.11 - supported only on Django 4.1 for now

1.9.1

-------------------

- Rebuild the previous version but don't ship a left-over migration file

1.9

--------------------------------------

- Configure PK explicitly to AutoField for Django 3.2+, see
https://docs.djangoproject.com/en/3.2/releases/3.2/#customizing-type-of-auto-created-primary-keys
- Start testing with Django 3.2
- Fix typo in README (Jesaja Everling)
- Enable syntax highlighting in README (Basil S)

1.8

-----------------

- Alter ``object_id`` from ``TextField()`` to ``CharField(max_length=64)``,
and keep the db_index argument. This resolves the issues on MariaDB/MySQL.

1.7

-----------------------------------------------

- Add DB index to ``object_id``, ``created`` and ``modified`` fields.
- Add ``delete_stale_attachments`` command to remove attachments for which
the corresponding object has been deleted.
- Add ``Attachment.attach_to()`` method for moving attachments between
different objects.
- Django 3.1 compatibility and tests.

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.