feat(test): added test for models
This commit is contained in:
1 parent
63d63d5e5c
commit
54df9af013
4 files changed
+259
-32
No files matched your search
@@ -0,0 +1,17 @@
|
||||
# Generated by Django 6.0 on 2025-12-11 15:57
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("src", "0003_notification"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="invoice",
|
||||
name="due_date",
|
||||
field=models.DateField(),
|
||||
),
|
||||
]
|
||||
@@ -23,7 +23,7 @@ class Invoice(TimeStampedModel):
|
||||
invoice_number = models.CharField(max_length=20, unique=True, editable=False)
|
||||
amount = models.DecimalField(max_digits=10, decimal_places=2)
|
||||
date_issued = models.DateField(auto_now_add=True)
|
||||
due_date = models.DateField(auto_now=True)
|
||||
due_date = models.DateField()
|
||||
status = models.CharField(max_length=10, choices=STATUS_CHOICES, default="DRAFT")
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
|
||||
Reference in new issue
Block a user