mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 11:59:23 +00:00
django2.2: replace removed is_anonymous() and is_authenticated to their now used counterparts
This commit is contained in:
@ -84,7 +84,7 @@ class LaunderetteBookView(CanViewMixin, DetailView):
|
||||
self.object = self.get_object()
|
||||
if "slot_type" in request.POST.keys():
|
||||
self.slot_type = request.POST["slot_type"]
|
||||
if "slot" in request.POST.keys() and request.user.is_authenticated():
|
||||
if "slot" in request.POST.keys() and request.user.is_authenticated:
|
||||
self.subscriber = request.user
|
||||
if self.subscriber.is_subscribed:
|
||||
self.date = dateparse.parse_datetime(request.POST["slot"]).replace(
|
||||
|
Reference in New Issue
Block a user