Add default date on snapshots
This commit is contained in:
parent
495c64fcdc
commit
7895210aea
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ class InvoiceForm(ModelForm):
|
|||
|
||||
class Snapshot(models.Model):
|
||||
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
|
||||
date = models.DateField(unique=True, verbose_name=_("Date"))
|
||||
date = models.DateField(default=date.today, unique=True, verbose_name=_("Date"))
|
||||
value = models.DecimalField(
|
||||
max_digits=12, decimal_places=2, default=0, verbose_name=_("Value")
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue