All notable changes to this project will be documented in this file.
- Added
validate_lookup_expression
method tovalidators
module to validate lookup expressions. - Added
DJANGO_NAMESPACES_USER_LOOKUP_EXPRESSION
setting toconf
module to allow for custom lookup expressions. - Updated
get_namespaces
method to use lookup expression if provided (useful for custom namespace models).
0.0.26 - 2025-01-16
- Added
get_namespaces
method toservices
module to return a QuerySet or list of namespaces.
0.0.25 - 2025-01-15
- Added
has_namespace
andid
properties toAnonymousNamespace
class to handle non-activated/anonymous orgs. - Ensure view tests run first with tests/conftest.py.
- Added
pytest-order
option to tests to run individual tests in a specific order.
0.0.24 - 2025-01-15
- Renamed default setting names to start with
DJANGO_NAMESPACES_
to avoid conflicts with other apps.
0.0.23 - 2025-01-15
- If using a swappable Namespace model, unregister the default Namespace model from admin.
0.0.22 - 2025-01-14
- Minor bug fixes
0.0.21 - 2025-01-14
- swappable model for Namespace. Defaults to
DJANGO_NAMESPACES_NAMESPACE_MODEL="django_namespaces.Namespace"
. - Abstract model for Namespace.
- Checks for Namespace model.
- New test cases
0.0.20 - 2025-01-13
- An updated changelog is coming soon.
- Old versions removed.