Skip to content

Commit

Permalink
fixes bug where API sample endpoint would error due to long descripti…
Browse files Browse the repository at this point in the history
…ons in ENA
  • Loading branch information
SandyRogers committed Mar 7, 2024
1 parent 5d2a690 commit 0423991
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Generated by Django 4.2 on 2024-03-07 11:22

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("holofood", "0035_alter_viralfragment_viral_type"),
]

operations = [
migrations.AlterField(
model_name="animalstructureddatum",
name="measurement",
field=models.CharField(max_length=300),
),
migrations.AlterField(
model_name="samplestructureddatum",
name="measurement",
field=models.CharField(max_length=300),
),
]
2 changes: 1 addition & 1 deletion holofood/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ class AbstractStructuredDatum(models.Model):
source = models.CharField(choices=SOURCE_CHOICES, max_length=15)

marker = models.ForeignKey(SampleMetadataMarker, on_delete=models.CASCADE)
measurement = models.CharField(max_length=200)
measurement = models.CharField(max_length=300)
units = models.CharField(max_length=100, null=True, blank=True)

partner_name = models.CharField(max_length=100, null=True, blank=True)
Expand Down

0 comments on commit 0423991

Please sign in to comment.