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 #133 from RockefellerArchiveCenter/bag-info
Saves metadata from bag-info.txt to application
- Loading branch information
Showing
10 changed files
with
252 additions
and
14 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
48 changes: 48 additions & 0 deletions
48
project_electron/orgs/migrations/0041_auto_20171119_1216.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,48 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.4 on 2017-11-19 17:16 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('orgs', '0040_auto_20171201_1012'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='BagInfoMetadata', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('external_identifier', models.CharField(max_length=256)), | ||
('internal_sender_description', models.TextField()), | ||
('title', models.CharField(max_length=256)), | ||
('date_start', models.DateTimeField()), | ||
('date_end', models.DateTimeField()), | ||
('record_type', models.CharField(max_length=30)), | ||
('bagging_date', models.DateTimeField()), | ||
('bag_count', models.CharField(max_length=10)), | ||
('bag_group_identifier', models.CharField(max_length=256)), | ||
('payload_oxum', models.CharField(max_length=20)), | ||
('bagit_profile_identifier', models.URLField()), | ||
('archive', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='orgs.Archives')), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='LanguageCode', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('code', models.CharField(max_length=3)), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='RecordCreators', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=100)), | ||
], | ||
) | ||
] |
31 changes: 31 additions & 0 deletions
31
project_electron/orgs/migrations/0042_auto_20171119_1237.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,31 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.4 on 2017-11-19 17:37 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('orgs', '0041_auto_20171119_1216'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='baginfometadata', | ||
name='language', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='orgs.LanguageCode'), | ||
), | ||
migrations.AddField( | ||
model_name='baginfometadata', | ||
name='record_creators', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='orgs.RecordCreators'), | ||
), | ||
migrations.AddField( | ||
model_name='baginfometadata', | ||
name='source_organization', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='orgs.Organization'), | ||
) | ||
] |
33 changes: 33 additions & 0 deletions
33
project_electron/orgs/migrations/0043_auto_20171119_1535.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,33 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.4 on 2017-11-19 20:35 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('orgs', '0042_auto_20171119_1237'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='baginfometadata', | ||
name='language', | ||
), | ||
migrations.AddField( | ||
model_name='baginfometadata', | ||
name='language', | ||
field=models.ManyToManyField(blank=True, to='orgs.LanguageCode'), | ||
), | ||
migrations.RemoveField( | ||
model_name='baginfometadata', | ||
name='record_creators', | ||
), | ||
migrations.AddField( | ||
model_name='baginfometadata', | ||
name='record_creators', | ||
field=models.ManyToManyField(blank=True, to='orgs.RecordCreators'), | ||
), | ||
] |
22 changes: 22 additions & 0 deletions
22
project_electron/orgs/migrations/0044_auto_20171128_1355.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,22 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.4 on 2017-11-28 18:55 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('orgs', '0043_auto_20171119_1535'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='baginfometadata', | ||
name='archive', | ||
field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='orgs.Archives'), | ||
preserve_default=False, | ||
), | ||
] |
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