1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-22 23:04:21 +00:00

🔧 Use a JSONField for DataSource settings

This commit is contained in:
Steffo 2021-04-05 01:40:05 +02:00
parent 4a8ca4b384
commit c7523e93ac
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -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):