diff --git a/port/models.py b/port/models.py index 0fc065d..ceed1a3 100644 --- a/port/models.py +++ b/port/models.py @@ -8,6 +8,14 @@ from phonenumber_field.modelfields import PhoneNumberField from django.core.exceptions import ValidationError from django.utils.translation import gettext_lazy as _ +# MODELS + +# Warning : +# If you modify a Model sub-class attribute, you +# should then run : +# ./manage.py makemigrations +# ./manage.py migrate + def validate_positive(value): if value < 0: raise ValidationError( @@ -145,6 +153,8 @@ class SailsOn(Model): is_guest = BooleanField() is_pet = BooleanField() + present = BooleanField(default=True) + class BoatInsurance(Model): contract = IntegerField(blank=True,null=True) date = DateTimeField(auto_now_add=True)