-
Notifications
You must be signed in to change notification settings - Fork 63
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 #119 from usnistgov/4.2.0.dev
4.2.0.dev
- Loading branch information
Showing
48 changed files
with
877 additions
and
145 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
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Generated by Django 3.2.13 on 2022-06-15 19:37 | ||
|
||
from django.db import migrations, models | ||
|
||
import NEMO.utilities | ||
from NEMO.migrations_utils import create_news_for_version | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('NEMO', '0039_version_4_1_0'), | ||
] | ||
|
||
def new_version_news(apps, schema_editor): | ||
create_news_for_version(apps, "4.2.0", "") | ||
|
||
operations = [ | ||
migrations.RunPython(new_version_news), | ||
migrations.AddField( | ||
model_name='staffabsence', | ||
name='manager_note', | ||
field=models.TextField(blank=True, help_text='A note only visible to managers.', null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='staffabsence', | ||
name='description', | ||
field=models.TextField(blank=True, help_text='The absence description. This will be visible to anyone.', null=True), | ||
), | ||
migrations.CreateModel( | ||
name='ChemicalHazard', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=200)), | ||
('display_order', models.IntegerField(help_text="Chemical hazards are sorted according to display order. The lowest value category is displayed first in the 'Safety data sheet' page.")), | ||
('logo', models.ImageField(blank=True, help_text='The logo for this hazard', upload_to=NEMO.utilities.get_hazard_logo_filename)), | ||
], | ||
options={ | ||
'ordering': ['display_order', 'name'], | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='Chemical', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=200)), | ||
('document', models.FileField(blank=True, null=True, upload_to=NEMO.utilities.get_chemical_document_filename)), | ||
('url', models.CharField(blank=True, max_length=200, null=True, verbose_name='URL')), | ||
('keywords', models.TextField(blank=True, null=True)), | ||
('hazards', models.ManyToManyField(blank=True, help_text='Select the hazards for this chemical.', to='NEMO.ChemicalHazard')), | ||
], | ||
options={ | ||
'ordering': ['name'], | ||
}, | ||
), | ||
] |
Oops, something went wrong.