Skip to content

Commit a365939

Browse files
committed
remove default for currency in segment_financial_info model - dependency on config may potentially broke migrations
1 parent 12948d3 commit a365939

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-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.2.7 on 2025-11-06 17:08
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('cesnet_service_path_plugin', '0030_alter_segment_location_a_alter_segment_location_b'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='segmentfinancialinfo',
15+
name='charge_currency',
16+
field=models.CharField(max_length=3),
17+
),
18+
]

cesnet_service_path_plugin/models/segment_financial_info.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ class SegmentFinancialInfo(NetBoxModel):
3737
charge_currency = models.CharField(
3838
max_length=3,
3939
choices=get_currency_choices,
40-
default=get_default_currency,
4140
help_text="Currency for all charges",
4241
)
4342

0 commit comments

Comments
 (0)