]> git.parisson.com Git - teleforma.git/commitdiff
fir again
authoryomguy <yomguy@parisson.com>
Tue, 24 Jul 2012 23:27:21 +0000 (01:27 +0200)
committeryomguy <yomguy@parisson.com>
Tue, 24 Jul 2012 23:27:21 +0000 (01:27 +0200)
teleforma/views.py

index b2fefddcc08d1c288c267823a7f8da65f229d093..a822e641a3959b91c5ebd8d189820a9343fe34d8 100755 (executable)
@@ -383,7 +383,8 @@ class ConferenceRecordView(FormView):
         context['host'] = status.ip
         context['hidden_fields'] = self.hidden_fields
         content_type = ContentType.objects.get(app_label="teleforma", model="conference")
-        context['room'] = jqchat.models.Room.objects.create(name='new')
+        context['room'] = jqchat.models.Room.objects.get_or_create(name='new',
+                                                                   content_type=content_type)
         return context
 
     def get_success_url(self):