]> git.parisson.com Git - teleforma.git/commitdiff
fix public_id
authoryomguy <yomguy@parisson.com>
Tue, 24 Jul 2012 22:48:13 +0000 (00:48 +0200)
committeryomguy <yomguy@parisson.com>
Tue, 24 Jul 2012 22:48:13 +0000 (00:48 +0200)
teleforma/views.py

index 96bdba2cf95b5f873f5e25d5a25ed33f87b065c6..430cc24ab5b9885e87c839f7180013929b18be58 100755 (executable)
@@ -346,8 +346,8 @@ class ConferenceView(DetailView):
         return context
 
     @jsonrpc_method('teleforma.stop_conference')
-    def stop(request, code):
-        conference = Conference.objects.get(code=code)
+    def stop(request, public_id):
+        conference = Conference.objects.get(public_id=public_id)
         conference.date_end = datetime.datetime.now()
         conference.save()
         for stream in conference.livestream.all():