# Refactoring APITokenView
* refactors API Token view * updates tests
This commit is contained in:
@@ -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 = ""
|
||||
|
||||
Reference in New Issue
Block a user