CRUDAdmin v0.4.3 - Bug Fixes and UI Improvements
🐛 Bug Fixes
🔍 Enhanced Search Functionality
- UUID Support in Search: Added support for UUID field types in search functionality (
crudadmin/admin_interface/model_view.py:963
)- UUID fields are now properly handled during search operations by converting search values to strings
- Resolves search issues when working with models that use UUID primary keys or UUID fields
📝 Form Field Handling Improvements
- Empty Fields Update Fix: Fixed handling of empty/null fields during record updates (
crudadmin/admin_interface/model_view.py:1095-1108
)- Added proper
field_values
dictionary to template context to ensure form fields retain their values correctly - Prevents loss of field data when updating records with empty or null values
- Improves form state management in the admin interface
- Added proper
📱 Responsive Layout Enhancements
- Authentication Layout Responsiveness: Improved responsive behavior of authentication pages (
crudadmin/templates/base/base.html:272-278
)- Added proper grid layout and overflow handling for admin main content area
- Enhanced mobile and tablet viewing experience for login/authentication forms
- Better padding and layout management across different screen sizes
🧪 Development & Testing Improvements
✅ Enhanced Test Coverage
- Event System Tests: Added comprehensive unit tests for event models module
- Core Authentication Tests: Added unit tests for core authentication functionality
- Event Integration Tests: Added integration tests for the event system
- Python 3.11 Compatibility: Updated test representations for Python 3.11 compatibility
🛠️ Development Workflow
- Pre-commit Hooks: Added pre-commit hooks configuration for code quality
- Updated Dev Dependencies: Refreshed development dependencies for better tooling
- Contribution Guidelines: Enhanced contribution documentation with clearer instructions
🔧 Technical Details
No Breaking Changes
This is a maintenance release focused on bug fixes and improvements. All existing APIs remain unchanged and fully backward compatible.
Dependencies
- No new dependencies added
- Updated development dependencies for better tooling and testing
- Maintained compatibility with all existing requirements
Python Support
- Python 3.9+ (unchanged)
- Improved Python 3.11 compatibility in test suite
- Tested across all supported Python versions
📋 Full Changelog
Fixed
- UUID field types now properly supported in search functionality
- Empty/null field handling during record updates in admin interface
- Responsive layout issues in authentication pages
- Form field value retention during updates
- Python 3.11 compatibility issues in test representations
Added
- Unit tests for event models module
- Unit tests for core authentication functionality
- Integration tests for event system
- Pre-commit hooks configuration
- Enhanced contribution guidelines
Improved
- Mobile and tablet responsiveness for admin interface
- Form state management and field value handling
- Development workflow with better tooling
- Test coverage across core modules
🚀 Upgrade Notes
This release contains only bug fixes and improvements with no breaking changes. You can safely upgrade from v0.4.2 to v0.4.3 without any code modifications.
Benefits of Upgrading
- ✅ Better search functionality with UUID support
- ✅ Improved form handling for empty/null fields
- ✅ Enhanced mobile/tablet experience
- ✅ More reliable admin interface behavior
Installation
pip install --upgrade crudadmin==0.4.3
What's Changed
- add tests for the event system integration by @msamsami in #46
- Adding Pre-commit hooks by @castroofelipee in #47
- add unit tests for the core auth module by @msamsami in #48
- add unit tests for event models module by @msamsami in #49
- Adjust responsive limits in authentication layout by @castroofelipee in #51
- Empty Update fields fix by @LucasQR in #55
- Added UUID support for search by @Seleznev-nvkz in #57
- upgrade version by @igorbenav in #58
New Contributors
- @castroofelipee made their first contribution in #47
- @LucasQR made their first contribution in #55
- @Seleznev-nvkz made their first contribution in #57
Full Changelog: v0.4.2...v0.4.3