Skip to content

Commit

Permalink
Remove dataset name length limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
niconoe committed Oct 24, 2023
1 parent 35de4ca commit ea9d141
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Current (unreleased)

- Robustness: removed the field size limitation for the dataset name (was 255 chars)

# v1.6.1 (2023-10-02)

- Fix typo in Dutch translation
Expand Down
18 changes: 18 additions & 0 deletions dashboard/migrations/0017_alter_dataset_name.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.5 on 2023-10-24 09:39

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('dashboard', '0016_area_tags'),
]

operations = [
migrations.AlterField(
model_name='dataset',
name='name',
field=models.TextField(),
),
]
2 changes: 1 addition & 1 deletion dashboard/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def as_dict(self) -> dict[str, Any]:


class Dataset(models.Model):
name = models.CharField(max_length=255)
name = models.TextField()
gbif_dataset_key = models.CharField(max_length=255, unique=True)

__original_gbif_dataset_key = None
Expand Down

0 comments on commit ea9d141

Please sign in to comment.