community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r1693041 - /comdev/tools/events_list/views.py
Date Tue, 28 Jul 2015 09:11:13 GMT
Author: rgardler
Date: Tue Jul 28 09:11:13 2015
New Revision: 1693041

URL: http://svn.apache.org/r1693041
Log:
when toggling a groups applicability, toggle their events too

Modified:
    comdev/tools/events_list/views.py

Modified: comdev/tools/events_list/views.py
URL: http://svn.apache.org/viewvc/comdev/tools/events_list/views.py?rev=1693041&r1=1693040&r2=1693041&view=diff
==============================================================================
--- comdev/tools/events_list/views.py (original)
+++ comdev/tools/events_list/views.py Tue Jul 28 09:11:13 2015
@@ -82,6 +82,11 @@ def toggleGroupNA(request, id):
     log.action_type = Log.GROUP_UPDATE
     log.save()
 
+    events = Event.objects.filter(group = group)
+    for event in events:
+        event.is_applicable = group.is_applicable
+        event.save()
+
     return redirect('events_list.views.groupIndex')
 
 def personIndex(request):



Mime
View raw message