mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 14:54:22 +00:00
🔧 Use a JSONField for DataSource settings
This commit is contained in:
parent
c2cb1de7d9
commit
ce8a5f722d
1 changed files with 1 additions and 3 deletions
|
@ -16,9 +16,7 @@ class DataSource(models.Model):
|
||||||
pandasdmx_id = models.CharField("Internal pandasdmx source id", max_length=16, primary_key=True)
|
pandasdmx_id = models.CharField("Internal pandasdmx source id", max_length=16, primary_key=True)
|
||||||
builtin = models.BooleanField("If the source is builtin in pandasdmx")
|
builtin = models.BooleanField("If the source is builtin in pandasdmx")
|
||||||
|
|
||||||
name = models.CharField("Full name of the data source", max_length=512)
|
settings = models.JSONField("Source info to pass to pandasdmx if the source is not builtin")
|
||||||
documentation_url = models.URLField("Documentation URL provided by the data source")
|
|
||||||
api_url = models.URLField("API URL where the statistical data can be requested")
|
|
||||||
|
|
||||||
|
|
||||||
class Project(models.Model):
|
class Project(models.Model):
|
||||||
|
|
Loading…
Reference in a new issue