inventory/inventory/temp.py
Yaro Kasear 9803db17ab Add inventory management templates and utility functions
- Created HTML templates for inventory index, layout, search, settings, table, user, and worklog.
- Implemented utility functions for eager loading relationships in SQLAlchemy.
- Added validation mixin for form submissions.
- Updated project configuration files (pyproject.toml and setup.cfg) for package management.
2025-07-08 11:47:22 -05:00

6 lines
168 B
Python

def is_temp_id(val):
return (
val is None or
(isinstance(val, int) and val < 0) or
(isinstance(val, str) and val.startswith("temp-"))
)