Restore the original report_type-driven endpoint (users/tickets picked
individually via serializer + orchestrator) that was replaced by the
bundled zip export in b293509, on top of current master.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
8 lines
320 B
Python
8 lines
320 B
Python
from rest_framework import serializers
|
|
|
|
from apps.reports.services.orchestrator import ReportOrchestrator
|
|
|
|
|
|
class ReportGenerateSerializer(serializers.Serializer):
|
|
report_type = serializers.ChoiceField(choices=ReportOrchestrator.available_reports())
|
|
filters = serializers.DictField(required=False, default=dict)
|