Skip to content

Commit

Permalink
fix: models
Browse files Browse the repository at this point in the history
  • Loading branch information
Shavkatjon-O committed Sep 12, 2024
1 parent 546cdc0 commit 719a0ec
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
17 changes: 17 additions & 0 deletions apps/applications/migrations/0002_alter_application_options.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 5.0.7 on 2024-09-12 11:06

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('applications', '0001_initial'),
]

operations = [
migrations.AlterModelOptions(
name='application',
options={'ordering': ['-created_at'], 'verbose_name': 'Application', 'verbose_name_plural': 'Applications'},
),
]
18 changes: 18 additions & 0 deletions apps/loans/migrations/0002_loan_is_over_due.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.0.7 on 2024-09-12 11:06

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('loans', '0001_initial'),
]

operations = [
migrations.AddField(
model_name='loan',
name='is_over_due',
field=models.BooleanField(default=False),
),
]
2 changes: 2 additions & 0 deletions apps/loans/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ class Loan(BaseModel):
null=True,
)

is_over_due = models.BooleanField(default=False)

def __str__(self):
return f"Loan {self.reference_number} - {self.client} - {self.amount_disbursed} {self.currency}"

Expand Down

0 comments on commit 719a0ec

Please sign in to comment.