-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
52bcbe4
commit b92ed80
Showing
25 changed files
with
343 additions
and
308 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,4 +61,4 @@ services: | |
|
||
volumes: | ||
web-static: | ||
db-data: | ||
db-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
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
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
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 |
---|---|---|
@@ -1,13 +1,17 @@ | ||
from django.contrib import admin | ||
|
||
from plots.models import DataRun, Instrument, PlotData | ||
|
||
|
||
class PlotDataAdmin(admin.ModelAdmin): | ||
readonly_fields=('data_run',) | ||
list_display = ('id', 'data_run', 'data_type', 'timestamp') | ||
readonly_fields = ("data_run",) | ||
list_display = ("id", "data_run", "data_type", "timestamp") | ||
|
||
|
||
class DataRunAdmin(admin.ModelAdmin): | ||
list_display = ('id', 'run_number', 'run_id', 'instrument', 'created_on') | ||
list_display = ("id", "run_number", "run_id", "instrument", "created_on") | ||
|
||
|
||
admin.site.register(DataRun, DataRunAdmin) | ||
admin.site.register(Instrument) | ||
admin.site.register(PlotData, PlotDataAdmin) | ||
admin.site.register(PlotData, PlotDataAdmin) |
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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
from __future__ import unicode_literals | ||
|
||
from django.apps import AppConfig | ||
|
||
|
||
class PlotsConfig(AppConfig): | ||
name = 'plots' | ||
name = "plots" |
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 |
---|---|---|
@@ -1,49 +1,45 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.9.5 on 2016-05-31 20:53 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
] | ||
dependencies = [] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='DataRun', | ||
name="DataRun", | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('run_number', models.IntegerField()), | ||
('run_id', models.TextField()), | ||
('created_on', models.DateTimeField(auto_now_add=True, verbose_name='Timestamp')), | ||
("id", models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")), | ||
("run_number", models.IntegerField()), | ||
("run_id", models.TextField()), | ||
("created_on", models.DateTimeField(auto_now_add=True, verbose_name="Timestamp")), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='Instrument', | ||
name="Instrument", | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=128, unique=True)), | ||
('run_id_type', models.IntegerField(default=0)), | ||
("id", models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")), | ||
("name", models.CharField(max_length=128, unique=True)), | ||
("run_id_type", models.IntegerField(default=0)), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='PlotData', | ||
name="PlotData", | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('data_type', models.IntegerField()), | ||
('data', models.TextField()), | ||
('timestamp', models.DateTimeField(verbose_name='Timestamp')), | ||
('data_run', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='plots.DataRun')), | ||
("id", models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")), | ||
("data_type", models.IntegerField()), | ||
("data", models.TextField()), | ||
("timestamp", models.DateTimeField(verbose_name="Timestamp")), | ||
("data_run", models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to="plots.DataRun")), | ||
], | ||
), | ||
migrations.AddField( | ||
model_name='datarun', | ||
name='instrument', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='plots.Instrument'), | ||
model_name="datarun", | ||
name="instrument", | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to="plots.Instrument"), | ||
), | ||
] |
Oops, something went wrong.