
- 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.
6 lines
168 B
Python
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-"))
|
|
)
|