(self, request)
| 34 | |
| 35 | class HomepageView(View): |
| 36 | def get(self, request): |
| 37 | if request.user.is_authenticated: |
| 38 | return redirect('/admin/core/snapshot/') |
| 39 | |
| 40 | if PUBLIC_INDEX: |
| 41 | return redirect('/public') |
| 42 | |
| 43 | return redirect(f'/admin/login/?next={request.path}') |
| 44 | |
| 45 | |
| 46 | class SnapshotView(View): |
no outgoing calls
no test coverage detected