How mochputrafs/labtrack works
LabTrack is a Django laboratory-asset management application. Its main workflow lets borrowers or staff manage accounts, assets, loans, and maintenance; domain services validate state changes and persist records, while reporting services provide dashboard analytics and CSV/PDF exports. The graph separates request handling, shared access/audit support, inventory and loan operations, maintenance, and reporting. Source excerpts and the index support the main service links; URL wiring beyond the sampled project routes is not shown.
Main entry points: models.py Asset Records · inventory/views.py Inventory Views · permissions.py Role Permissions · accounts/views.py Account Views
Components 24
Access and Core
- Account Views
apps/accounts/views.py - Account Forms
apps/accounts/forms.py - User Accounts
apps/accounts/models.py - Core Views
apps/core/views.py - Role Permissions
apps/core/permissions.py - Audit Service
apps/core/services.py - Audit Log
apps/core/models.py
Inventory and Loans
- Inventory Views
apps/inventory/views.py - Inventory Forms
apps/inventory/forms.py - Inventory Service
apps/inventory/services.py - Asset Records
apps/inventory/models.py - Loan Views
apps/loans/views.py - Loan Forms
apps/loans/forms.py - Loan Service
apps/loans/services.py - Loan Records
apps/loans/models.py
Maintenance
- Maintenance Views
apps/maintenance/views.py - Maintenance Forms
apps/maintenance/forms.py - Maintenance Service
apps/maintenance/services.py - Maintenance Records
apps/maintenance/models.py
Reporting
- Report Views
apps/reports/views.py - Report Service
apps/reports/services.py
Other components
- Borrower
- Lab Staff
- SQL Database
Connections 40
- Borrower → Account Views: submits requests
- Lab Staff → Account Views: manages accounts
- Account Views → Account Forms: uses forms
apps/accounts/views.py - Account Views → Role Permissions: checks roles
apps/accounts/views.py - Account Views → Audit Service: records actions
apps/accounts/views.py - Account Forms → User Accounts: validates users
- Core Views → Role Permissions: checks roles
apps/core/views.py - Core Views → Audit Log: reads logs
apps/core/views.py - Audit Service → Audit Log: creates entries
apps/core/services.py - Borrower → Inventory Views: requests assets
- Lab Staff → Inventory Views: manages assets
- Inventory Views → Role Permissions: checks roles
apps/inventory/views.py - Inventory Views → Inventory Forms: uses forms
apps/inventory/views.py - Inventory Views → Inventory Service: calls operations
apps/inventory/views.py - Inventory Views → Asset Records: reads records
apps/inventory/views.py - Inventory Forms → Asset Records: validates assets
apps/inventory/forms.py - Inventory Service → Asset Records: updates assets
apps/inventory/services.py - Inventory Service → Audit Service: records events
apps/inventory/services.py - Loan Views → Role Permissions: checks roles
apps/loans/views.py - Loan Views → Loan Forms: uses forms
apps/loans/views.py - Loan Views → Loan Service: calls operations
apps/loans/views.py - Loan Forms → Asset Records: selects assets
apps/loans/forms.py - Loan Service → Loan Records: updates loans
apps/loans/services.py - Loan Service → Asset Records: updates asset state
apps/loans/services.py - Loan Service → Audit Service: records events
apps/loans/services.py - Maintenance Views → Role Permissions: checks roles
apps/maintenance/views.py - Maintenance Views → Maintenance Forms: uses forms
apps/maintenance/views.py - Maintenance Views → Maintenance Service: calls operations
apps/maintenance/views.py - Maintenance Forms → Maintenance Records: validates records
apps/maintenance/forms.py - Maintenance Service → Maintenance Records: updates records
apps/maintenance/services.py - Maintenance Service → Asset Records: updates asset state
apps/maintenance/services.py - Report Views → Role Permissions: checks roles
apps/reports/views.py - Report Views → Report Service: requests reports
apps/reports/views.py - Report Service → Asset Records: queries assets
apps/reports/services.py - Report Service → Loan Records: queries loans
apps/reports/services.py - Report Service → Maintenance Records: queries maintenance
apps/reports/services.py - Asset Records → SQL Database: persists records
- Loan Records → SQL Database: persists records
- Maintenance Records → SQL Database: persists records
- User Accounts → SQL Database: persists users