add login required mixin
This commit is contained in:
parent
c99c3a45d4
commit
e66370b2ad
@ -37,7 +37,7 @@ class LocationIndexView(LoginRequiredMixin, generic.ListView):
|
|||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
class LocationDetailView(generic.DetailView):
|
class LocationDetailView(LoginRequiredMixin, generic.DetailView):
|
||||||
model = Location
|
model = Location
|
||||||
template_name = 'billard/location_detail.html'
|
template_name = 'billard/location_detail.html'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user