Quellcode durchsuchen

# feat:文章详情视图处理函数返回增加创建时间字段返回

yang yi vor 1 Woche
Ursprung
Commit
c6005ed528
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      pythonweb/common/views.py

+ 1 - 0
pythonweb/common/views.py

@@ -11,5 +11,6 @@ def article(request,id):
     context = {
         'title':art.title,
         'content':markdown.markdown(art.markdown_content),
+        'created_at':art.created_at,
     }
     return render(request, 'article.html',context)