Skip to content

Commit 95577d4

Browse files
committed
add article function
1 parent 7a447df commit 95577d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/article/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
@article.route('/')
99
def index():
10-
list =Article.query.all()
10+
list =Article.query.join(ArticleType).all()
1111
return render_template('article_list.html',list = list)
1212
@article.route('/create',methods=['GET','POST'])
1313
def create():

0 commit comments

Comments
 (0)