Skip to content

Commit

Permalink
Use callable default for downstream compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed Apr 4, 2024
1 parent 8fa684a commit 3e5aece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/baseframe/forms/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class Form(BaseForm):
__expects__: t.Iterable[str] = ()
__returns__: t.Iterable[str] = ()

form_nonce = bfields.NonceField("Nonce", default='')
form_nonce = bfields.NonceField("Nonce", default=lambda: '')
form_nonce_error = __("This form has already been submitted")

def __init_subclass__(cls, **kwargs: t.Any) -> None:
Expand Down

0 comments on commit 3e5aece

Please sign in to comment.