--- /dev/null
+# Generated by Django 3.2.3 on 2023-01-16 10:33
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('teleforma', '0013_seminarpart_index'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='seminar',
+ name='testimonial_type',
+ field=models.CharField(blank=True, choices=[('elearning', 'E-learning'), ('blended', 'Blended')], max_length=10, null=True),
+ ),
+ ]
duration = DurationField(_('approximative duration'))
professor = models.ManyToManyField('Professor', related_name='seminar',
verbose_name=_('professor'), blank=True)
+ class TestimonialType(models.TextChoices):
+ ELEARNING = 'elearning', "E-learning"
+ BLENDED = "blended", "Blended"
+ testimonial_type = models.CharField("Type d'attestation",
+ choices=TestimonialType.choices,
+ max_length=10,
+ null=True, blank=True)
docs_description = models.ManyToManyField(Document, related_name="seminar_docs_description",
verbose_name=_('description documents'),
blank=True)
context['testimonial'] = testimonials[0]
context['blended'] = False
- if seminar.conference:
+ if seminar.conference and seminar.testimonial_type != seminar.TESTIMONIAL_TYPE.ELEARNING.value:
if seminar.conference.webclass and seminar.conference in self.request.user.auditor.get().conferences.all():
context['blended'] = True
context['conference'] = seminar.conference