]> git.parisson.com Git - teleforma.git/commitdiff
Set student is_subscribed to true by default
authorYoan Le Clanche <yoanl@pilotsystems.net>
Tue, 14 May 2024 07:38:51 +0000 (09:38 +0200)
committerYoan Le Clanche <yoanl@pilotsystems.net>
Tue, 14 May 2024 07:38:51 +0000 (09:38 +0200)
teleforma/models/core.py

index f84f0ebca3143fc28ec96fb20c5ee7593fb8a45d..d4710530216cfb2e45b7972a311e5e3d94f59457 100755 (executable)
@@ -991,7 +991,7 @@ class StudentMixin(models.Model):
     promo_code = models.CharField(_('promo code'), blank=True, max_length=100)
     date_registered = models.DateTimeField(_('registration date'), auto_now_add=True, null=True, blank=True)
     date_subscribed = models.DateTimeField(_('subscription date'), null=True, blank=True)
-    is_subscribed = models.BooleanField(_('subscribed'))
+    is_subscribed = models.BooleanField(_('subscribed'), default=True)
     confirmation_sent = models.BooleanField(_('confirmation sent'))
     level = models.CharField(_('studying level'), blank=True, max_length=100)