Skip to content

Commit

Permalink
Add optional landing_page property to Dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelboca committed Jan 5, 2024
1 parent 19a495e commit ab2741f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
17 changes: 17 additions & 0 deletions dcat/migrations/0010_dataset_landing_page.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 5.0 on 2024-01-05 16:06

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("dcat", "0009_alter_agent_type"),
]

operations = [
migrations.AddField(
model_name="dataset",
name="landing_page",
field=models.URLField(blank=True),
),
]
1 change: 1 addition & 0 deletions dcat/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class Dataset(models.Model):
# Optional properties
modified = models.DateField(blank=True, null=True)
issued = models.DateField(blank=True, null=True)
landing_page = models.URLField(blank=True)

def __str__(self):
return self.title
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = django-dcat
version = 0.0.3
version = 0.0.4
description = A Django app that provides a model layer and tools for DCAT applications.
long_description = file: README.rst
url = https://github.com/pdelboca/django-dcat/
Expand Down

0 comments on commit ab2741f

Please sign in to comment.