mirror of
https://github.com/thecyberlearn/quantum-ai-v2.git
synced 2026-08-18 22:12:59 +00:00
BREAKING CHANGES: - Move marketplace and agent discovery views from core to agent_base app - Transfer all wallet functionality from core to dedicated wallet app - Move Stripe webhook handling to wallet app for better organization - Consolidate payment system logic under single responsibility NEW STRUCTURE: - core app: Platform pages only (homepage, pricing) - agent_base app: Complete agent marketplace and catalog system - wallet app: Full payment system with Stripe integration - Individual agent apps: Unchanged, self-contained IMPROVEMENTS: - Clean URL namespacing (agent_base:marketplace, wallet:wallet) - Template organization by app responsibility - Removed deprecated CSS files (header.css) - Added utility classes (.hidden) - Updated all template references to new URL structure - Comprehensive CLAUDE.md documentation updates TECHNICAL CHANGES: - Templates moved: marketplace.html, agent_detail.html → agent_base/ - Templates moved: wallet*.html → wallet/ - New files: agent_base/views.py, agent_base/urls.py, wallet/urls.py - Updated main urls.py routing configuration - Fixed Django system checks and namespace conflicts - Verified all functionality with test suite This reorganization follows Django best practices with single responsibility principle, making the codebase more maintainable and scalable. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
19 lines
767 B
Python
19 lines
767 B
Python
from django.contrib import admin
|
|
from .models import {{ agent_name_camel }}Request, {{ agent_name_camel }}Response
|
|
|
|
|
|
@admin.register({{ agent_name_camel }}Request)
|
|
class {{ agent_name_camel }}RequestAdmin(admin.ModelAdmin):
|
|
list_display = ['id', 'user', 'status', 'created_at', 'cost']
|
|
list_filter = ['status', 'created_at']
|
|
search_fields = ['user__email', 'user__username']
|
|
readonly_fields = ['id', 'created_at', 'processed_at']
|
|
ordering = ['-created_at']
|
|
|
|
|
|
@admin.register({{ agent_name_camel }}Response)
|
|
class {{ agent_name_camel }}ResponseAdmin(admin.ModelAdmin):
|
|
list_display = ['id', 'request', 'success', 'created_at']
|
|
list_filter = ['success', 'created_at']
|
|
readonly_fields = ['id', 'created_at']
|
|
ordering = ['-created_at'] |