mirror of
https://github.com/ae-utbm/sith.git
synced 2024-12-23 00:01:16 +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:
parent
4edb9a78c6
commit
22151ef3b3
@ -38,6 +38,9 @@ from club.models import Club
|
||||
|
||||
|
||||
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")
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user