doorcontrol: Fix typo for AssignNfcCardView.permission_required
All checks were successful
Ruff / ruff (push) Successful in 35s
Test / test (push) Successful in 5m58s

This commit is contained in:
Adam Goldsmith 2024-12-16 18:49:29 -05:00
parent 801017f316
commit 611dd6ea0b

View File

@ -402,7 +402,7 @@ class AssignNfcCardStatus(BaseModel):
class AssignNfcCardView(PermissionRequiredMixin, TemplateView):
# for storage in request.session
ENROLLMENT_STATUS_SESSION_KEY = "unifi_access_enrollment_status"
requires_permission = "doorcontrol.assign_nfc_card"
permission_required = "doorcontrol.assign_nfc_card"
template_name = "doorcontrol/assign_nfc_card.dj.html"
def get_template_names(self) -> list[str]: