mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-12 05:36:02 +00:00
Change is_subscriber and was_subscriber to cached_properties
This commit is contained in:
1 parent
11e05050f7
commit
dea234f98a
10 files changed
+17
-15
No files matched your search
@@ -60,7 +60,7 @@ class LaunderetteBookView(CanViewMixin, DetailView):
|
||||
self.slot_type = request.POST['slot_type']
|
||||
if 'slot' in request.POST.keys() and request.user.is_authenticated():
|
||||
self.subscriber = request.user
|
||||
if self.subscriber.is_subscribed():
|
||||
if self.subscriber.is_subscribed:
|
||||
self.date = dateparse.parse_datetime(request.POST['slot']).replace(tzinfo=pytz.UTC)
|
||||
if self.slot_type == "WASHING":
|
||||
if self.check_slot(self.slot_type):
|
||||
|
||||
Reference in new issue
Block a user