How flyybnjj/sgr works
SGR is a Django municipal case-management system for La Serena. Its central workflow is staff sign-in and delegation-scoped access, finding or registering a resident, recording an attention or follow-up action, and tracking progress against goals; staff can then review reports and export them. Separate capabilities cover user/role administration, delegations and catalogs, account recovery and passkeys, and commitment letters. The graph combines README-described capabilities with relationships visible in excerpts or the source index; unsampled modules are represented by their exact paths, without assuming their internal wiring.
Main entry points: atenciones/views.py Attention workflow · models.py Attention and action records · usuarios/views.py Account workflows · forms.py Attention forms
Components 21
Identity and Access
- Role access
config/access.py - Users and roles
usuarios/models.py - Account workflows
usuarios/views.py - Passkeys
usuarios/passkeys.py
Resident Operations
- Resident registry
vecinos/models.py - Attention workflow
atenciones/views.py - Attention and action records
atenciones/models.py - Attention forms
atenciones/forms.py - Action evidence
atenciones/evidence.py - Supporting documents
atenciones/documents.py - Commitment letters
cartas/views.py
Territorial Administration
- Delegations and absences
territorial/models.py - Community organizations
organizaciones/models.py
Goals and Reporting
- Goal calculations
atenciones/goals.py - Attention reports
atenciones/reports.py - Dashboard updates
dashboard/updates.py
Shared Services
- Input validation
config/validators.py - Resident search
config/rut_search.py - Excel export
config/excel_utils.py
Other components
- Municipal staff
- Relational database
Connections 31
- Municipal staff → Account workflows: signs in
README.md - Account workflows → Role access: checks permissions
usuarios/views.py - Account workflows → Users and roles: manages accounts
usuarios/views.py - Account workflows → Passkeys: uses passkeys
usuarios/views.py - Municipal staff → Attention workflow: records attention
README.md - Attention workflow → Role access: checks permissions
atenciones/views.py - Attention workflow → Resident registry: searches residents
atenciones/views.py - Attention workflow → Resident search: filters residents
atenciones/views.py - Attention workflow → Attention forms: builds forms
atenciones/views.py - Attention workflow → Attention and action records: records actions
atenciones/views.py - Attention forms → Action evidence: validates photos
atenciones/forms.py - Attention forms → Supporting documents: validates documents
atenciones/forms.py - Attention forms → Community organizations: selects organization
atenciones/forms.py - Attention workflow → Delegations and absences: scopes records
atenciones/views.py - Attention workflow → Goal calculations: uses goal logic
atenciones/views.py - Attention workflow → Attention reports: exports actions
atenciones/views.py - Attention workflow → Excel export: exports sheets
atenciones/views.py - Municipal staff → Commitment letters: manages letters
README.md - Commitment letters → Attention and action records: uses attention data
cartas/views.py - Municipal staff → Dashboard updates: reviews progress
README.md - Dashboard updates → Role access: checks permissions
dashboard/updates.py - Dashboard updates → Relational database: reads updates
dashboard/updates.py - Attention and action records → Relational database: stores records
atenciones/models.py - Resident registry → Relational database: stores residents
vecinos/models.py - Users and roles → Relational database: stores accounts
usuarios/models.py - Delegations and absences → Relational database: stores territory
territorial/models.py - Community organizations → Relational database: stores organizations
organizaciones/models.py - Attention workflow → Input validation: validates input
atenciones/views.py - Users and roles → Delegations and absences: assigns delegation
usuarios/models.py - Goal calculations → Attention and action records: calculates from actions
atenciones/models.py - Attention reports → Attention and action records: reports on actions