Modified UserAppointmentStatsView to accept POST requests instead of GET and retrieve email from request body rather than from authenticated user. This allows querying appointment statistics for any email address instead of being limited to the current user's email. Changes: - Changed HTTP method from GET to POST - Added email parameter extraction from request.data - Updated filter to use provided email instead of request.user.email |
||
|---|---|---|
| .. | ||
| migrations | ||
| __init__.py | ||
| admin.py | ||
| apps.py | ||
| email_service.py | ||
| models.py | ||
| serializers.py | ||
| tasks.py | ||
| tests.py | ||
| urls.py | ||
| views.py | ||