Skip to content

Commit

Permalink
Catalog license should not be mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelboca committed Jan 6, 2024
1 parent 32b79d8 commit 239fac8
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
23 changes: 23 additions & 0 deletions dcat/migrations/0013_alter_catalog_licence.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 5.0 on 2024-01-06 20:55

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


class Migration(migrations.Migration):
dependencies = [
("dcat", "0012_distribution_external_access_url"),
]

operations = [
migrations.AlterField(
model_name="catalog",
name="licence",
field=models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.SET_NULL,
to="dcat.licencedocument",
),
),
]
2 changes: 1 addition & 1 deletion dcat/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ class Catalog(models.Model):
title = models.CharField(max_length=255)
description = models.TextField()
publisher = models.ForeignKey("Agent", on_delete=models.CASCADE)
licence = models.ForeignKey("LicenceDocument", on_delete=models.SET_NULL, null=True)

# Recommended properties
licence = models.ForeignKey("LicenceDocument", on_delete=models.SET_NULL, blank=True, null=True)
themes = models.ManyToManyField("DataTheme", blank=True)
homepage = models.URLField(blank=True)

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.5
version = 0.0.6
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 239fac8

Please sign in to comment.