mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-05-28 02:19:31 +02:00
Merge pull request #39 from eitchtee/dev
feat(transactions): make description optional
This commit is contained in:
@@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 5.1.4 on 2025-01-14 12:55
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('transactions', '0026_transactionentity_active'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='transaction',
|
||||||
|
name='description',
|
||||||
|
field=models.CharField(blank=True, max_length=500, verbose_name='Description'),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -101,7 +101,9 @@ class Transaction(models.Model):
|
|||||||
validators=[validate_non_negative, validate_decimal_places],
|
validators=[validate_non_negative, validate_decimal_places],
|
||||||
)
|
)
|
||||||
|
|
||||||
description = models.CharField(max_length=500, verbose_name=_("Description"))
|
description = models.CharField(
|
||||||
|
max_length=500, verbose_name=_("Description"), blank=True
|
||||||
|
)
|
||||||
notes = models.TextField(blank=True, verbose_name=_("Notes"))
|
notes = models.TextField(blank=True, verbose_name=_("Notes"))
|
||||||
category = models.ForeignKey(
|
category = models.ForeignKey(
|
||||||
TransactionCategory,
|
TransactionCategory,
|
||||||
|
|||||||
Reference in New Issue
Block a user