Skip to content

Commit

Permalink
Added field: "Validated by Openred" to DeviceModel
Browse files Browse the repository at this point in the history
  • Loading branch information
frasanz committed Oct 16, 2024
1 parent 869e1f5 commit 377f4e8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions devices/migrations/0005_devicemodel_validatedbyopenred.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.16 on 2024-10-07 12:18

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('devices', '0004_devicemodel_picture'),
]

operations = [
migrations.AddField(
model_name='devicemodel',
name='validatedByOpenRed',
field=models.BooleanField(default=False),
),
]
1 change: 1 addition & 0 deletions devices/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class DeviceModel(models.Model):
manufacturer = models.CharField(max_length=100) # Manufacturer of the device
version = models.CharField(max_length=50, blank=True, null=True) # Optional version of the device model
technology = models.CharField(max_length=100, blank=True, null=True) # Optional technology used in the device
validatedByOpenRed = models.BooleanField(default=False) # Indicates if the device model has been validated by OpenRed
description = models.TextField(blank=True, null=True) # Optional description of the device
picture = models.ImageField(upload_to='device_pictures/', blank=True, null=True) # Optional picture of the device
max_radiation_range = models.FloatField(help_text="Maximum radiation range the device can measure (in appropriate units)")
Expand Down
1 change: 1 addition & 0 deletions frontend/templates/frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ <h5>Select Date Range</h5>
container: 'map-container',
mapboxApiAccessToken: MAPBOX_ACCESS_TOKEN,
mapStyle: 'mapbox://styles/mapbox/light-v9',
// mapStyle: 'mapbox://styles/frasanz/cm22xixvn002501o20b0ehcdw',
initialViewState: {
longitude: -0.88,
latitude: 41.64,
Expand Down

0 comments on commit 377f4e8

Please sign in to comment.