提交 eb97020a 编写于 作者: Y yuenblue

No commit message

No commit message
上级 ebb2f50d
......@@ -4,14 +4,22 @@ from django.views import View
from ..forms.article import ArticleIndexForm
class ArticleIndexView(View):
def get(self, request: HttpRequest,catid=0,status=0):
data={}
form = ArticleIndexForm()
return render(request,'adm/article-index.html',{})
page=request.GET.get('page',1)
catid=request.GET.get('catid',catid)
status=request.GET.get('status',status)
keywords=request.GET.get('keywords','')
data={"catid":catid,"status":catid,'kewords':keywords,'page':page}
form = ArticleIndexForm(data)
if form.is_valid():
return render(request,'adm/article-index.html',{})
else:
pass
def post(self,request: HttpRequest,id=0):
pass
class ArticleEditView(View):
def post(self, request: HttpRequest,id=0):
pass
def get(self,request: HttpRequest,id=0):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册