Skip to content

Commit f450671

Browse files
committed
refactor srm relation orcabus id
1 parent 8a98a0c commit f450671

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Generated by Django 5.1.4 on 2025-01-22 11:09
2+
3+
import sequence_run_manager.fields
4+
from django.db import migrations
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
(
11+
"sequence_run_manager",
12+
"0003_alter_comment_orcabus_id_alter_sequence_orcabus_id_and_more",
13+
),
14+
]
15+
16+
operations = [
17+
migrations.AlterField(
18+
model_name="comment",
19+
name="association_id",
20+
field=sequence_run_manager.fields.OrcaBusIdField(),
21+
),
22+
]

lib/workload/stateless/stacks/sequence-run-manager/sequence_run_manager/models/comment.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class CommentManager(OrcaBusBaseManager):
1515
class Comment(OrcaBusBaseModel):
1616
orcabus_id = OrcaBusIdField(primary_key=True, prefix='cmt')
1717
comment = models.TextField(null=False, blank=False)
18-
association_id = models.CharField(max_length=255, null=False, blank=False) # comment association object id
18+
association_id = OrcaBusIdField(prefix='') # comment association object id
1919
created_at = models.DateTimeField(auto_now_add=True)
2020
created_by = models.CharField(max_length=255, null=False, blank=False)
2121
updated_at = models.DateTimeField(auto_now=True)

0 commit comments

Comments
 (0)