mirror of
https://github.com/thecyberlearn/quantum-ai.git
synced 2026-08-18 09:53:00 +00:00
- Replace objects.create() with get_or_create() to prevent duplicate responses - Handle case where response already exists by updating it instead of creating new one - Fix both success and error response creation - Prevents 'UNIQUE constraint failed: data_analyzer_responses.request_id' error Issue: OneToOneField relationship allows only one response per request Solution: Use get_or_create() pattern to handle existing responses gracefully |
||
|---|---|---|
| .. | ||
| migrations | ||
| templates/data_analyzer | ||
| __init__.py | ||
| admin.py | ||
| apps.py | ||
| models.py | ||
| processor.py | ||
| urls.py | ||
| views.py | ||