summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerghei MIHAI <smihai@entrouvert.com>2014-09-23 14:35:49 (GMT)
committerSerghei MIHAI <smihai@entrouvert.com>2014-09-23 14:35:49 (GMT)
commit68a9fcc45a2590fda5a5c4bec01873f078a46fd1 (patch)
treedfa78ec9927a0e13c8043dbbae67b2680f09f8c6
parentfc9041128d52c0c7b4713386c7a26a8a18127e51 (diff)
downloadcalebasse-68a9fcc45a2590fda5a5c4bec01873f078a46fd1.zip
calebasse-68a9fcc45a2590fda5a5c4bec01873f078a46fd1.tar.gz
calebasse-68a9fcc45a2590fda5a5c4bec01873f078a46fd1.tar.bz2
agenda: availability bar doesn't care about events' services
-rw-r--r--calebasse/agenda/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/calebasse/agenda/views.py b/calebasse/agenda/views.py
index 62bb824..d47b19a 100644
--- a/calebasse/agenda/views.py
+++ b/calebasse/agenda/views.py
@@ -632,12 +632,12 @@ class AjaxDisponibilityColumnView(TemplateView):
order_by('start_date')
events = Event.objects.for_today(self.date) \
.exclude(event_type_id=1) \
- .filter(participants=worker, services=self.service) \
+ .filter(participants=worker) \
.order_by('start_datetime') \
.select_related() \
.prefetch_related('participants', 'exceptions')
eventswithact = EventWithAct.objects.for_today(self.date) \
- .filter(participants=worker, services=self.service) \
+ .filter(participants=worker) \
.order_by('start_datetime') \
.select_related() \
.prefetch_related('participants', 'exceptions',