Coverage for benefits/enrollment_switchio/admin.py: 100%
6 statements
« prev ^ index » next coverage.py v7.8.0, created at 2025-05-14 01:41 +0000
« prev ^ index » next coverage.py v7.8.0, created at 2025-05-14 01:41 +0000
1from django.contrib import admin
3from benefits.enrollment_switchio import models
6@admin.register(models.SwitchioConfig)
7class SwitchioConfigAdmin(admin.ModelAdmin):
8 def has_module_permission(self, request):
9 """
10 This controls whether the model shows up in the main list of models.
11 """
12 # we don't want to display SwitchioConfig on the main list.
13 # the user should view it from the TransitAgency.
14 return False