forked from City-of-Helsinki/smbackend
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #335 from City-of-Turku/feature/iot-app-add-header…
…-and-xml-support Feature/iot app add header and xml support
- Loading branch information
Showing
5 changed files
with
115 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Generated by Django 4.1.13 on 2024-03-13 06:59 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("iot", "0002_add_ordering"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="iotdatasource", | ||
name="headers", | ||
field=models.JSONField( | ||
blank=True, null=True, verbose_name="request headers" | ||
), | ||
), | ||
] |
39 changes: 39 additions & 0 deletions
39
iot/migrations/0004_iotdatasource_is_xml_alter_iotdatasource_headers_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Generated by Django 4.1.13 on 2024-03-13 08:49 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("iot", "0003_iotdatasource_headers"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="iotdatasource", | ||
name="is_xml", | ||
field=models.BooleanField( | ||
default=False, | ||
verbose_name="If True, XML data will be converted to JSON.", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="iotdatasource", | ||
name="headers", | ||
field=models.JSONField( | ||
blank=True, | ||
null=True, | ||
verbose_name='request headers in JSON format, e.g., {"key1": "value1", "key2": "value2"}', | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="iotdatasource", | ||
name="source_name", | ||
field=models.CharField( | ||
max_length=3, | ||
unique=True, | ||
verbose_name="Three letter long identifier for the source. Set the identifier as an argument to the Celery task that fetches the data.", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters