diff --git a/allauthdemo/auth/insurance.py b/allauthdemo/auth/insurance.py index 218cbb7..032c222 100644 --- a/allauthdemo/auth/insurance.py +++ b/allauthdemo/auth/insurance.py @@ -32,7 +32,7 @@ class Automotive(models.Model): company = models.CharField(max_length=25, default='The Co-operators') start = models.DateField(default=datetime.date.today) end = models.DateField(default=datetime.date.today) - monthly_premium = models.FloatField(default=150) + monthly_premium = models.FloatField(default=230) class Meta: verbose_name = ('automotive') @@ -55,7 +55,7 @@ class Disability(models.Model): # Contract start = models.DateField(default=datetime.date.today) end = models.DateField(default=datetime.date.today) - monthly_premium = models.FloatField(default=100) + monthly_premium = models.FloatField(default=120) class Meta: verbose_name = ('disability') @@ -79,7 +79,7 @@ class Health(models.Model): company = models.CharField(max_length=25, default='Anthem') start = models.DateField(default=datetime.date.today) end = models.DateField(default=datetime.date.today) - monthly_premium = models.FloatField(default=150) + monthly_premium = models.FloatField(default=236) class Meta: verbose_name = ('health') @@ -95,13 +95,13 @@ class House(models.Model): dwelling = models.FloatField(default=10000) contents = models.FloatField(default=10000) personal_liability = models.FloatField(default=10000) - flood = models.FloatField(blank=True, null=True) - windstorm = models.FloatField(blank=True, null=True) - sewer_backup = models.FloatField(blank=True, null=True) - scheduled_articles = models.FloatField(blank=True, null=True) - equipment_breakdown = models.FloatField(blank=True, null=True) - guaranteed_replacement = models.FloatField(blank=True, null=True) - earthquake = models.FloatField(blank=True, null=True) + flood = models.FloatField(default=0) + windstorm = models.FloatField(default=0) + sewer_backup = models.FloatField(default=0) + scheduled_articles = models.FloatField(default=0) + equipment_breakdown = models.FloatField(default=0) + guaranteed_replacement = models.FloatField(default=0) + earthquake = models.FloatField(default=0) # Contract start = models.DateField(default=datetime.date.today) @@ -140,7 +140,7 @@ class Life(models.Model): # Contract start = models.DateField(default=datetime.date.today) end = models.DateField(default=datetime.date.today) - next_premium = models.FloatField(default=1000) + next_premium = models.FloatField(default=125) class Meta: verbose_name = ('life') diff --git a/allauthdemo/auth/migrations/0006_auto_20210830_1212.py b/allauthdemo/auth/migrations/0006_auto_20210830_1212.py new file mode 100644 index 0000000..93ef9af --- /dev/null +++ b/allauthdemo/auth/migrations/0006_auto_20210830_1212.py @@ -0,0 +1,68 @@ +# Generated by Django 2.2.18 on 2021-08-30 12:12 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('allauthdemo_auth', '0005_auto_20210726_1703'), + ] + + operations = [ + migrations.AlterField( + model_name='automotive', + name='monthly_premium', + field=models.FloatField(default=230), + ), + migrations.AlterField( + model_name='disability', + name='monthly_premium', + field=models.FloatField(default=120), + ), + migrations.AlterField( + model_name='health', + name='monthly_premium', + field=models.FloatField(default=236), + ), + migrations.AlterField( + model_name='house', + name='earthquake', + field=models.FloatField(default=0), + ), + migrations.AlterField( + model_name='house', + name='equipment_breakdown', + field=models.FloatField(default=0), + ), + migrations.AlterField( + model_name='house', + name='flood', + field=models.FloatField(default=0), + ), + migrations.AlterField( + model_name='house', + name='guaranteed_replacement', + field=models.FloatField(default=0), + ), + migrations.AlterField( + model_name='house', + name='scheduled_articles', + field=models.FloatField(default=0), + ), + migrations.AlterField( + model_name='house', + name='sewer_backup', + field=models.FloatField(default=0), + ), + migrations.AlterField( + model_name='house', + name='windstorm', + field=models.FloatField(default=0), + ), + migrations.AlterField( + model_name='life', + name='next_premium', + field=models.FloatField(default=125), + ), + ]