v1.1.0
✨ Features
-
feat(migrations): Add
db_comment
migration file. (f6acab9)- Added a migration file to include database comments for improved documentation of database schema fields.
-
feat(conf): Add
exclude_serializer_null_fields
config. (cd0e648)- Introduced a new configuration option to exclude null fields in serializer responses dynamically.
-
feat(models): Add
db_comment
for various models. (ce29509, 52e236b, fd96159, 268bcff)- Added
db_comment
to fields in theNotification
,NotificationRecipient
,NotificationSeen
, andDeletedNotification
models for better database schema clarity and maintenance.
- Added
-
feat(queryset): Add
NotificationDataAccessLayer
custom manager. (88a6f92)- Implemented a custom manager providing data access methods for notifications, including creating, updating, and filtering notifications.
-
feat(admin): Add dynamic admin site support for Admin. (114ff1c)
- Integrated dynamic support for custom admin sites in the
dj-notification-api
package through configurable admin site settings.
- Integrated dynamic support for custom admin sites in the
🛠️ Refactoring
-
refactor(serializers): Update serializers to apply
exclude null fields
config. (842aed0)- Refactored
to_representation
method of serializers to accommodate the new configuration for excluding null fields.
- Refactored
-
refactor(models): Update model
Manager
class and apply ModelManager toNotificationViewSet
. (84d460d, b790f57, a420ca5)- Refined the
Notification
model’s manager for better data handling and incorporated the new manager into API viewsets.
- Refined the
🐛 Bug Fixes
- fix(throttlings): Fix missing rate for 'user' scope error. (43f0639)
- Fixed an issue where the throttle rates for different user roles were missing or incorrectly applied.
📚 Documentation
- docs(contributing): Update contributing documentation to add migration-linter hints. (4c863e0)
- Expanded the contributing guide to include information and usage hints for the new migration-linter tool.
🔧 Chores
-
chore(pyproject): Add
django-migration-linter
config. (2a29525)- Added
django-migration-linter
as a development dependency and pre-commit hook for migration linting.
- Added
-
chore(dependency): Update
rest_framework
minimum version & pytest marker. (69d7906)- Updated the minimum required version of
django-rest-framework
and configured pytest markers for testing compatibility.
- Updated the minimum required version of