--- /dev/null
+# Generated by Django 3.2.23 on 2025-02-13 16:08
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('teleforma', '0022_seminar_fif_pl'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='conference',
+ name='fif_pl',
+ field=models.BooleanField(default=False, verbose_name='Eligible FIF-PL'),
+ ),
+ ]
class Conference(Displayable, WebclassMixin, ProductCodeMixin, SuggestionsMixin):
+ fif_pl = models.BooleanField(_('Eligible FIF-PL'), default=False)
new = models.BooleanField(_('Nouveau'), default=False)
private = models.BooleanField(_('private'), help_text="Hide in shop", default=False)
upcoming = models.BooleanField("A venir (shop)", default=False)
Get a displayable title
"""
return "%s : %s" % (self.title, date(self.date_begin, "DATE_FORMAT"))
+
+ @property
+ def hours(self):
+ if self.duration:
+ return self.duration.as_seconds() // 3600
+ return 0
def public_url(self):