core: display news page in place of index for logged in users

Signed-off-by: Skia <skia@libskia.so>
This commit is contained in:
Skia 2017-09-01 12:33:23 +02:00
parent 4edb9a78c6
commit 22151ef3b3

View File

@ -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")