Skip to content

Commit

Permalink
Merge pull request #709 from basedosdados/feat/new-text-field-migration
Browse files Browse the repository at this point in the history
feat: new url field in v1 dataset
  • Loading branch information
isabelmeister authored Nov 13, 2024
2 parents c6053bf + 47b815f commit 0911ef7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 21 deletions.
18 changes: 18 additions & 0 deletions backend/apps/api/v1/migrations/0051_add_dataset_new_urlfield.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.16 on 2024-11-13 01:13

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('v1', '0050_table_is_deprecated'),
]

operations = [
migrations.AddField(
model_name='dataset',
name='link_url',
field=models.URLField(blank=True, null=True, verbose_name='Link')
),
]
21 changes: 0 additions & 21 deletions backend/apps/api/v1/migrations/0051_add_textfield_all_models.py

This file was deleted.

1 change: 1 addition & 0 deletions backend/apps/api/v1/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +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')

graphql_nested_filter_fields_whitelist = ["id", "slug"]

Expand Down

0 comments on commit 0911ef7

Please sign in to comment.