Handles GET requests for the M3U dashboard. Renders the m3u.html template with M3U account data.
(self, request, *args, **kwargs)
| 12 | @method_decorator(login_required, name='dispatch') |
| 13 | class M3UDashboardView(View): |
| 14 | def get(self, request, *args, **kwargs): |
| 15 | """ |
| 16 | Handles GET requests for the M3U dashboard. |
| 17 | Renders the m3u.html template with M3U account data. |
| 18 | """ |
| 19 | m3u_accounts = M3UAccount.objects.all() |
| 20 | return render(request, 'm3u/m3u.html', {'m3u_accounts': m3u_accounts}) |
| 21 | |
| 22 | def post(self, request, *args, **kwargs): |
| 23 | """ |
no outgoing calls
no test coverage detected