mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-12 05:36:02 +00:00
core: display news page in place of index for logged in users
Signed-off-by: Skia <skia@libskia.so>
This commit is contained in:
1 parent
4edb9a78c6
commit
22151ef3b3
1 file changed
+3
@@ -38,6 +38,9 @@ from club.models import Club
|
|||||||
|
|
||||||
|
|
||||||
def index(request, context=None):
|
def index(request, context=None):
|
||||||
|
if request.user.is_authenticated():
|
||||||
|
from com.views import NewsListView
|
||||||
|
return NewsListView.as_view()(request)
|
||||||
return render(request, "core/index.jinja")
|
return render(request, "core/index.jinja")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user