mirror of
https://github.com/wassname/flask-security.git
synced 2026-07-21 12:30:10 +08:00
Another fix to docs
This commit is contained in:
@@ -76,9 +76,9 @@ register form or override validators::
|
||||
register_form=ExtendedRegisterForm)
|
||||
|
||||
For the ``register_form`` and ``confirm_register_form``, each field is
|
||||
passed to the user model when a user is created. In the above case,
|
||||
the ``first_name`` and ``last_name`` fields are passed directly to the
|
||||
model, so the model should look like::
|
||||
passed to the user model (as kwargs) when a user is created. In the
|
||||
above case, the ``first_name`` and ``last_name`` fields are passed
|
||||
directly to the model, so the model should look like::
|
||||
|
||||
class User(db.Model, UserMixin):
|
||||
id = db.Column(db.Integer, primary_key=True)
|
||||
|
||||
Reference in New Issue
Block a user