django-livefield
About
A Django field that enables convenient soft-deletion. For Python 3.11+ and Django 4.2+
Installation
Simple: pip install django-livefield.
Example Usage
>>> from django.db import models
>>> from livefield import LiveField, LiveManager
>>>
>>>
>>> class Person(models.Model):
... name = models.CharField()
... live = LiveField()
...
... objects = LiveManager()
... all_objects = LiveManager(include_soft_deleted=True)
...
... class Meta:
... unique_together = ('name', 'live')
...
... def delete(self, using=None):
... self.live = False
... self.save(using=using)
...
>>> john = Person.objects.create(name='John Cleese')
>>> doppelganger = Person(name='John Cleese')
>>> doppelganger.save() # Raises an IntegrityError
>>> john.delete()
>>> doppelganger.save() # Succeeds!
License
MIT. See LICENSE.txt for details.
Contributing
Pull requests welcome! To save everyone some hassle, please open an issue first so we can discuss your proposed change.
In your PR, be sure to add your name to AUTHORS.md and include some tests for your spiffy new functionality. CI will green-light your build once it passes the unit tests (make test) and our linters (make lint).
Changelog
4.3.1
- Fix Changelog message
4.3.0
- Add support for Python 3.14
- Add support for Django 5.2
- Drop support for Python versions below 3.11
- Drop support for Django versions below 4.2
4.2.0
- Migrate to Poetry for building and publishing
4.1.0
- Add support for Python 3.12
- Add support for Django 5.0
4.0.0
- Add support for Python 3.8 - 3.11
- Add support for Django 4.1 and 4.2
- Remove support for old Django versions
- Remove support for old Python versions
3.3.0
- Django 3.x support
- switch to BooleanField as base (Django 4.x deprecation)
3.2.1
- Fix rST formatting in this file to pass PyPI rendering check
3.2.0 (Not released)
- Support Django 2.2
- Support Python 3.7
- Fix metadata to remove deprecated Django versions
- Expand travis tests for versions and database engines
- Remove obsolete pylint suppressions
- Thanks to @shurph for the above!
3.1.0
- Fix deprecation of context param for Field.from_db_value
- Support for Django 2.1 (Thanks @lukeburden
- Switch tests suite to use pytest
- Remove pylint-django plugin, no longer needed
3.0.0
- Add support for Python 3.6
- Add support for Django 2.0
- Remove support for Python 3.4
- Remove support for old Django versions
- Remove GIS
2.5.0 (Not released)
- Added official Python 3 support.
- Re-added support for Django 1.8. Now supports Django 1.8 and 1.9.
2.4.0 (2016-02-11)
- Drop support for Django 1.8
- Add number of affected rows for delete methods (hard_delete, soft_delete, delete). Note: Django 1.9+ only.
2.1.0 (2014-09-04)
- Add support for Django 1.7.
2.0.0 (2014-07-13)
- Renamed top-level namespace to
livefield. - Restructured internally to match Django convention.
- Added GIS support.
- Added South support.
1.0.0 (2014-02-14)
- Initial release.
- Separated existing code from main application repository.
Metadata
Release files for django-livefield 4.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_livefield-4.3.2.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_livefield-4.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.6 kB
Release files / django_livefield-4.3.2.tar.gz
| Download URL | django_livefield-4.3.2.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a53d028b54663e02f46fbc04f73cb4fb4ce628c39ebbf5a49f32c17683499474
|
|
BLAKE2b-256 checksum How to use checksums |
ad7560358a1bf5724a52bcf3c0581ac41e311577fe6f22198c1404b2e4ffc3b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.
Transparency logRelease files / django_livefield-4.3.2-py3-none-any.whl
| Download URL | django_livefield-4.3.2-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fe84c2b73a00884d036c1050a3ea383416ac3888b93c32d574692f12101f4f38
|
|
BLAKE2b-256 checksum How to use checksums |
26755ecabec56e15a5487f0cc57c604a6919c98a2312d0b2b5ce45bfc4759856
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.
Transparency log