Releases: jwhitlock/drf-cached-instances
Releases · jwhitlock/drf-cached-instances
v0.3.4
v0.3.3
v0.3.2: Release 0.3.2
- Remove deprecation warning in Django 1.8
- Expand tests to Django master and Django REST Framework 3.2
- Fix invalid mock.patch tests that break under mock 1.3.0
- Documentation updates and fixes
v0.3.1
v0.3.0: DRF 3.x compatibility
- Tested with Django 1.8
- Tested with Django REST Framework 2.4, 3.0, and 3.1
- CachedModel now supports .pk attribute as an alias, usually to the .id
field. DRF 3 uses .pk to determine if a model is saved to database, and
returns empty relation data for unsaved fields. - cache.delete_all_versions() will delete all cached instances of a model and
PK. This is useful when changes are made outside of normal requests, such as
during a data migration.