From ce8a5f722d7dfe5d36c5a74c7492786faf17bb8e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 5 Apr 2021 01:40:05 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Use=20a=20JSONField=20for=20Data?= =?UTF-8?q?Source=20settings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sophon/core/models.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sophon/core/models.py b/sophon/core/models.py index cc02cd5..39dbf7b 100644 --- a/sophon/core/models.py +++ b/sophon/core/models.py @@ -16,9 +16,7 @@ class DataSource(models.Model): pandasdmx_id = models.CharField("Internal pandasdmx source id", max_length=16, primary_key=True) builtin = models.BooleanField("If the source is builtin in pandasdmx") - name = models.CharField("Full name of the data source", max_length=512) - documentation_url = models.URLField("Documentation URL provided by the data source") - api_url = models.URLField("API URL where the statistical data can be requested") + settings = models.JSONField("Source info to pass to pandasdmx if the source is not builtin") class Project(models.Model):