Skip to content

Commit 9dcfee4

Browse files
committed
refactor: remove unique constraint from finance category name
1 parent 109c0ec commit 9dcfee4

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 5.1.4 on 2026-01-12 22:27
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('finance', '0002_alter_financialtransaction_amount'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='financialcategory',
15+
name='name',
16+
field=models.CharField(max_length=150),
17+
),
18+
]

backend/modules/finance/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class FinancialCategory(models.Model):
4747
null=True,
4848
)
4949

50-
name = models.CharField(max_length=150, unique=True)
50+
name = models.CharField(max_length=150)
5151
is_active = models.BooleanField(default=True)
5252

5353

0 commit comments

Comments
 (0)