Skip to content

Commit

Permalink
Merge pull request #712 from basedosdados/feat/new-text-field-migration
Browse files Browse the repository at this point in the history
feat: text field for links in Dataset
  • Loading branch information
isabelmeister authored Nov 19, 2024
2 parents 0911ef7 + 2f14a92 commit 5b67528
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.2.16 on 2024-11-13 01:13
# Generated by Django 4.2.16 on 2024-11-13 16:59

from django.db import migrations, models

Expand All @@ -12,7 +12,8 @@ class Migration(migrations.Migration):
operations = [
migrations.AddField(
model_name='dataset',
name='link_url',
field=models.URLField(blank=True, null=True, verbose_name='Link')
name='usage_guide',
field=models.TextField(blank=True, null=True, default='', max_length=255 , verbose_name='Guia de Uso')
),
]

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')
usage_guide = models.TextField(blank=True, null=True, default='', max_length=255 , verbose_name='Guia de Uso')

graphql_nested_filter_fields_whitelist = ["id", "slug"]

Expand Down

0 comments on commit 5b67528

Please sign in to comment.