Commit 7a88e74
committed
- **Refactored inclusion tags for template handling and model integration:**
- Replaced multiple outdated `data_import` templates with updated naming and structure (`import_job_list_table.html` and `import_job_txs_*` templates).
- Enhanced `import_job_txs_pending` and `import_job_txs_imported` to improve pending transaction handling and model integration using `ImportJobModel`.
- Updated method definitions to include explicit type hints (e.g., `ImportJobModelQuerySet`) for improved readability and functionality.
- Removed unnecessary multi-line decorators in `@register.inclusion_tag` to simplify and standardize style across templates.
- **Enhanced transaction and entity-based table methods:**
- Passed additional context parameters (e.g., `current_path`) where relevant, streamlining associated logic for better navigation and state-awareness.
- Consolidated and improved queryset sorting and validation for tables (`bank_account_table`, `closing_entry_txs_table`, etc.).
- **Streamlined template references and decorators:**
- Shortened all `@register.inclusion_tag` decorators to a single-line format to enhance code readability.
- Updated and standardized template paths across `/templates` for consistency and clarity.
### **Summary**
Refactored and standardized inclusion tags for clearer, maintainable, and scalable template handling. Enhanced model references, added type hints, and improved navigation/context parameters. Simplified template references and decorator styling.
### **Backwards Compatibility**
These updates are fully backwards compatible—no existing workflows or usage patterns are affected.1 parent 22dfe93 commit 7a88e74
1 file changed
+52
-132
lines changed
0 commit comments