[COM] Make the news visible for non-authenticated user and birthday visible for subriber only

This commit is contained in:
Cyl
2019-08-16 16:59:13 +02:00
parent 38ef13d9b6
commit 9e0c4e70d4
9 changed files with 112 additions and 94 deletions

View File

@ -40,11 +40,9 @@ from club.models import Club
def index(request, context=None):
if request.user.is_authenticated():
from com.views import NewsListView
from com.views import NewsListView
return NewsListView.as_view()(request)
return render(request, "core/index.jinja")
return NewsListView.as_view()(request)
class NotificationList(ListView):