# Refactoring APITokenView

* refactors API Token view
* updates tests
This commit is contained in:
2025-11-05 10:37:27 +01:00
parent a16fc2eb91
commit 1ac73e4bbb
4 changed files with 18 additions and 21 deletions

View File

@@ -22,6 +22,7 @@ class NewAPITokenModalForm(BaseModalForm):
def __init__(self, *args, **kwargs):
self.template = "modal/modal_form.html"
super().__init__(*args, **kwargs)
self.instance = self.user
self.form_title = _("Generate API Token")
self.form_caption = ""