File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ _to see this in a real world example take a look at my other projects_ [Flask-Cm
19
19
- basemodels.py
20
20
- with a sqlalchemy compatible BaseMixin class
21
21
- provides many useful CRUD operations, IE: model.save(), model.delete()
22
- - BaseMixin generates __ tablename__ automaticlly
23
- - BaseMixin adds an auto incrementing ` id ` field, as the primary_key to each model
24
- - BaseMixin.session is current model classes session
25
- - BaseMixin.engine is the current db engine
26
- - BaseMixin.query is the models sqlalchemy query from its session
27
- - BaseMixin.get_all() -> function to return all of a model
28
- - BaseMixin.get(* args,** kwargs) -> get single model by attr values, mainly for id=x
22
+ - ` BaseMixin ` generates ` __tablename__ ` automaticlly
23
+ - ` BaseMixin ` adds an auto incrementing ` id ` field, as the primary_key to each model
24
+ - ` BaseMixin.session ` is current model classes session
25
+ - ` BaseMixin.engine ` is the current db engine
26
+ - ` BaseMixin.query ` is the models sqlalchemy query from its session
27
+ - ` BaseMixin.get_all() ` ` -> ` function to return all of a model
28
+ - ` BaseMixin.get(*args,**kwargs) ` ` -> ` get single model by attr values, mainly for id=x
29
29
30
30
- baseviews.py
31
31
- with a BaseView class that is subclassed from Flask.views.MethodView to allow easy definition of view responses to get and post requests.
You can’t perform that action at this time.
0 commit comments