Skip to content

Commit

Permalink
Add forgotten LoginRequiredMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
Compizfox committed Oct 30, 2017
1 parent 32b42cd commit 61090b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/StatsView.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
from django.db import connection
from django.http import JsonResponse
from django.shortcuts import get_object_or_404
from django.contrib.auth.mixins import LoginRequiredMixin

from lib.BetterView import BetterView
from app.models import Event


class StatsView(BetterView):
class StatsView(LoginRequiredMixin, BetterView):
handler_method_names = {
'registrations': {'get': 'get_registrations'}
}
Expand Down

0 comments on commit 61090b7

Please sign in to comment.