Guidelines for reviewing Django pull requests with a focus on Async ORM, Service Layer architecture, and database safety.
To ensure Django pull requests adhere to modern (v6+) standards, prioritizing asynchronous performance, clean business logic separation, and database integrity.
Input: pr_context
Output: logic_notes
Gate: none
On error: abort
Input: view_code, orm_queries
Output: async_findings
Gate: none
On error: continue
async where appropriate.Input: model_code, business_logic
Output: architecture_findings
Gate: none
On error: continue
services.py or similar modules.Input: migrations, querysets
Output: db_findings
Gate: none
On error: continue
select_related and prefetch_related usage.db_default and GeneratedField where database-level logic is safer.Input: auth_code, views
Output: security_findings
Gate: none
On error: continue
PermissionRequiredMixin or custom logic).Input: logging_calls
Output: observability_findings
Gate: none
On error: continue
print or string-based logs.Input: tests, all_findings
Output: review_report
Gate: none
On error: abort