Skip to content

Commit

Permalink
Updates defaults for Insurance types
Browse files Browse the repository at this point in the history
  • Loading branch information
dhatwalia committed Aug 30, 2021
1 parent 17c12d0 commit 39b54dc
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 11 deletions.
22 changes: 11 additions & 11 deletions allauthdemo/auth/insurance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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')
Expand All @@ -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')
Expand All @@ -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)
Expand Down Expand Up @@ -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')
Expand Down
68 changes: 68 additions & 0 deletions allauthdemo/auth/migrations/0006_auto_20210830_1212.py
Original file line number Diff line number Diff line change
@@ -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),
),
]

0 comments on commit 39b54dc

Please sign in to comment.