]> git.parisson.com Git - teleforma.git/commitdiff
fix conf department
authoryomguy <yomguy@parisson.com>
Mon, 5 Nov 2012 15:32:20 +0000 (16:32 +0100)
committeryomguy <yomguy@parisson.com>
Mon, 5 Nov 2012 15:32:20 +0000 (16:32 +0100)
teleforma/views/core.py

index d11f27166981fbf6338515c8741360673d43cdd1..679a9e481dde23fc74ad9240d0427c8119c471a9 100644 (file)
@@ -495,7 +495,7 @@ class ConferenceRecordView(FormView):
 
                 conf.date_begin = datetime.datetime.now()
                 conf.period, c = Period.objects.get_or_create(name=conference['period'])
-                conf.department = conference['department']
+                conf.department, c = Department.objects.get_or_create(name=conference['department'])
                 conf.save()
                 course.save()
                 for stream in conference['streams']: