Skip to content

Commit

Permalink
fix: change link field type and constraints in Dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelmeister committed Nov 14, 2024
1 parent 9ae3a25 commit 6ab2f6c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion backend/apps/api/v1/migrations/0051_add_new_field_dataset.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Generated by Django 4.2.16 on 2024-11-13 16:59

from django.db import migrations
from django.db import migrations, models


class Migration(migrations.Migration):
Expand All @@ -10,4 +10,10 @@ class Migration(migrations.Migration):
]

operations = [
migrations.AddField(
model_name='dataset',
name='link',
field=models.TextField(blank=True, null=True, default='', max_length=255 , verbose_name='Link')
),
]

2 changes: 1 addition & 1 deletion backend/apps/api/v1/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ class Dataset(BaseModel):
default=0,
help_text="Number of page views by Google Analytics",
)
link_url = models.URLField(blank=True, null=True, verbose_name='Link')
link_url = models.TextField(blank=True, null=True, default='', max_length=255 , verbose_name='Link')

graphql_nested_filter_fields_whitelist = ["id", "slug"]

Expand Down

0 comments on commit 6ab2f6c

Please sign in to comment.