API Tokens #134
@ -68,7 +68,7 @@ class CreateTokenView(LoginRequiredMixin, SuccessMessageMixin, CreateView):
|
|||||||
form.instance.token_hash = token_hash
|
form.instance.token_hash = token_hash
|
||||||
form.instance.token_begin = token[:5]
|
form.instance.token_begin = token[:5]
|
||||||
|
|
||||||
messages.info(self.request, f'Your new token: {token}')
|
messages.info(self.request, f'{token}')
|
||||||
dfelinto marked this conversation as resolved
Outdated
|
|||||||
return super().form_valid(form)
|
return super().form_valid(form)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user
what is the purpose of wrapping token in an f-string here?