Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Generated by Django 6.0 on 2026-01-05 17:07

import DOSPORTAL.models
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('DOSPORTAL', '0035_record_time_internal_start'),
]

operations = [
migrations.AlterField(
model_name='record',
name='data_file',
field=models.FileField(blank=True, help_text='Processed spectral file', null=True, upload_to=DOSPORTAL.models.Record.user_directory_path_data, validators=[DOSPORTAL.models._validate_data_file], verbose_name='Log file'),
),
migrations.AlterField(
model_name='record',
name='log_file',
field=models.FileField(blank=True, help_text='Upload recorded data file form your detector', upload_to=DOSPORTAL.models.Record.user_directory_path, validators=[DOSPORTAL.models._validate_log_file], verbose_name='File log'),
),
migrations.AlterField(
model_name='record',
name='metadata_file',
field=models.FileField(blank=True, help_text='Processed metadata file', null=True, upload_to=DOSPORTAL.models.Record.user_directory_path_data, validators=[DOSPORTAL.models._validate_metadata_file], verbose_name='Metadata file'),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Generated by Django 6.0 on 2026-01-05 17:40

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('DOSPORTAL', '0036_alter_record_data_file_alter_record_log_file_and_more'),
]

operations = [
migrations.AlterModelOptions(
name='detectorlogbook',
options={'ordering': ['-created']},
),
migrations.RemoveField(
model_name='record',
name='data_policy',
),
migrations.AddField(
model_name='detectorlogbook',
name='entry_type',
field=models.CharField(choices=[('reset', 'Reset'), ('sync', 'Sync'), ('maintenance', 'Maintenance'), ('note', 'Note'), ('location_update', 'Location update'), ('calibration', 'Calibration'), ('other', 'Other')], default='note', help_text='Category of the logbook entry.', max_length=30),
),
migrations.AddField(
model_name='detectorlogbook',
name='source',
field=models.CharField(choices=[('web', 'Web'), ('api', 'API'), ('qr', 'QR'), ('auto', 'Automatic'), ('other', 'Other')], default='web', help_text='Origin of the logbook entry.', max_length=20),
),
migrations.AlterField(
model_name='record',
name='belongs',
field=models.ForeignKey(choices=[('PR', 'Private'), ('PU', 'Public'), ('NV', 'Non-public')], default='PU', help_text='Data policy of this record. Field can be overridden depending by setting of the organisation, that owns this record.', max_length=2, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='records_owning', to='DOSPORTAL.organization'),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Generated by Django 6.0 on 2026-01-06 21:28

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('DOSPORTAL', '0037_alter_detectorlogbook_options_and_more'),
]

operations = [
migrations.AddField(
model_name='detectorlogbook',
name='altitude',
field=models.FloatField(blank=True, help_text='Altitude of the location in meters', null=True, verbose_name='Altitude'),
),
migrations.AddField(
model_name='detectorlogbook',
name='latitude',
field=models.FloatField(blank=True, help_text='GPS latitude of the location', null=True, verbose_name='Latitude'),
),
migrations.AddField(
model_name='detectorlogbook',
name='longitude',
field=models.FloatField(blank=True, help_text='GPS longitude of the location', null=True, verbose_name='Longitude'),
),
]
Loading
Loading