
# Branch Filtering Audit Report
Generated: 2025-09-16 01:15:25

## Summary
- URLs discovered: 359
- View files checked: 4
- View files verified: 4
- Issues found: 1
- Fixes applied: 1

## Issues Found
- **WARNING** [models]: Models without branch relationship: Branch, RolePermission, DefaultRolePermission, UserPermission, UserAccessLog, PortfolioAssignment, PortfolioPerformance, OTPVerification, LoanProduct, LoanApplication, Loan, PenaltyCharge, Repayment, RolloverRequest, MpesaTransaction, CustomerRequest, RegistrationFee, RegistrationFeePayment, ReportSchedule, ReportExecution, LoanScoring, Notification, SystemSettings, ReportTemplate, GeneratedReport, OfferLetter, Receipt, LoanStatement, DocumentTemplate, EmailTemplate, SMSTemplate, AuditLog, DocumentTag, Document, DocumentShare, Notification, SystemSetting

## Fixes Applied
- utils/branch_middleware.py: Created branch filtering middleware

## URLs Discovered
Total: 359

- admin/ -> django.contrib.admin.sites.index
- admin/login/ -> django.contrib.admin.sites.login
- admin/logout/ -> django.contrib.admin.sites.logout
- admin/password_change/ -> django.contrib.admin.sites.password_change
- admin/password_change/done/ -> django.contrib.admin.sites.password_change_done
- admin/autocomplete/ -> django.contrib.admin.sites.autocomplete_view
- admin/jsi18n/ -> django.contrib.admin.sites.i18n_javascript
- admin/r/<path:content_type_id>/<path:object_id>/ -> django.contrib.contenttypes.views.shortcut
- admin/auth/group/ -> django.contrib.admin.options.changelist_view
- admin/auth/group/add/ -> django.contrib.admin.options.add_view
... and 349 more
