Skip to content

Commit

Permalink
docs: Fix small documentation issues (#1755)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Vaz Gaspar <danielvazgaspar@gmail.com>
  • Loading branch information
Dosenpfand and dpgaspar authored Dec 10, 2021
1 parent afdbf69 commit 6261537
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/addons.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ AddOn development
=================

Using AddOn's with the framework it is a great way to develop your application
and make public openSource contributions to the community.
and make public open source contributions to the community.

With it you can use a more modular design on your application, you can add functionality,
views and models that you can build independently and install or uninstall (using different versions).
Expand Down Expand Up @@ -48,7 +48,7 @@ A very simple manager would look something like this::
import logging

from flask_appbuilder.basemanager import BaseManager
from flask_babelpkg import lazy_gettext as _
from flask_babel import lazy_gettext as _

from .model import MyModel
from .views import FirstModelView1
Expand Down
4 changes: 2 additions & 2 deletions docs/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ First extend the User Model (create a sec_models.py file)::
extra = Column(String(256))


Next define a new User view, just like the default User view but with the extra column (create a sec_view.py)
Next define a new User view, just like the default User view but with the extra column (create a sec_views.py)
If you're using:

:AUTH_DB: Extend UserDBModelView
Expand All @@ -750,7 +750,7 @@ If you're using:
So using AUTH_DB::

from flask_appbuilder.security.views import UserDBModelView
from flask_babelpkg import lazy_gettext
from flask_babel import lazy_gettext

class MyUserDBModelView(UserDBModelView):
"""
Expand Down
2 changes: 1 addition & 1 deletion docs/user_registration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ first.

Enabling and using the default implementation is easy just configure the following global config keys on config.py::

AUTH_TYPE = 1 # Database Authentication
AUTH_TYPE = AUTH_DB
AUTH_USER_REGISTRATION = True
AUTH_USER_REGISTRATION_ROLE = 'Public'
# Config for Flask-WTF Recaptcha necessary for user registration
Expand Down
2 changes: 1 addition & 1 deletion examples/oauth/app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def form_post(self, form):


"""
Example of an decorator to override the OAuth provider information getter
Example of a decorator to override the OAuth provider information getter
@appbuilder.sm.oauth_user_info_getter
def get_oauth_user_info(sm, provider, response=None):
Expand Down

0 comments on commit 6261537

Please sign in to comment.