diff --git a/SciPost_v1/settings/production_2.py b/SciPost_v1/settings/production_2.py new file mode 100644 index 0000000000000000000000000000000000000000..eb07431255e7cbf1e86d9c493d05b782b65c9cf3 --- /dev/null +++ b/SciPost_v1/settings/production_2.py @@ -0,0 +1,48 @@ +# Production Webfaction with ip 87.247.240.135 +# Created Dec 29th, 2017 +# Will eventually replace `SciPost_v1/settings/production.py` +from .base import * + +# THE MAIN THING HERE +DEBUG = False +# CERTFILE = get_secret("CERTFILE") +ALLOWED_HOSTS = ['www.scipost.org', 'scipost.org', '87.247.240.135', 'scipost.webfactional.com'] + +# Static and media +STATIC_ROOT = '/home/scipost/webapps/scipost_static/' +MEDIA_ROOT = '/home/scipost/webapps/scipost_media/' + +# Recaptcha +RECAPTCHA_PUBLIC_KEY = get_secret("GOOGLE_RECAPTCHA_PUBLIC_KEY") +RECAPTCHA_PRIVATE_KEY = get_secret("GOOGLE_RECAPTCHA_PRIVATE_KEY") + +WEBPACK_LOADER['DEFAULT']['CACHE'] = True +WEBPACK_LOADER['DEFAULT']['BUNDLE_DIR_NAME'] = '/home/scipost/webapps/scipost_static/bundles/' + +# Error reporting +ADMINS = MANAGERS = (('J.S.Caux', 'J.S.Caux@uva.nl'), ('J.de Wit', 'jorrandewit@outlook.com')) + +# Cookies -- *** No SSL yet *** +# SESSION_COOKIE_SECURE = True +# CSRF_COOKIE_SECURE = True + +# Email -- *** Deactivated *** +# EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' +# EMAIL_HOST = get_secret("EMAIL_HOST") +# EMAIL_HOST_USER = get_secret("EMAIL_HOST_USER") +# EMAIL_HOST_PASSWORD = get_secret("EMAIL_HOST_PASSWORD") + +DEFAULT_FROM_EMAIL = 'admin@scipost.org' +# SERVER_EMAIL = get_secret("SERVER_EMAIL") + +# Other +CROSSREF_LOGIN_ID = get_secret("CROSSREF_LOGIN_ID") +CROSSREF_LOGIN_PASSWORD = get_secret("CROSSREF_LOGIN_PASSWORD") +DOAJ_API_KEY = get_secret("DOAJ_API_KEY") +HAYSTACK_CONNECTIONS['default']['PATH'] = '/home/scipost/webapps/scipost/SciPost_v1/whoosh_index' +MAILCHIMP_API_USER = get_secret("MAILCHIMP_API_USER") +MAILCHIMP_API_KEY = get_secret("MAILCHIMP_API_KEY") + +# iThenticate +ITHENTICATE_USERNAME = get_secret('ITHENTICATE_USERNAME') +ITHENTICATE_PASSWORD = get_secret('ITHENTICATE_PASSWORD') diff --git a/SciPost_v1/wsgi_prod.py b/SciPost_v1/wsgi_prod.py new file mode 100644 index 0000000000000000000000000000000000000000..dd6230684f56e466b88664bc37772a06f0f6cdf3 --- /dev/null +++ b/SciPost_v1/wsgi_prod.py @@ -0,0 +1,11 @@ +""" +WSGI config for SciPost_v1 project on Production (ip: 87.247.240.135). +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "SciPost_v1.settings.production_2") + +application = get_wsgi_application() diff --git a/affiliations/migrations/0001_initial.py b/affiliations/migrations/0001_initial.py index 88b931b8d0d770a18190e7c2089cf4143451afbc..240d17c8eb5bb721dc1ef47a0d320fe068c180ae 100644 --- a/affiliations/migrations/0001_initial.py +++ b/affiliations/migrations/0001_initial.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-01 19:00 +# Generated by Django 1.11.4 on 2017-12-29 13:35 from __future__ import unicode_literals from django.db import migrations, models @@ -14,13 +14,30 @@ class Migration(migrations.Migration): ] operations = [ + migrations.CreateModel( + name='Affiliation', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('begin_date', models.DateField(blank=True, null=True)), + ('end_date', models.DateField(blank=True, null=True)), + ], + options={ + 'default_related_name': 'affiliations', + 'ordering': ['begin_date', 'end_date', 'institution'], + }, + ), migrations.CreateModel( name='Institution', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), + ('acronym', models.CharField(blank=True, max_length=16)), ('country', django_countries.fields.CountryField(max_length=2)), ('type', models.CharField(choices=[('university', 'University')], default='university', max_length=16)), ], + options={ + 'default_related_name': 'institutions', + 'ordering': ['country'], + }, ), ] diff --git a/affiliations/migrations/0002_affiliation_acronym.py b/affiliations/migrations/0002_affiliation_acronym.py deleted file mode 100644 index 496c9a4309624851b25499bd1535729cce2e76d0..0000000000000000000000000000000000000000 --- a/affiliations/migrations/0002_affiliation_acronym.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-01 19:06 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('affiliations', '0001_initial'), - ] - - operations = [ - migrations.AddField( - model_name='institution', - name='acronym', - field=models.CharField(blank=True, max_length=16), - ), - ] diff --git a/affiliations/migrations/0002_auto_20171229_1435.py b/affiliations/migrations/0002_auto_20171229_1435.py new file mode 100644 index 0000000000000000000000000000000000000000..550cfc6a42af6f67619c6d0cfab28d899e412436 --- /dev/null +++ b/affiliations/migrations/0002_auto_20171229_1435.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.4 on 2017-12-29 13:35 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('affiliations', '0001_initial'), + ('scipost', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='affiliation', + name='contributor', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='affiliations', to='scipost.Contributor'), + ), + migrations.AddField( + model_name='affiliation', + name='institution', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='affiliations', to='affiliations.Institution'), + ), + ] diff --git a/affiliations/migrations/0003_auto_20171101_2022.py b/affiliations/migrations/0003_auto_20171101_2022.py deleted file mode 100644 index 412b9733ff4cf93b9b67fd7be830cb4690b243b4..0000000000000000000000000000000000000000 --- a/affiliations/migrations/0003_auto_20171101_2022.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-01 19:22 -from __future__ import unicode_literals - -from django.db import migrations - - -def fill_institutions(apps, schema_editor): - Contributor = apps.get_model('scipost', 'Contributor') - Institution = apps.get_model('affiliations', 'Institution') - for contributor in Contributor.objects.all(): - affiliation, __ = Institution.objects.get_or_create( - name=contributor.affiliation, country=contributor.country_of_employment) - contributor._affiliation = affiliation - contributor.save() - - -def return_none(*args, **kwargs): - return - - -class Migration(migrations.Migration): - - dependencies = [ - ('affiliations', '0002_affiliation_acronym'), - ('scipost', '0066_contributor__affiliation') - ] - - operations = [ - migrations.RunPython(fill_institutions, return_none), - ] diff --git a/affiliations/migrations/0004_auto_20171101_2208.py b/affiliations/migrations/0004_auto_20171101_2208.py deleted file mode 100644 index 53343a60cd596df15f17878425c7906b785f9bef..0000000000000000000000000000000000000000 --- a/affiliations/migrations/0004_auto_20171101_2208.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-01 21:08 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('affiliations', '0003_auto_20171101_2022'), - ] - - operations = [ - migrations.AlterModelOptions( - name='institution', - options={'ordering': ['country']}, - ), - ] diff --git a/affiliations/migrations/0005_affiliation.py b/affiliations/migrations/0005_affiliation.py deleted file mode 100644 index 9396c865dbabb817fc10e1dfc6d4a950630b6d78..0000000000000000000000000000000000000000 --- a/affiliations/migrations/0005_affiliation.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-02 07:41 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0069_auto_20171102_0840'), - ('affiliations', '0004_auto_20171101_2208'), - ] - - operations = [ - migrations.CreateModel( - name='Affiliation', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('begin_date', models.DateField(blank=True, null=True)), - ('end_date', models.DateField(blank=True, null=True)), - ('contributor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='affiliations', to='scipost.Contributor')), - ('institute', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='affiliations', to='affiliations.Institution')), - ], - options={ - 'default_related_name': 'affiliations', - }, - ), - ] diff --git a/affiliations/migrations/0006_auto_20171102_0843.py b/affiliations/migrations/0006_auto_20171102_0843.py deleted file mode 100644 index e17f39362988a0e0812cacdd5a7fc17e423d6638..0000000000000000000000000000000000000000 --- a/affiliations/migrations/0006_auto_20171102_0843.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-02 07:43 -from __future__ import unicode_literals - -from django.db import migrations - - -def fill_affiliations(apps, schema_editor): - Contributor = apps.get_model('scipost', 'Contributor') - Affiliation = apps.get_model('affiliations', 'Affiliation') - for contributor in Contributor.objects.all(): - Affiliation.objects.get_or_create( - institute=contributor.old_affiliation_fk, contributor=contributor) - - -def return_none(*args, **kwargs): - return - - -class Migration(migrations.Migration): - - dependencies = [ - ('affiliations', '0005_affiliation'), - ('scipost', '0069_auto_20171102_0840'), - ] - - operations = [ - migrations.RunPython(fill_affiliations, return_none), - ] diff --git a/affiliations/migrations/0007_auto_20171102_1256.py b/affiliations/migrations/0007_auto_20171102_1256.py deleted file mode 100644 index 0f044ab100678bee7a9753772f7b68506dbacb60..0000000000000000000000000000000000000000 --- a/affiliations/migrations/0007_auto_20171102_1256.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-02 11:56 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('affiliations', '0006_auto_20171102_0843'), - ] - - operations = [ - migrations.AlterModelOptions( - name='affiliation', - options={'ordering': ['begin_date', 'end_date', 'institute']}, - ), - ] diff --git a/affiliations/migrations/0008_auto_20171107_1354.py b/affiliations/migrations/0008_auto_20171107_1354.py deleted file mode 100644 index 9ed49e1c5d75a49c03f48f0fac8ca02be542cc23..0000000000000000000000000000000000000000 --- a/affiliations/migrations/0008_auto_20171107_1354.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-07 12:54 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('affiliations', '0007_auto_20171102_1256'), - ] - - operations = [ - migrations.AlterModelOptions( - name='affiliation', - options={'ordering': ['begin_date', 'end_date', 'institution']}, - ), - migrations.RenameField( - model_name='affiliation', - old_name='institute', - new_name='institution', - ), - ] diff --git a/colleges/migrations/0001_initial.py b/colleges/migrations/0001_initial.py index d7f01c265d829fef68276f3a03f7f19d71f5accf..7d7359c938892a94dbb0f2af96bfafc190430640 100644 --- a/colleges/migrations/0001_initial.py +++ b/colleges/migrations/0001_initial.py @@ -1,9 +1,8 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-20 07:00 +# Generated by Django 1.11.4 on 2017-12-29 13:35 from __future__ import unicode_literals from django.db import migrations, models -import django.db.models.deletion import django.utils.timezone import scipost.db.fields @@ -13,7 +12,6 @@ class Migration(migrations.Migration): initial = True dependencies = [ - ('scipost', '0065_authorshipclaim_publication'), ] operations = [ @@ -26,11 +24,6 @@ class Migration(migrations.Migration): ('start_date', models.DateField(blank=True, null=True)), ('until_date', models.DateField(blank=True, null=True)), ('guest', models.BooleanField(default=False, verbose_name='Guest Fellowship')), - ('contributor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='fellowships', to='scipost.Contributor')), ], ), - migrations.AlterUniqueTogether( - name='fellowship', - unique_together=set([('contributor', 'start_date', 'until_date')]), - ), ] diff --git a/colleges/migrations/0002_auto_20171020_0931.py b/colleges/migrations/0002_auto_20171020_0931.py deleted file mode 100644 index c5ba871e08ad7325de9776d50878f8233e10b308..0000000000000000000000000000000000000000 --- a/colleges/migrations/0002_auto_20171020_0931.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-20 07:31 -from __future__ import unicode_literals - -from django.db import migrations - - -def fill_editorial_college(apps, schema_editor): - Fellowship = apps.get_model('colleges', 'Fellowship') - Contributor = apps.get_model('scipost', 'Contributor') - for contributor in Contributor.objects.filter(user__groups__name='Editorial College'): - Fellowship.objects.get_or_create(contributor=contributor) - - -def return_empty(*args, **kwargs): - return - - -class Migration(migrations.Migration): - - dependencies = [ - ('colleges', '0001_initial'), - ] - - operations = [ - migrations.RunPython(fill_editorial_college, return_empty), - ] diff --git a/colleges/migrations/0002_auto_20171229_1435.py b/colleges/migrations/0002_auto_20171229_1435.py new file mode 100644 index 0000000000000000000000000000000000000000..e10268c6c6c3ff8cbc6a5a15046785e86352cb90 --- /dev/null +++ b/colleges/migrations/0002_auto_20171229_1435.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.4 on 2017-12-29 13:35 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('colleges', '0001_initial'), + ('scipost', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='fellowship', + name='contributor', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='fellowships', to='scipost.Contributor'), + ), + migrations.AlterUniqueTogether( + name='fellowship', + unique_together=set([('contributor', 'start_date', 'until_date')]), + ), + ] diff --git a/commentaries/migrations/0001_initial.py b/commentaries/migrations/0001_initial.py index 7cbd0fbac4d35942cd0a4108e7a00433675a485d..502c39516c9bd913b3f03f322666ae7c8b711180 100644 --- a/commentaries/migrations/0001_initial.py +++ b/commentaries/migrations/0001_initial.py @@ -1,9 +1,11 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-03-29 20:25 +# Generated by Django 1.11.4 on 2017-12-29 13:35 from __future__ import unicode_literals +import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.utils.timezone +import scipost.db.fields class Migration(migrations.Migration): @@ -18,19 +20,30 @@ class Migration(migrations.Migration): name='Commentary', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(default=django.utils.timezone.now)), + ('latest_activity', scipost.db.fields.AutoDateTimeField(blank=True, default=django.utils.timezone.now, editable=False)), ('vetted', models.BooleanField(default=False)), - ('type', models.CharField(choices=[('published', 'published paper'), ('preprint', 'arXiv preprint (at least 8 weeks old)')], max_length=9)), - ('discipline', models.CharField(choices=[('physics', 'Physics')], default='physics', max_length=20)), - ('domain', models.CharField(choices=[('E', 'Experimental'), ('T', 'Theoretical'), ('C', 'Computational'), ('ET', 'Exp. & Theor.'), ('EC', 'Exp. & Comp.'), ('TC', 'Theor. & Comp.'), ('ETC', 'Exp., Theor. & Comp.')], default='E', max_length=3)), - ('specialization', models.CharField(choices=[('A', 'Atomic, Molecular and Optical Physics'), ('B', 'Biophysics'), ('C', 'Condensed Matter Physics'), ('F', 'Fluid Dynamics'), ('G', 'Gravitation, Cosmology and Astroparticle Physics'), ('H', 'High-Energy Physics'), ('M', 'Mathematical Physics'), ('N', 'Nuclear Physics'), ('Q', 'Quantum Statistical Mechanics'), ('S', 'Statistical and Soft Matter Physics')], default='A', max_length=1)), + ('type', models.CharField(choices=[('published', 'published paper'), ('preprint', 'arXiv preprint')], max_length=9)), + ('discipline', models.CharField(choices=[('physics', 'Physics'), ('astrophysics', 'Astrophysics'), ('mathematics', 'Mathematics'), ('computerscience', 'Computer Science')], default='physics', max_length=20)), + ('domain', models.CharField(choices=[('E', 'Experimental'), ('T', 'Theoretical'), ('C', 'Computational'), ('ET', 'Exp. & Theor.'), ('EC', 'Exp. & Comp.'), ('TC', 'Theor. & Comp.'), ('ETC', 'Exp., Theor. & Comp.')], max_length=3)), + ('subject_area', models.CharField(choices=[('Physics', (('Phys:AE', 'Atomic, Molecular and Optical Physics - Experiment'), ('Phys:AT', 'Atomic, Molecular and Optical Physics - Theory'), ('Phys:BI', 'Biophysics'), ('Phys:CE', 'Condensed Matter Physics - Experiment'), ('Phys:CT', 'Condensed Matter Physics - Theory'), ('Phys:FD', 'Fluid Dynamics'), ('Phys:GR', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:HE', 'High-Energy Physics - Experiment'), ('Phys:HT', 'High-Energy Physics - Theory'), ('Phys:HP', 'High-Energy Physics - Phenomenology'), ('Phys:MP', 'Mathematical Physics'), ('Phys:NE', 'Nuclear Physics - Experiment'), ('Phys:NT', 'Nuclear Physics - Theory'), ('Phys:QP', 'Quantum Physics'), ('Phys:SM', 'Statistical and Soft Matter Physics'))), ('Astrophysics', (('Astro:GA', 'Astrophysics of Galaxies'), ('Astro:CO', 'Cosmology and Nongalactic Astrophysics'), ('Astro:EP', 'Earth and Planetary Astrophysics'), ('Astro:HE', 'High Energy Astrophysical Phenomena'), ('Astro:IM', 'Instrumentation and Methods for Astrophysics'), ('Astro:SR', 'Solar and Stellar Astrophysics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:AP', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:CA', 'Classical Analysis and ODEs'), ('Math:CO', 'Combinatorics'), ('Math:AC', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GN', 'General Topology'), ('Math:GT', 'Geometric Topology'), ('Math:GR', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:LO', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:PR', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SP', 'Spectral Theory'), ('Math:ST', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], default='Phys:QP', max_length=10)), ('open_for_commenting', models.BooleanField(default=True)), - ('pub_title', models.CharField(max_length=300, verbose_name='title')), + ('title', models.CharField(max_length=300)), + ('arxiv_identifier', models.CharField(blank=True, max_length=100, verbose_name='arXiv identifier (including version nr)')), ('arxiv_link', models.URLField(blank=True, verbose_name='arXiv link (including version nr)')), + ('pub_DOI', models.CharField(blank=True, max_length=200, verbose_name='DOI of the original publication')), ('pub_DOI_link', models.URLField(blank=True, verbose_name='DOI link to the original publication')), + ('metadata', django.contrib.postgres.fields.jsonb.JSONField(blank=True, default={}, null=True)), + ('arxiv_or_DOI_string', models.CharField(max_length=100, verbose_name='string form of arxiv nr or DOI for commentary url')), ('author_list', models.CharField(max_length=1000)), - ('pub_date', models.DateField(verbose_name='date of original publication')), + ('journal', models.CharField(blank=True, max_length=300)), + ('volume', models.CharField(blank=True, max_length=50)), + ('pages', models.CharField(blank=True, max_length=50)), + ('pub_date', models.DateField(blank=True, null=True, verbose_name='date of original publication')), ('pub_abstract', models.TextField(verbose_name='abstract')), - ('latest_activity', models.DateTimeField(default=django.utils.timezone.now)), ], + options={ + 'verbose_name_plural': 'Commentaries', + }, ), ] diff --git a/commentaries/migrations/0002_auto_20160329_2225.py b/commentaries/migrations/0002_auto_20171229_1435.py similarity index 70% rename from commentaries/migrations/0002_auto_20160329_2225.py rename to commentaries/migrations/0002_auto_20171229_1435.py index 38d311f20d965f0eb7601effa8d2503d7678f11b..77e54d3ea571f1ff6abe6c756f6a98c3fca6dbeb 100644 --- a/commentaries/migrations/0002_auto_20160329_2225.py +++ b/commentaries/migrations/0002_auto_20171229_1435.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-03-29 20:25 +# Generated by Django 1.11.4 on 2017-12-29 13:35 from __future__ import unicode_literals from django.db import migrations, models @@ -12,6 +12,7 @@ class Migration(migrations.Migration): dependencies = [ ('commentaries', '0001_initial'), + ('journals', '0001_initial'), ('scipost', '0001_initial'), ] @@ -19,22 +20,27 @@ class Migration(migrations.Migration): migrations.AddField( model_name='commentary', name='authors', - field=models.ManyToManyField(blank=True, related_name='authors_com', to='scipost.Contributor'), + field=models.ManyToManyField(blank=True, related_name='commentaries', to='scipost.Contributor'), ), migrations.AddField( model_name='commentary', name='authors_claims', - field=models.ManyToManyField(blank=True, related_name='authors_com_claims', to='scipost.Contributor'), + field=models.ManyToManyField(blank=True, related_name='claimed_commentaries', to='scipost.Contributor'), ), migrations.AddField( model_name='commentary', name='authors_false_claims', - field=models.ManyToManyField(blank=True, related_name='authors_com_false_claims', to='scipost.Contributor'), + field=models.ManyToManyField(blank=True, related_name='false_claimed_commentaries', to='scipost.Contributor'), ), migrations.AddField( model_name='commentary', name='requested_by', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='requested_by', to='scipost.Contributor'), + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='requested_commentaries', to='scipost.Contributor'), + ), + migrations.AddField( + model_name='commentary', + name='scipost_publication', + field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='commentary', to='journals.Publication'), ), migrations.AddField( model_name='commentary', diff --git a/commentaries/migrations/0003_auto_20160401_0642.py b/commentaries/migrations/0003_auto_20160401_0642.py deleted file mode 100644 index aa2770f55b5548d1cbede90bb5c290adc5406186..0000000000000000000000000000000000000000 --- a/commentaries/migrations/0003_auto_20160401_0642.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-04-01 04:42 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('commentaries', '0002_auto_20160329_2225'), - ] - - operations = [ - migrations.AddField( - model_name='commentary', - name='arxiv_or_DOI_string', - field=models.CharField(default='', max_length=100, verbose_name='string form of arxiv nr or DOI for commentary url'), - ), - migrations.AlterField( - model_name='commentary', - name='pub_date', - field=models.DateField(blank=True, null=True, verbose_name='date of original publication'), - ), - ] diff --git a/commentaries/migrations/0004_auto_20160419_2157.py b/commentaries/migrations/0004_auto_20160419_2157.py deleted file mode 100644 index 1010299278671442f15497002be5a20de46c24f7..0000000000000000000000000000000000000000 --- a/commentaries/migrations/0004_auto_20160419_2157.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-04-19 19:57 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('commentaries', '0003_auto_20160401_0642'), - ] - - operations = [ - migrations.AlterModelOptions( - name='commentary', - options={'verbose_name_plural': 'Commentaries'}, - ), - ] diff --git a/commentaries/migrations/0005_auto_20160420_1946.py b/commentaries/migrations/0005_auto_20160420_1946.py deleted file mode 100644 index 6c2dfa14b5b856d5058bad6fb8e831b4117cbd21..0000000000000000000000000000000000000000 --- a/commentaries/migrations/0005_auto_20160420_1946.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-04-20 17:46 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('commentaries', '0004_auto_20160419_2157'), - ] - - operations = [ - migrations.AlterField( - model_name='commentary', - name='domain', - field=models.CharField(choices=[('E', 'Experimental'), ('T', 'Theoretical'), ('C', 'Computational'), ('ET', 'Exp. & Theor.'), ('EC', 'Exp. & Comp.'), ('TC', 'Theor. & Comp.'), ('ETC', 'Exp., Theor. & Comp.')], max_length=3), - ), - migrations.AlterField( - model_name='commentary', - name='specialization', - field=models.CharField(choices=[('A', 'Atomic, Molecular and Optical Physics'), ('B', 'Biophysics'), ('C', 'Condensed Matter Physics'), ('F', 'Fluid Dynamics'), ('G', 'Gravitation, Cosmology and Astroparticle Physics'), ('H', 'High-Energy Physics'), ('M', 'Mathematical Physics'), ('N', 'Nuclear Physics'), ('Q', 'Quantum Statistical Mechanics'), ('S', 'Statistical and Soft Matter Physics')], max_length=1), - ), - ] diff --git a/commentaries/migrations/0006_auto_20160422_1018.py b/commentaries/migrations/0006_auto_20160422_1018.py deleted file mode 100644 index 072fd35c10a22a1d5560756a67402de042425589..0000000000000000000000000000000000000000 --- a/commentaries/migrations/0006_auto_20160422_1018.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-04-22 08:18 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('commentaries', '0005_auto_20160420_1946'), - ] - - operations = [ - migrations.AddField( - model_name='commentary', - name='journal', - field=models.CharField(blank=True, max_length=300, null=True), - ), - migrations.AddField( - model_name='commentary', - name='pages', - field=models.CharField(blank=True, max_length=50, null=True), - ), - migrations.AddField( - model_name='commentary', - name='volume', - field=models.CharField(blank=True, max_length=50, null=True), - ), - ] diff --git a/commentaries/migrations/0007_auto_20160422_1515.py b/commentaries/migrations/0007_auto_20160422_1515.py deleted file mode 100644 index b0786b339b17557cad8a98a6164d618b70ab94c0..0000000000000000000000000000000000000000 --- a/commentaries/migrations/0007_auto_20160422_1515.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-04-22 13:15 -from __future__ import unicode_literals - -import django.contrib.postgres.fields.jsonb -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('commentaries', '0006_auto_20160422_1018'), - ] - - operations = [ - migrations.AddField( - model_name='commentary', - name='arxiv_identifier', - field=models.CharField(blank=True, max_length=100, null=True, verbose_name='arXiv identifier (including version nr)'), - ), - migrations.AddField( - model_name='commentary', - name='metadata', - field=django.contrib.postgres.fields.jsonb.JSONField(blank=True, default={}, null=True), - ), - migrations.AddField( - model_name='commentary', - name='pub_DOI', - field=models.CharField(blank=True, max_length=200, null=True, verbose_name='DOI of the original publication'), - ), - ] diff --git a/commentaries/migrations/0008_auto_20160423_0749.py b/commentaries/migrations/0008_auto_20160423_0749.py deleted file mode 100644 index 85fc841c141ce4e5295958c3318d218810625a5e..0000000000000000000000000000000000000000 --- a/commentaries/migrations/0008_auto_20160423_0749.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-04-23 05:49 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('commentaries', '0007_auto_20160422_1515'), - ] - - operations = [ - migrations.AlterField( - model_name='commentary', - name='type', - field=models.CharField(choices=[('published', 'published paper'), ('preprint', 'arXiv preprint')], max_length=9), - ), - ] diff --git a/commentaries/migrations/0009_auto_20160810_1608.py b/commentaries/migrations/0009_auto_20160810_1608.py deleted file mode 100644 index d124db74532061ad4000f960a9b399cb0dbce50a..0000000000000000000000000000000000000000 --- a/commentaries/migrations/0009_auto_20160810_1608.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-08-10 14:08 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('commentaries', '0008_auto_20160423_0749'), - ] - - operations = [ - migrations.AlterField( - model_name='commentary', - name='discipline', - field=models.CharField(choices=[('physics', 'Physics'), ('mathematics', 'Mathematics'), ('computerscience', 'Computer Science')], default='physics', max_length=20), - ), - ] diff --git a/commentaries/migrations/0010_auto_20160811_1057.py b/commentaries/migrations/0010_auto_20160811_1057.py deleted file mode 100644 index 4c0f16adc8bdab9c515caea3cce7df808e9846c7..0000000000000000000000000000000000000000 --- a/commentaries/migrations/0010_auto_20160811_1057.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-08-11 08:57 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('commentaries', '0009_auto_20160810_1608'), - ] - - operations = [ - migrations.AlterField( - model_name='commentary', - name='discipline', - field=models.CharField(choices=[('physics', 'Physics'), ('astrophysics', 'Astrophysics'), ('mathematics', 'Mathematics'), ('computerscience', 'Computer Science')], default='physics', max_length=20), - ), - ] diff --git a/commentaries/migrations/0011_commentary_subject_area.py b/commentaries/migrations/0011_commentary_subject_area.py deleted file mode 100644 index db57952caf9a427f7ce40bdd06b162ebdd9d9e02..0000000000000000000000000000000000000000 --- a/commentaries/migrations/0011_commentary_subject_area.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-08-11 12:42 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('commentaries', '0010_auto_20160811_1057'), - ] - - operations = [ - migrations.AddField( - model_name='commentary', - name='subject_area', - field=models.CharField(choices=[('Physics', (('Phys:AE', 'Atomic, Molecular and Optical Physics - Experiment'), ('Phys:AT', 'Atomic, Molecular and Optical Physics - Theory'), ('Phys:BI', 'Biophysics'), ('Phys:CE', 'Condensed Matter Physics - Experiment'), ('Phys:CT', 'Condensed Matter Physics - Theory'), ('Phys:FD', 'Fluid Dynamics'), ('Phys:GR', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:HE', 'High-Energy Physics - Experiment'), ('Phys:HT', 'High-Energy Physics- Theory'), ('Phys:HP', 'High-Energy Physics - Phenomenology'), ('Phys:MP', 'Mathematical Physics'), ('Phys:NE', 'Nuclear Physics - Experiment'), ('Phys:NT', 'Nuclear Physics - Theory'), ('Phys:QP', 'Quantum Physics'), ('Phys:SM', 'Statistical and Soft Matter Physics'))), ('Astrophysics', (('Astro:GA', 'Astrophysics of Galaxies'), ('Astro:CO', 'Cosmology and Nongalactic Astrophysics'), ('Astro:EP', 'Earth and Planetary Astrophysics'), ('Astro:HE', 'High Energy Astrophysical Phenomena'), ('Astro:IM', 'Instrumentation and Methods for Astrophysics'), ('Astro:SR', 'Solar and Stellar Astrophysics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:AP', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:CA', 'Classical Analysis and ODEs'), ('Math:CO', 'Combinatorics'), ('Math:AC', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GN', 'General Topology'), ('Math:GT', 'Geometric Topology'), ('Math:GR', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:LO', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:PR', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SP', 'Spectral Theory'), ('Math:ST', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], default='Phys:QP', max_length=10), - ), - ] diff --git a/commentaries/migrations/0012_remove_commentary_specialization.py b/commentaries/migrations/0012_remove_commentary_specialization.py deleted file mode 100644 index 5c896b9ffc9deaaf57c8d4f181a14a9c96feea4e..0000000000000000000000000000000000000000 --- a/commentaries/migrations/0012_remove_commentary_specialization.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-08-11 13:39 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('commentaries', '0011_commentary_subject_area'), - ] - - operations = [ - migrations.RemoveField( - model_name='commentary', - name='specialization', - ), - ] diff --git a/commentaries/migrations/0013_auto_20161213_2328.py b/commentaries/migrations/0013_auto_20161213_2328.py deleted file mode 100644 index ec27da0367e4f87026cfc64b8131232f62bfb3cc..0000000000000000000000000000000000000000 --- a/commentaries/migrations/0013_auto_20161213_2328.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2016-12-13 22:28 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.utils.timezone - - -class Migration(migrations.Migration): - - dependencies = [ - ('commentaries', '0012_remove_commentary_specialization'), - ] - - operations = [ - migrations.AddField( - model_name='commentary', - name='created', - field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now), - preserve_default=False, - ), - migrations.AlterField( - model_name='commentary', - name='latest_activity', - field=models.DateTimeField(auto_now=True), - ), - ] diff --git a/commentaries/migrations/0014_auto_20170201_1243.py b/commentaries/migrations/0014_auto_20170201_1243.py deleted file mode 100644 index 060845cb8a82fa26f888bdc2cbadbf30b0541526..0000000000000000000000000000000000000000 --- a/commentaries/migrations/0014_auto_20170201_1243.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-02-01 11:43 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.utils.timezone -import scipost.db.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('commentaries', '0013_auto_20161213_2328'), - ] - - operations = [ - migrations.AlterField( - model_name='commentary', - name='created', - field=models.DateTimeField(default=django.utils.timezone.now), - ), - migrations.AlterField( - model_name='commentary', - name='latest_activity', - field=scipost.db.fields.AutoDateTimeField(blank=True, default=django.utils.timezone.now, editable=False), - ), - ] diff --git a/commentaries/migrations/0015_auto_20170726_1615.py b/commentaries/migrations/0015_auto_20170726_1615.py deleted file mode 100644 index 34a805eeb7f6c3e07632f800f8214f7a3cb2a764..0000000000000000000000000000000000000000 --- a/commentaries/migrations/0015_auto_20170726_1615.py +++ /dev/null @@ -1,60 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-26 14:15 -from __future__ import unicode_literals - -from django.db import migrations, models - - -def do_nothing(apps, schema_editor): - return - - -def fill_empty_strings_for_nulls(apps, schema_editor): - Commentary = apps.get_model('commentaries', 'Commentary') - Commentary.objects.filter(arxiv_identifier__isnull=True).update(arxiv_identifier='') - Commentary.objects.filter(arxiv_or_DOI_string__isnull=True).update(arxiv_or_DOI_string='') - Commentary.objects.filter(journal__isnull=True).update(journal='') - Commentary.objects.filter(pages__isnull=True).update(pages='') - Commentary.objects.filter(pub_DOI__isnull=True).update(pub_DOI='') - Commentary.objects.filter(volume__isnull=True).update(volume='') - - -class Migration(migrations.Migration): - - dependencies = [ - ('commentaries', '0014_auto_20170201_1243'), - ] - - operations = [ - migrations.AlterField( - model_name='commentary', - name='arxiv_identifier', - field=models.CharField(blank=True, default='', max_length=100, null=True, verbose_name='arXiv identifier (including version nr)'), - ), - migrations.AlterField( - model_name='commentary', - name='arxiv_or_DOI_string', - field=models.CharField(default='', max_length=100, null=True, verbose_name='string form of arxiv nr or DOI for commentary url'), - ), - migrations.AlterField( - model_name='commentary', - name='journal', - field=models.CharField(blank=True, default='', max_length=300, null=True), - ), - migrations.AlterField( - model_name='commentary', - name='pages', - field=models.CharField(blank=True, default='', max_length=50, null=True), - ), - migrations.AlterField( - model_name='commentary', - name='pub_DOI', - field=models.CharField(blank=True, default='', max_length=200, null=True, verbose_name='DOI of the original publication'), - ), - migrations.AlterField( - model_name='commentary', - name='volume', - field=models.CharField(blank=True, default='', max_length=50, null=True), - ), - migrations.RunPython(fill_empty_strings_for_nulls, do_nothing), - ] diff --git a/commentaries/migrations/0016_auto_20170726_1616.py b/commentaries/migrations/0016_auto_20170726_1616.py deleted file mode 100644 index 63e1a1ea5a56f469c28a29d391c19122e76cb056..0000000000000000000000000000000000000000 --- a/commentaries/migrations/0016_auto_20170726_1616.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-26 14:16 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('commentaries', '0015_auto_20170726_1615'), - ] - - operations = [ - migrations.AlterField( - model_name='commentary', - name='arxiv_identifier', - field=models.CharField(blank=True, default='', max_length=100, verbose_name='arXiv identifier (including version nr)'), - preserve_default=False, - ), - migrations.AlterField( - model_name='commentary', - name='arxiv_or_DOI_string', - field=models.CharField(default='', max_length=100, verbose_name='string form of arxiv nr or DOI for commentary url'), - preserve_default=False, - ), - migrations.AlterField( - model_name='commentary', - name='journal', - field=models.CharField(blank=True, default='', max_length=300), - preserve_default=False, - ), - migrations.AlterField( - model_name='commentary', - name='pages', - field=models.CharField(blank=True, default='', max_length=50), - preserve_default=False, - ), - migrations.AlterField( - model_name='commentary', - name='pub_DOI', - field=models.CharField(blank=True, default='', max_length=200, verbose_name='DOI of the original publication'), - preserve_default=False, - ), - migrations.AlterField( - model_name='commentary', - name='volume', - field=models.CharField(blank=True, default='', max_length=50), - preserve_default=False, - ), - ] diff --git a/commentaries/migrations/0017_auto_20170728_1901.py b/commentaries/migrations/0017_auto_20170728_1901.py deleted file mode 100644 index 4965029020dcd247aa1d12d87794b5e96c09760a..0000000000000000000000000000000000000000 --- a/commentaries/migrations/0017_auto_20170728_1901.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-28 17:01 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('commentaries', '0016_auto_20170726_1616'), - ] - - operations = [ - migrations.RenameField( - model_name='commentary', - old_name='pub_title', - new_name='title', - ), - ] diff --git a/commentaries/migrations/0018_auto_20170909_1649.py b/commentaries/migrations/0018_auto_20170909_1649.py deleted file mode 100644 index c77227daa943b872744dfc240927c9ab14ead270..0000000000000000000000000000000000000000 --- a/commentaries/migrations/0018_auto_20170909_1649.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-09 14:49 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('commentaries', '0017_auto_20170728_1901'), - ] - - operations = [ - migrations.AlterField( - model_name='commentary', - name='subject_area', - field=models.CharField(choices=[('Physics', (('Phys:AE', 'Atomic, Molecular and Optical Physics - Experiment'), ('Phys:AT', 'Atomic, Molecular and Optical Physics - Theory'), ('Phys:BI', 'Biophysics'), ('Phys:CE', 'Condensed Matter Physics - Experiment'), ('Phys:CT', 'Condensed Matter Physics - Theory'), ('Phys:FD', 'Fluid Dynamics'), ('Phys:GR', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:HE', 'High-Energy Physics - Experiment'), ('Phys:HT', 'High-Energy Physics - Theory'), ('Phys:HP', 'High-Energy Physics - Phenomenology'), ('Phys:MP', 'Mathematical Physics'), ('Phys:NE', 'Nuclear Physics - Experiment'), ('Phys:NT', 'Nuclear Physics - Theory'), ('Phys:QP', 'Quantum Physics'), ('Phys:SM', 'Statistical and Soft Matter Physics'))), ('Astrophysics', (('Astro:GA', 'Astrophysics of Galaxies'), ('Astro:CO', 'Cosmology and Nongalactic Astrophysics'), ('Astro:EP', 'Earth and Planetary Astrophysics'), ('Astro:HE', 'High Energy Astrophysical Phenomena'), ('Astro:IM', 'Instrumentation and Methods for Astrophysics'), ('Astro:SR', 'Solar and Stellar Astrophysics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:AP', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:CA', 'Classical Analysis and ODEs'), ('Math:CO', 'Combinatorics'), ('Math:AC', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GN', 'General Topology'), ('Math:GT', 'Geometric Topology'), ('Math:GR', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:LO', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:PR', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SP', 'Spectral Theory'), ('Math:ST', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], default='Phys:QP', max_length=10), - ), - ] diff --git a/commentaries/migrations/0019_auto_20170925_2124.py b/commentaries/migrations/0019_auto_20170925_2124.py deleted file mode 100644 index 869d355df63987056b768158f5b090a7e0093ef7..0000000000000000000000000000000000000000 --- a/commentaries/migrations/0019_auto_20170925_2124.py +++ /dev/null @@ -1,36 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-25 19:24 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('commentaries', '0018_auto_20170909_1649'), - ] - - operations = [ - migrations.AlterField( - model_name='commentary', - name='authors', - field=models.ManyToManyField(blank=True, related_name='commentaries', to='scipost.Contributor'), - ), - migrations.AlterField( - model_name='commentary', - name='authors_claims', - field=models.ManyToManyField(blank=True, related_name='claimed_commentaries', to='scipost.Contributor'), - ), - migrations.AlterField( - model_name='commentary', - name='authors_false_claims', - field=models.ManyToManyField(blank=True, related_name='false_claimed_commentaries', to='scipost.Contributor'), - ), - migrations.AlterField( - model_name='commentary', - name='requested_by', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='requested_commentaries', to='scipost.Contributor'), - ), - ] diff --git a/commentaries/migrations/0020_auto_20171111_1153.py b/commentaries/migrations/0020_auto_20171111_1153.py deleted file mode 100644 index 529c8c7d9e10a7d53155730031873343c9f4b68a..0000000000000000000000000000000000000000 --- a/commentaries/migrations/0020_auto_20171111_1153.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-11 10:53 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0052_auto_20171107_1354'), - ('commentaries', '0019_auto_20170925_2124'), - ] - - operations = [ - migrations.AddField( - model_name='commentary', - name='scipost_publication', - field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='commentary', to='journals.Publication'), - ), - migrations.AlterField( - model_name='commentary', - name='title', - field=models.CharField(max_length=300), - ), - ] diff --git a/comments/migrations/0001_initial.py b/comments/migrations/0001_initial.py index 7685ff4c95e8ad6aa2450b18c7458cd80af87bb0..0c96e3e8152603785ed3a80b9fb7bd809a27f78e 100644 --- a/comments/migrations/0001_initial.py +++ b/comments/migrations/0001_initial.py @@ -1,8 +1,11 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-03-29 20:25 +# Generated by Django 1.11.4 on 2017-12-29 13:35 from __future__ import unicode_literals +import comments.behaviors from django.db import migrations, models +import django.utils.timezone +import scipost.db.fields class Migration(migrations.Migration): @@ -17,9 +20,14 @@ class Migration(migrations.Migration): name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('status', models.SmallIntegerField(default=0)), + ('created', models.DateTimeField(default=django.utils.timezone.now)), + ('latest_activity', scipost.db.fields.AutoDateTimeField(blank=True, default=django.utils.timezone.now, editable=False)), + ('status', models.SmallIntegerField(choices=[(1, 'vetted'), (0, 'not yet vetted (pending)'), (-1, 'rejected (unclear)'), (-2, 'rejected (incorrect)'), (-3, 'rejected (not useful)')], default=0)), + ('file_attachment', models.FileField(blank=True, upload_to='uploads/comments/%Y/%m/%d/', validators=[comments.behaviors.validate_file_extension, comments.behaviors.validate_max_file_size])), + ('object_id', models.PositiveIntegerField(help_text='Warning: Rather use/edit `content_object` instead or be 100% sure you know what you are doing!')), ('is_author_reply', models.BooleanField(default=False)), ('anonymous', models.BooleanField(default=False, verbose_name='Publish anonymously')), + ('is_cor', models.BooleanField(default=False, verbose_name='correction/erratum')), ('is_rem', models.BooleanField(default=False, verbose_name='remark')), ('is_que', models.BooleanField(default=False, verbose_name='question')), ('is_ans', models.BooleanField(default=False, verbose_name='answer to question')), @@ -29,11 +37,17 @@ class Migration(migrations.Migration): ('is_lit', models.BooleanField(default=False, verbose_name='pointer to related literature')), ('is_sug', models.BooleanField(default=False, verbose_name='suggestion for further work')), ('comment_text', models.TextField()), - ('remarks_for_editors', models.TextField(blank=True, default='', verbose_name='optional remarks for the Editors only')), - ('date_submitted', models.DateTimeField(verbose_name='date submitted')), + ('remarks_for_editors', models.TextField(blank=True, verbose_name='optional remarks for the Editors only')), + ('date_submitted', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date submitted')), ('nr_A', models.PositiveIntegerField(default=0)), ('nr_N', models.PositiveIntegerField(default=0)), ('nr_D', models.PositiveIntegerField(default=0)), + ('needs_doi', models.NullBooleanField(default=None)), + ('doideposit_needs_updating', models.BooleanField(default=False)), + ('doi_label', models.CharField(blank=True, max_length=200)), ], + options={ + 'permissions': (('can_vet_comments', 'Can vet submitted Comments'),), + }, ), ] diff --git a/comments/migrations/0002_auto_20160329_2225.py b/comments/migrations/0002_auto_20160329_2225.py deleted file mode 100644 index 1957003c73be004c3c7d5b9da8fe539751bda7db..0000000000000000000000000000000000000000 --- a/comments/migrations/0002_auto_20160329_2225.py +++ /dev/null @@ -1,67 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-03-29 20:25 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - ('commentaries', '0002_auto_20160329_2225'), - ('comments', '0001_initial'), - ('theses', '0001_initial'), - ('submissions', '0001_initial'), - ('scipost', '0001_initial'), - ] - - operations = [ - migrations.AddField( - model_name='comment', - name='author', - field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor'), - ), - migrations.AddField( - model_name='comment', - name='commentary', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='commentaries.Commentary'), - ), - migrations.AddField( - model_name='comment', - name='in_agreement', - field=models.ManyToManyField(related_name='in_agreement', to='scipost.Contributor'), - ), - migrations.AddField( - model_name='comment', - name='in_disagreement', - field=models.ManyToManyField(related_name='in_disagreement', to='scipost.Contributor'), - ), - migrations.AddField( - model_name='comment', - name='in_notsure', - field=models.ManyToManyField(related_name='in_notsure', to='scipost.Contributor'), - ), - migrations.AddField( - model_name='comment', - name='in_reply_to_comment', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='comments.Comment'), - ), - migrations.AddField( - model_name='comment', - name='in_reply_to_report', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='submissions.Report'), - ), - migrations.AddField( - model_name='comment', - name='submission', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='submissions.Submission'), - ), - migrations.AddField( - model_name='comment', - name='thesislink', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='theses.ThesisLink'), - ), - ] diff --git a/comments/migrations/0018_auto_20170729_1617.py b/comments/migrations/0002_auto_20171229_1435.py similarity index 62% rename from comments/migrations/0018_auto_20170729_1617.py rename to comments/migrations/0002_auto_20171229_1435.py index c2d3cfed9b3b2ef1f12c2e3431ec846795050927..ac9c3df05330b62bd8a79ec78c82ee3554d719eb 100644 --- a/comments/migrations/0018_auto_20170729_1617.py +++ b/comments/migrations/0002_auto_20171229_1435.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-29 14:17 +# Generated by Django 1.11.4 on 2017-12-29 13:35 from __future__ import unicode_literals from django.db import migrations, models @@ -8,49 +8,71 @@ import django.db.models.deletion class Migration(migrations.Migration): + initial = True + dependencies = [ - ('comments', '0017_auto_20170729_0717'), + ('submissions', '0001_initial'), + ('comments', '0001_initial'), + ('commentaries', '0002_auto_20171229_1435'), + ('contenttypes', '0002_remove_content_type_name'), + ('scipost', '0002_auto_20171229_1435'), + ('theses', '0001_initial'), ] operations = [ - migrations.AlterField( + migrations.AddField( model_name='comment', name='author', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='scipost.Contributor'), ), - migrations.AlterField( + migrations.AddField( model_name='comment', name='commentary', field=models.ForeignKey(blank=True, help_text='Warning: This field is out of service and will be removed in the future.', null=True, on_delete=django.db.models.deletion.CASCADE, to='commentaries.Commentary'), ), - migrations.AlterField( + migrations.AddField( model_name='comment', name='content_type', field=models.ForeignKey(help_text='Warning: Rather use/edit `content_object` instead or be 100% sure you know what you are doing!', on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), ), - migrations.AlterField( + migrations.AddField( + model_name='comment', + name='in_agreement', + field=models.ManyToManyField(blank=True, related_name='in_agreement', to='scipost.Contributor'), + ), + migrations.AddField( + model_name='comment', + name='in_disagreement', + field=models.ManyToManyField(blank=True, related_name='in_disagreement', to='scipost.Contributor'), + ), + migrations.AddField( + model_name='comment', + name='in_notsure', + field=models.ManyToManyField(blank=True, related_name='in_notsure', to='scipost.Contributor'), + ), + migrations.AddField( model_name='comment', name='in_reply_to_comment', field=models.ForeignKey(blank=True, help_text='Warning: This field is out of service and will be removed in the future.', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='nested_comments_old', to='comments.Comment'), ), - migrations.AlterField( + migrations.AddField( model_name='comment', name='in_reply_to_report', field=models.ForeignKey(blank=True, help_text='Warning: This field is out of service and will be removed in the future.', null=True, on_delete=django.db.models.deletion.CASCADE, to='submissions.Report'), ), - migrations.AlterField( - model_name='comment', - name='object_id', - field=models.PositiveIntegerField(help_text='Warning: Rather use/edit `content_object` instead or be 100% sure you know what you are doing!'), - ), - migrations.AlterField( + migrations.AddField( model_name='comment', name='submission', field=models.ForeignKey(blank=True, help_text='Warning: This field is out of service and will be removed in the future.', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='comments_old', to='submissions.Submission'), ), - migrations.AlterField( + migrations.AddField( model_name='comment', name='thesislink', field=models.ForeignKey(blank=True, help_text='Warning: This field is out of service and will be removed in the future.', null=True, on_delete=django.db.models.deletion.CASCADE, to='theses.ThesisLink'), ), + migrations.AddField( + model_name='comment', + name='vetted_by', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='comment_vetted_by', to='scipost.Contributor'), + ), ] diff --git a/comments/migrations/0003_auto_20160404_2150.py b/comments/migrations/0003_auto_20160404_2150.py deleted file mode 100644 index 7ef1a35433b7028e9c73802a8161fe82ed87a2ad..0000000000000000000000000000000000000000 --- a/comments/migrations/0003_auto_20160404_2150.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-04-04 19:50 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0003_auto_20160330_1104'), - ('comments', '0002_auto_20160329_2225'), - ] - - operations = [ - migrations.AddField( - model_name='comment', - name='is_cor', - field=models.BooleanField(default=False, verbose_name='correction'), - ), - migrations.AddField( - model_name='comment', - name='vetted_by', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='comment_vetted_by', to='scipost.Contributor'), - ), - ] diff --git a/comments/migrations/0004_auto_20161212_1931.py b/comments/migrations/0004_auto_20161212_1931.py deleted file mode 100644 index 82befb1916a8b6278be61dcdc5a9530434d06cad..0000000000000000000000000000000000000000 --- a/comments/migrations/0004_auto_20161212_1931.py +++ /dev/null @@ -1,35 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2016-12-12 18:31 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('comments', '0003_auto_20160404_2150'), - ] - - operations = [ - migrations.AlterField( - model_name='comment', - name='in_agreement', - field=models.ManyToManyField(blank=True, related_name='in_agreement', to='scipost.Contributor'), - ), - migrations.AlterField( - model_name='comment', - name='in_disagreement', - field=models.ManyToManyField(blank=True, related_name='in_disagreement', to='scipost.Contributor'), - ), - migrations.AlterField( - model_name='comment', - name='in_notsure', - field=models.ManyToManyField(blank=True, related_name='in_notsure', to='scipost.Contributor'), - ), - migrations.AlterField( - model_name='comment', - name='is_cor', - field=models.BooleanField(default=False, verbose_name='correction/erratum'), - ), - ] diff --git a/comments/migrations/0005_auto_20170131_2141.py b/comments/migrations/0005_auto_20170131_2141.py deleted file mode 100644 index d8e0fbd5a430e6e648519375336ee4dd89921939..0000000000000000000000000000000000000000 --- a/comments/migrations/0005_auto_20170131_2141.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-01-31 20:41 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.utils.timezone - - -class Migration(migrations.Migration): - - dependencies = [ - ('comments', '0004_auto_20161212_1931'), - ] - - operations = [ - migrations.AddField( - model_name='comment', - name='created', - field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now), - preserve_default=False, - ), - migrations.AddField( - model_name='comment', - name='latest_activity', - field=models.DateTimeField(auto_now=True), - ), - ] diff --git a/comments/migrations/0006_auto_20170201_1243.py b/comments/migrations/0006_auto_20170201_1243.py deleted file mode 100644 index f13cde452317daf5ba4f231ef446d5d8311727c6..0000000000000000000000000000000000000000 --- a/comments/migrations/0006_auto_20170201_1243.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-02-01 11:43 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.utils.timezone -import scipost.db.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('comments', '0005_auto_20170131_2141'), - ] - - operations = [ - migrations.AlterField( - model_name='comment', - name='created', - field=models.DateTimeField(default=django.utils.timezone.now), - ), - migrations.AlterField( - model_name='comment', - name='latest_activity', - field=scipost.db.fields.AutoDateTimeField(blank=True, default=django.utils.timezone.now, editable=False), - ), - ] diff --git a/comments/migrations/0007_comment_pdf_file.py b/comments/migrations/0007_comment_pdf_file.py deleted file mode 100644 index 25cb63f3218046e68259411a3adf33d20c739720..0000000000000000000000000000000000000000 --- a/comments/migrations/0007_comment_pdf_file.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-02-12 16:50 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('comments', '0006_auto_20170201_1243'), - ] - - operations = [ - migrations.AddField( - model_name='comment', - name='pdf_file', - field=models.FileField(blank=True, upload_to='UPLOADS/COMMENTS/%Y/%m/'), - ), - ] diff --git a/comments/migrations/0008_auto_20170212_1840.py b/comments/migrations/0008_auto_20170212_1840.py deleted file mode 100644 index 18c9f01c0bb20720fec08587d13d7de1b3011bbf..0000000000000000000000000000000000000000 --- a/comments/migrations/0008_auto_20170212_1840.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-02-12 17:40 -from __future__ import unicode_literals - -import comments.behaviors -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('comments', '0007_comment_pdf_file'), - ] - - operations = [ - migrations.RemoveField( - model_name='comment', - name='pdf_file', - ), - migrations.AddField( - model_name='comment', - name='file_attachment', - field=models.FileField(blank=True, upload_to='UPLOADS/COMMENTS/%Y/%m/', validators=[comments.behaviors.validate_file_extension]), - ), - ] diff --git a/comments/migrations/0009_auto_20170212_2025.py b/comments/migrations/0009_auto_20170212_2025.py deleted file mode 100644 index 24684b77319c72d5ab1c7c3c34f8174b180eb694..0000000000000000000000000000000000000000 --- a/comments/migrations/0009_auto_20170212_2025.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-02-12 19:25 -from __future__ import unicode_literals - -import comments.behaviors -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('comments', '0008_auto_20170212_1840'), - ] - - operations = [ - migrations.AlterField( - model_name='comment', - name='file_attachment', - field=models.FileField(blank=True, upload_to='comments/%Y/%m/%d/', validators=[comments.behaviors.validate_file_extension]), - ), - ] diff --git a/comments/migrations/0010_auto_20170219_1006.py b/comments/migrations/0010_auto_20170219_1006.py deleted file mode 100644 index 10a486d2f7338d7077ef688617775862476d3dde..0000000000000000000000000000000000000000 --- a/comments/migrations/0010_auto_20170219_1006.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-02-19 09:06 -from __future__ import unicode_literals - -import comments.behaviors -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('comments', '0009_auto_20170212_2025'), - ] - - operations = [ - migrations.AlterField( - model_name='comment', - name='author', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor'), - ), - migrations.AlterField( - model_name='comment', - name='file_attachment', - field=models.FileField(blank=True, upload_to='uploads/comments/%Y/%m/%d/', validators=[comments.behaviors.validate_file_extension, comments.behaviors.validate_max_file_size]), - ), - ] diff --git a/comments/migrations/0011_auto_20170326_1447.py b/comments/migrations/0011_auto_20170326_1447.py deleted file mode 100644 index 1876386c04b0a56d15ff52eaa7437a906b2b443a..0000000000000000000000000000000000000000 --- a/comments/migrations/0011_auto_20170326_1447.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-03-26 12:47 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('comments', '0010_auto_20170219_1006'), - ] - - operations = [ - migrations.AlterField( - model_name='comment', - name='in_reply_to_comment', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='nested_comments', to='comments.Comment'), - ), - migrations.AlterField( - model_name='comment', - name='status', - field=models.SmallIntegerField(choices=[(1, 'vetted'), (0, 'not yet vetted (pending)'), (-1, 'rejected (unclear)'), (-2, 'rejected (incorrect)'), (-3, 'rejected (not useful)')], default=0), - ), - ] diff --git a/comments/migrations/0012_auto_20170415_1659.py b/comments/migrations/0012_auto_20170415_1659.py deleted file mode 100644 index 7764750cdc1b90b2c43ad4911f858404997d5fcb..0000000000000000000000000000000000000000 --- a/comments/migrations/0012_auto_20170415_1659.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-04-15 14:59 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('comments', '0011_auto_20170326_1447'), - ] - - operations = [ - migrations.AlterField( - model_name='comment', - name='submission', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='submissions.Submission'), - ), - ] diff --git a/comments/migrations/0013_auto_20170726_1538.py b/comments/migrations/0013_auto_20170726_1538.py deleted file mode 100644 index 81672bccbd46993e8e2c62a2b1956c3c934424a0..0000000000000000000000000000000000000000 --- a/comments/migrations/0013_auto_20170726_1538.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-26 13:38 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.utils.timezone - - -class Migration(migrations.Migration): - - dependencies = [ - ('comments', '0012_auto_20170415_1659'), - ] - - operations = [ - migrations.AlterModelOptions( - name='comment', - options={'permissions': (('can_vet_comments', 'Can vet submitted Comments'),)}, - ), - migrations.AlterField( - model_name='comment', - name='date_submitted', - field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='date submitted'), - ), - migrations.AlterField( - model_name='comment', - name='remarks_for_editors', - field=models.TextField(blank=True, verbose_name='optional remarks for the Editors only'), - ), - ] diff --git a/comments/migrations/0014_auto_20170726_2117.py b/comments/migrations/0014_auto_20170726_2117.py deleted file mode 100644 index 93abe8af32d17736bc80b3162131d5ca14258454..0000000000000000000000000000000000000000 --- a/comments/migrations/0014_auto_20170726_2117.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-26 19:17 -from __future__ import unicode_literals - -from django.contrib.auth import get_user_model -from django.db import migrations - -from guardian.shortcuts import assign_perm - - -def do_nothing(apps, schema_editor): - return - - -def update_eic_permissions(apps, schema_editor): - """ - Grant EIC of submission related to unvetted comment - permission to vet his submission's comment. - """ - Comment = apps.get_model('comments', 'Comment') - User = get_user_model() - - count = 0 - for comment in Comment.objects.filter(status=0): - if comment.submission: - # Grant Permissions - user = User.objects.get(id=comment.submission.editor_in_charge.user.id) - assign_perm('comments.can_vet_comments', user, comment) - count += 1 - print('\nGranted permission to %i Editor(s)-in-charge to vet related Comments.' % count) - - -class Migration(migrations.Migration): - - dependencies = [ - ('comments', '0013_auto_20170726_1538'), - ] - - operations = [ - migrations.RunPython(update_eic_permissions, do_nothing), - ] diff --git a/comments/migrations/0015_auto_20170727_1248.py b/comments/migrations/0015_auto_20170727_1248.py deleted file mode 100644 index de0a61ca5a5096e1364b319d57e0af4434a5a8e8..0000000000000000000000000000000000000000 --- a/comments/migrations/0015_auto_20170727_1248.py +++ /dev/null @@ -1,34 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-27 10:48 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('comments', '0014_auto_20170726_2117'), - ] - - operations = [ - migrations.AddField( - model_name='comment', - name='content_type', - field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), - preserve_default=False, - ), - migrations.AddField( - model_name='comment', - name='object_id', - field=models.PositiveIntegerField(default=1), - preserve_default=False, - ), - migrations.AlterField( - model_name='comment', - name='submission', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='comments_old', to='submissions.Submission'), - ), - ] diff --git a/comments/migrations/0016_auto_20170728_1901.py b/comments/migrations/0016_auto_20170728_1901.py deleted file mode 100644 index d2e4e4a7236ea66e88104c31723f9511dda1cf04..0000000000000000000000000000000000000000 --- a/comments/migrations/0016_auto_20170728_1901.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-28 17:01 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('comments', '0015_auto_20170727_1248'), - ] - - operations = [ - migrations.AlterField( - model_name='comment', - name='in_reply_to_comment', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='nested_comments_old', to='comments.Comment'), - ), - ] diff --git a/comments/migrations/0017_auto_20170729_0717.py b/comments/migrations/0017_auto_20170729_0717.py deleted file mode 100644 index 8ac6202aae5df406daa83cbee1b9f94c043ded68..0000000000000000000000000000000000000000 --- a/comments/migrations/0017_auto_20170729_0717.py +++ /dev/null @@ -1,126 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-29 05:17 -from __future__ import unicode_literals - -from django.contrib.auth import get_user_model -from django.contrib.contenttypes.models import ContentType -from django.db import migrations - -from guardian.shortcuts import assign_perm - - -def update_all_contenttypes(**kwargs): - from django.apps import apps - from django.contrib.contenttypes.management import create_contenttypes - - for app_config in apps.get_app_configs(): - create_contenttypes(app_config, **kwargs) - - -def create_all_permissions(**kwargs): - from django.contrib.auth.management import create_permissions - from django.apps import apps - - for app_config in apps.get_app_configs(): - create_permissions(app_config, **kwargs) - - -def forward(): - update_all_contenttypes() - create_all_permissions() - - -def migrate_comments_from_generic_relations(apps, schema_editor): - """ - Migrate all GenericRelations a Comment has to the oldschool ForeignKey relations. - """ - return - Comment = apps.get_model('comments', 'Comment') - Report = apps.get_model('submissions', 'Report') - Submission = apps.get_model('submissions', 'Submission') - Commentary = apps.get_model('commentaries', 'Commentary') - ThesisLink = apps.get_model('theses', 'ThesisLink') - - all_comments = Comment.objects.all() - for comment in all_comments: - _object = comment.content_object - if isinstance(_object, Comment): - comment.in_reply_to_comment = _object - - # Nested Comments have more relations - if isinstance(_object.content_object, ThesisLink): - comment.thesislink = _object.content_object - elif isinstance(_object.content_object, Submission): - comment.submission = _object.content_object - elif isinstance(_object.content_object, Commentary): - comment.commentary = _object.content_object - elif isinstance(_object, Report): - comment.in_reply_to_report = _object - comment.submission = _object.submission - elif isinstance(_object, ThesisLink): - comment.thesislink = _object - elif isinstance(_object, Submission): - comment.submission = _object - elif isinstance(_object, Commentary): - comment.commentary = _object - else: - raise AttributeError('Comment has no relation to another valid object.') - comment.save() - print('\nMigrated %i comments back to oldschool ForeignKey relations.' % len(all_comments)) - - -def migrate_comments_to_generic_relations(apps, schema_editor): - """ - Migrate all foreignkey relations a Comment has to the new GenericRelation. - """ - forward() - Comment = apps.get_model('comments', 'Comment') - User = get_user_model() - - all_comments = Comment.objects.all() - for comment in all_comments: - if comment.in_reply_to_comment: - _object = comment.in_reply_to_comment - _object_id = comment.in_reply_to_comment.id - _object_type = ContentType.objects.get(app_label="comments", model="comment").id - elif comment.in_reply_to_report: - _object = comment.in_reply_to_report - _object_id = comment.in_reply_to_report.id - _object_type = ContentType.objects.get(app_label="submissions", model="report").id - elif comment.thesislink: - _object = comment.thesislink - _object_id = comment.thesislink.id - _object_type = ContentType.objects.get(app_label="theses", model="thesislink").id - elif comment.submission: - _object = comment.submission - _object_id = comment.submission.id - _object_type = ContentType.objects.get(app_label="submissions", model="submission").id - elif comment.commentary: - _object = comment.commentary - _object_id = comment.commentary.id - _object_type = ContentType.objects.get(app_label="commentaries", model="commentary").id - else: - print('\nNo valid relation for Comment: ', comment.id,) - comment.content_object = _object - comment.content_type_id = _object_type - comment.object_id = _object_id - comment.save() - - # Grant Permissions - if comment.submission: - user = User.objects.get(id=comment.submission.editor_in_charge.user.id) - assign_perm('comments.can_vet_comments', user, comment) - - print('\nMigrated %i comments to GenericRelations.' % len(all_comments)) - - -class Migration(migrations.Migration): - - dependencies = [ - ('comments', '0016_auto_20170728_1901'), - ] - - operations = [ - migrations.RunPython(migrate_comments_to_generic_relations, - migrate_comments_from_generic_relations), - ] diff --git a/comments/migrations/0019_auto_20170909_1649.py b/comments/migrations/0019_auto_20170909_1649.py deleted file mode 100644 index a5b1538b325773a8dc92f10e74c5d99afe7ccc78..0000000000000000000000000000000000000000 --- a/comments/migrations/0019_auto_20170909_1649.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-09 14:49 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('comments', '0018_auto_20170729_1617'), - ] - - operations = [ - migrations.AddField( - model_name='comment', - name='doi_label', - field=models.CharField(blank=True, max_length=200), - ), - migrations.AddField( - model_name='comment', - name='needs_doi', - field=models.NullBooleanField(default=None), - ), - ] diff --git a/comments/migrations/0020_comment_doideposit_needs_updating.py b/comments/migrations/0020_comment_doideposit_needs_updating.py deleted file mode 100644 index 1adcc31e75acd94e91bf853495e6df830f122894..0000000000000000000000000000000000000000 --- a/comments/migrations/0020_comment_doideposit_needs_updating.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-10 12:17 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('comments', '0019_auto_20170909_1649'), - ] - - operations = [ - migrations.AddField( - model_name='comment', - name='doideposit_needs_updating', - field=models.BooleanField(default=False), - ), - ] diff --git a/finances/migrations/0001_initial.py b/finances/migrations/0001_initial.py index a0b67974f46214763138959424ed10bb21f5ef96..4aee5051b12e0bba24af090b8c0aba09ad2c0182 100644 --- a/finances/migrations/0001_initial.py +++ b/finances/migrations/0001_initial.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-07 11:49 +# Generated by Django 1.11.4 on 2017-12-29 13:35 from __future__ import unicode_literals from django.conf import settings @@ -23,15 +23,17 @@ class Migration(migrations.Migration): fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('comments', models.TextField(blank=True)), + ('log_type', models.CharField(blank=True, max_length=128)), ('duration', models.DurationField(blank=True, null=True)), ('work_date', models.DateField(default=django.utils.timezone.now)), ('created', models.DateTimeField(auto_now_add=True)), - ('target_object_id', models.PositiveIntegerField(blank=True, null=True)), - ('target_content_type', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='work_log_target', to='contenttypes.ContentType')), - ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='worklogs', to=settings.AUTH_USER_MODEL)), + ('object_id', models.PositiveIntegerField(blank=True, null=True)), + ('content_type', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='work_logs', to='contenttypes.ContentType')), + ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='work_logs', to=settings.AUTH_USER_MODEL)), ], options={ - 'default_related_name': 'worklogs', + 'default_related_name': 'work_logs', + 'ordering': ['-work_date', 'created'], }, ), ] diff --git a/finances/migrations/0002_auto_20171007_1349.py b/finances/migrations/0002_auto_20171007_1349.py deleted file mode 100644 index 01d4dcaf94b2c414dfe25f2b5ddc40088e2aecbf..0000000000000000000000000000000000000000 --- a/finances/migrations/0002_auto_20171007_1349.py +++ /dev/null @@ -1,15 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-07 11:50 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('finances', '0001_initial'), - ('production', '0028_auto_20171007_1311'), - ] - - operations = [] diff --git a/finances/migrations/0003_auto_20171007_1425.py b/finances/migrations/0003_auto_20171007_1425.py deleted file mode 100644 index 6d667cb908443488220eeff36b3cecac147926e5..0000000000000000000000000000000000000000 --- a/finances/migrations/0003_auto_20171007_1425.py +++ /dev/null @@ -1,33 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-07 12:25 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('finances', '0002_auto_20171007_1349'), - ] - - operations = [ - migrations.RenameField( - model_name='worklog', - old_name='target_object_id', - new_name='object_id', - ), - migrations.RenameField( - model_name='worklog', - old_name='target_content_type', - new_name='content_type', - ), - migrations.AlterField( - model_name='worklog', - name='user', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='work_logs', to=settings.AUTH_USER_MODEL), - ), - ] diff --git a/finances/migrations/0004_auto_20171007_1426.py b/finances/migrations/0004_auto_20171007_1426.py deleted file mode 100644 index 5d039886b918bc5e673be76bb82caaf1e4bb3e0a..0000000000000000000000000000000000000000 --- a/finances/migrations/0004_auto_20171007_1426.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-07 12:26 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('finances', '0003_auto_20171007_1425'), - ] - - operations = [ - migrations.AlterField( - model_name='worklog', - name='content_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='work_logs', to='contenttypes.ContentType'), - ), - ] diff --git a/finances/migrations/0005_auto_20171010_0921.py b/finances/migrations/0005_auto_20171010_0921.py deleted file mode 100644 index c3ffa146363d51e1864ceca81cb91530799c0d09..0000000000000000000000000000000000000000 --- a/finances/migrations/0005_auto_20171010_0921.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-10 07:21 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('finances', '0004_auto_20171007_1426'), - ] - - operations = [ - migrations.AlterModelOptions( - name='worklog', - options={'ordering': ['-work_date', 'created']}, - ), - migrations.AddField( - model_name='worklog', - name='log_type', - field=models.CharField(blank=True, max_length=128), - ), - ] diff --git a/finances/migrations/0006_auto_20171010_1003.py b/finances/migrations/0006_auto_20171010_1003.py deleted file mode 100644 index 2789ccec488ef8f80370306548c28cdda16eaf2c..0000000000000000000000000000000000000000 --- a/finances/migrations/0006_auto_20171010_1003.py +++ /dev/null @@ -1,60 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-10 08:03 -from __future__ import unicode_literals - -from django.db import migrations - - -def move_hour_registrations(apps, schema_editor): - """ - Move all ProductionEvent hours to Finances model. - """ - ProductionEvent = apps.get_model('production', 'ProductionEvent') - WorkLog = apps.get_model('finances', 'WorkLog') - ContentType = apps.get_model('contenttypes', 'ContentType') - stream_content_type = ContentType.objects.get(app_label='production', model='productionstream') - - for event in ProductionEvent.objects.filter(duration__isnull=False): - if event.event in ['assigned_to_supervisor', - 'message_edadmin_to_supervisor', - 'message_supervisor_to_edadmin', - 'officer_tasked_with_proof_production', - 'message_supervisor_to_officer', - 'proofs_checked_by_supervisor', - 'proofs_returned_by_authors', - 'proofs_returned_by_authors', - 'authors_have_accepted_proofs', - 'paper_published']: - _type = 'Production: Supervisory tasks' - else: - _type = 'Production: Production Officer tasks' - - log = WorkLog( - user=event.noted_by.user, - log_type=_type, - comments=event.comments, - duration=event.duration, - work_date=event.noted_on, - content_type=stream_content_type, - object_id=event.stream.id - ) - log.save() - return - - -def move_hour_registrations_inverse(apps, schema_editor): - """ - Move all ProductionEvent hours to Finances model inversed (not implemented). - """ - return - - -class Migration(migrations.Migration): - - dependencies = [ - ('finances', '0005_auto_20171010_0921'), - ] - - operations = [ - migrations.RunPython(move_hour_registrations, move_hour_registrations_inverse) - ] diff --git a/funders/migrations/0001_initial.py b/funders/migrations/0001_initial.py index bf7e7e4fbf8e63399cdbd03efaeaad0edc080a0d..03a1fb1a1b0c2e8c6ecf37e8ed6a2bc0e669378d 100644 --- a/funders/migrations/0001_initial.py +++ b/funders/migrations/0001_initial.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-25 15:40 +# Generated by Django 1.11.4 on 2017-12-29 13:35 from __future__ import unicode_literals from django.db import migrations, models @@ -11,7 +11,6 @@ class Migration(migrations.Migration): initial = True dependencies = [ - ('scipost', '0059_auto_20170701_1356'), ] operations = [ @@ -20,8 +19,12 @@ class Migration(migrations.Migration): fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=256)), + ('acronym', models.CharField(blank=True, max_length=32, null=True)), ('identifier', models.CharField(max_length=200, unique=True)), ], + options={ + 'ordering': ['name', 'acronym'], + }, ), migrations.CreateModel( name='Grant', @@ -29,8 +32,11 @@ class Migration(migrations.Migration): ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('number', models.CharField(max_length=64)), ('recipient_name', models.CharField(blank=True, max_length=64, null=True)), + ('further_details', models.CharField(blank=True, max_length=256, null=True)), ('funder', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='funders.Funder')), - ('recipient', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor')), ], + options={ + 'ordering': ['funder', 'recipient', 'recipient_name', 'number'], + }, ), ] diff --git a/funders/migrations/0002_auto_20170725_2011.py b/funders/migrations/0002_auto_20170725_2011.py deleted file mode 100644 index c689cf120f8d2cb66918c65a7d4726e3250c0ac9..0000000000000000000000000000000000000000 --- a/funders/migrations/0002_auto_20170725_2011.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-25 18:11 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('funders', '0001_initial'), - ] - - operations = [ - migrations.AlterModelOptions( - name='funder', - options={'ordering': ['name']}, - ), - migrations.AlterModelOptions( - name='grant', - options={'ordering': ['funder', 'recipient', 'recipient_name', 'number']}, - ), - ] diff --git a/funders/migrations/0002_auto_20171229_1435.py b/funders/migrations/0002_auto_20171229_1435.py new file mode 100644 index 0000000000000000000000000000000000000000..06522af2f9182e5fd7602bfac91735cba7ac6e7e --- /dev/null +++ b/funders/migrations/0002_auto_20171229_1435.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.4 on 2017-12-29 13:35 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('funders', '0001_initial'), + ('scipost', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='grant', + name='recipient', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor'), + ), + migrations.AlterUniqueTogether( + name='grant', + unique_together=set([('funder', 'number')]), + ), + ] diff --git a/funders/migrations/0003_auto_20170726_0606.py b/funders/migrations/0003_auto_20170726_0606.py deleted file mode 100644 index d7c8df068e205aade1009695525a669cf16c6100..0000000000000000000000000000000000000000 --- a/funders/migrations/0003_auto_20170726_0606.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-26 04:06 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('funders', '0002_auto_20170725_2011'), - ] - - operations = [ - migrations.AlterUniqueTogether( - name='grant', - unique_together=set([('funder', 'number')]), - ), - ] diff --git a/funders/migrations/0004_auto_20170726_2037.py b/funders/migrations/0004_auto_20170726_2037.py deleted file mode 100644 index 59544eb74125ea1719eaa0443a713a567ee15159..0000000000000000000000000000000000000000 --- a/funders/migrations/0004_auto_20170726_2037.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-26 18:37 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('funders', '0003_auto_20170726_0606'), - ] - - operations = [ - migrations.AlterModelOptions( - name='funder', - options={'ordering': ['name', 'acronym']}, - ), - migrations.AddField( - model_name='funder', - name='acronym', - field=models.CharField(blank=True, max_length=32, null=True), - ), - ] diff --git a/funders/migrations/0005_grant_further_details.py b/funders/migrations/0005_grant_further_details.py deleted file mode 100644 index 095cd8735b666a133bce4ffde5cad79ab8202cb7..0000000000000000000000000000000000000000 --- a/funders/migrations/0005_grant_further_details.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-27 04:12 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('funders', '0004_auto_20170726_2037'), - ] - - operations = [ - migrations.AddField( - model_name='grant', - name='further_details', - field=models.CharField(blank=True, max_length=256, null=True), - ), - ] diff --git a/journals/migrations/0001_initial.py b/journals/migrations/0001_initial.py index 2cd9caec1d1cd94f5e65fb406ca6ddeb17481a52..06fe2ad41a5870fc2d84c4cd4018ea4ff9e06e8e 100644 --- a/journals/migrations/0001_initial.py +++ b/journals/migrations/0001_initial.py @@ -1,12 +1,13 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-09-14 04:12 +# Generated by Django 1.11.4 on 2017-12-29 13:35 from __future__ import unicode_literals import django.contrib.postgres.fields.jsonb +import django.core.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone -import scipost.models +import scipost.fields class Migration(migrations.Migration): @@ -14,19 +15,65 @@ class Migration(migrations.Migration): initial = True dependencies = [ - ('scipost', '0017_remark_recommendation'), - ('submissions', '0023_auto_20160914_0612'), ] operations = [ + migrations.CreateModel( + name='Deposit', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('timestamp', models.CharField(default='', max_length=40)), + ('doi_batch_id', models.CharField(default='', max_length=40)), + ('metadata_xml', models.TextField(blank=True, null=True)), + ('metadata_xml_file', models.FileField(blank=True, max_length=512, null=True, upload_to='')), + ('deposition_date', models.DateTimeField(blank=True, null=True)), + ('response_text', models.TextField(blank=True, null=True)), + ('deposit_successful', models.NullBooleanField(default=None)), + ], + options={ + 'ordering': ['-timestamp'], + }, + ), + migrations.CreateModel( + name='DOAJDeposit', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('timestamp', models.CharField(default='', max_length=40)), + ('metadata_DOAJ', django.contrib.postgres.fields.jsonb.JSONField()), + ('metadata_DOAJ_file', models.FileField(blank=True, max_length=512, null=True, upload_to='')), + ('deposition_date', models.DateTimeField(blank=True, null=True)), + ('response_text', models.TextField(blank=True, null=True)), + ('deposit_successful', models.NullBooleanField(default=None)), + ], + options={ + 'verbose_name': 'DOAJ deposit', + }, + ), + migrations.CreateModel( + name='GenericDOIDeposit', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('object_id', models.PositiveIntegerField()), + ('timestamp', models.CharField(default='', max_length=40)), + ('doi_batch_id', models.CharField(default='', max_length=40)), + ('metadata_xml', models.TextField(blank=True, null=True)), + ('deposition_date', models.DateTimeField(blank=True, null=True)), + ('response', models.TextField(blank=True, null=True)), + ('deposit_successful', models.NullBooleanField(default=None)), + ], + options={ + 'ordering': ['-timestamp'], + }, + ), migrations.CreateModel( name='Issue', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('number', models.PositiveSmallIntegerField(unique=True)), + ('number', models.PositiveSmallIntegerField()), ('start_date', models.DateField(default=django.utils.timezone.now)), ('until_date', models.DateField(default=django.utils.timezone.now)), - ('doi_string', models.CharField(blank=True, max_length=200, null=True)), + ('status', models.CharField(choices=[('draft', 'Draft'), ('published', 'Published')], default='published', max_length=20)), + ('doi_label', models.CharField(db_index=True, max_length=200, unique=True, validators=[django.core.validators.RegexValidator('^[a-zA-Z]+.[0-9]+.[0-9]+$', 'Only valid DOI expressions are allowed ([a-zA-Z]+.[0-9]+.[0-9]+).')])), ('path', models.CharField(max_length=200)), ], ), @@ -34,8 +81,10 @@ class Migration(migrations.Migration): name='Journal', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('name', models.CharField(choices=[('SciPost Physics Select', 'SciPost Physics Select'), ('SciPost Physics', 'SciPost Physics'), ('SciPost Physics Lecture Notes', 'SciPost Physics Lecture Notes')], max_length=100, unique=True)), - ('doi_string', models.CharField(blank=True, max_length=200, null=True)), + ('name', models.CharField(choices=[('SciPostPhys', 'SciPost Physics'), ('SciPostPhysLectNotes', 'SciPost Physics Lecture Notes'), ('SciPostPhysProc', 'SciPost Physics Proceedings'), ('SciPostPhysSel', 'SciPost Physics Select')], max_length=100, unique=True)), + ('doi_label', models.CharField(db_index=True, max_length=200, unique=True, validators=[django.core.validators.RegexValidator('^[a-zA-Z]+$', 'Only valid DOI expressions are allowed ([a-zA-Z]+).')])), + ('issn', models.CharField(blank=True, default='2542-4653', max_length=16)), + ('active', models.BooleanField(default=True)), ], ), migrations.CreateModel( @@ -43,44 +92,47 @@ class Migration(migrations.Migration): fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('paper_nr', models.PositiveSmallIntegerField()), - ('discipline', models.CharField(choices=[('physics', 'Physics'), ('astrophysics', 'Astrophysics'), ('mathematics', 'Mathematics'), ('computerscience', 'Computer Science')], default='physics', max_length=20)), - ('domain', models.CharField(choices=[('E', 'Experimental'), ('T', 'Theoretical'), ('C', 'Computational'), ('ET', 'Exp. & Theor.'), ('EC', 'Exp. & Comp.'), ('TC', 'Theor. & Comp.'), ('ETC', 'Exp., Theor. & Comp.')], max_length=3)), - ('subject_area', models.CharField(choices=[('Physics', (('Phys:AE', 'Atomic, Molecular and Optical Physics - Experiment'), ('Phys:AT', 'Atomic, Molecular and Optical Physics - Theory'), ('Phys:BI', 'Biophysics'), ('Phys:CE', 'Condensed Matter Physics - Experiment'), ('Phys:CT', 'Condensed Matter Physics - Theory'), ('Phys:FD', 'Fluid Dynamics'), ('Phys:GR', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:HE', 'High-Energy Physics - Experiment'), ('Phys:HT', 'High-Energy Physics- Theory'), ('Phys:HP', 'High-Energy Physics - Phenomenology'), ('Phys:MP', 'Mathematical Physics'), ('Phys:NE', 'Nuclear Physics - Experiment'), ('Phys:NT', 'Nuclear Physics - Theory'), ('Phys:QP', 'Quantum Physics'), ('Phys:SM', 'Statistical and Soft Matter Physics'))), ('Astrophysics', (('Astro:GA', 'Astrophysics of Galaxies'), ('Astro:CO', 'Cosmology and Nongalactic Astrophysics'), ('Astro:EP', 'Earth and Planetary Astrophysics'), ('Astro:HE', 'High Energy Astrophysical Phenomena'), ('Astro:IM', 'Instrumentation and Methods for Astrophysics'), ('Astro:SR', 'Solar and Stellar Astrophysics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:AP', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:CA', 'Classical Analysis and ODEs'), ('Math:CO', 'Combinatorics'), ('Math:AC', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GN', 'General Topology'), ('Math:GT', 'Geometric Topology'), ('Math:GR', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:LO', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:PR', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SP', 'Spectral Theory'), ('Math:ST', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], default='Phys:QP', max_length=10, verbose_name='Primary subject area')), - ('secondary_areas', scipost.fields.ChoiceArrayField(base_field=models.CharField(choices=[('Physics', (('Phys:AE', 'Atomic, Molecular and Optical Physics - Experiment'), ('Phys:AT', 'Atomic, Molecular and Optical Physics - Theory'), ('Phys:BI', 'Biophysics'), ('Phys:CE', 'Condensed Matter Physics - Experiment'), ('Phys:CT', 'Condensed Matter Physics - Theory'), ('Phys:FD', 'Fluid Dynamics'), ('Phys:GR', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:HE', 'High-Energy Physics - Experiment'), ('Phys:HT', 'High-Energy Physics- Theory'), ('Phys:HP', 'High-Energy Physics - Phenomenology'), ('Phys:MP', 'Mathematical Physics'), ('Phys:NE', 'Nuclear Physics - Experiment'), ('Phys:NT', 'Nuclear Physics - Theory'), ('Phys:QP', 'Quantum Physics'), ('Phys:SM', 'Statistical and Soft Matter Physics'))), ('Astrophysics', (('Astro:GA', 'Astrophysics of Galaxies'), ('Astro:CO', 'Cosmology and Nongalactic Astrophysics'), ('Astro:EP', 'Earth and Planetary Astrophysics'), ('Astro:HE', 'High Energy Astrophysical Phenomena'), ('Astro:IM', 'Instrumentation and Methods for Astrophysics'), ('Astro:SR', 'Solar and Stellar Astrophysics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:AP', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:CA', 'Classical Analysis and ODEs'), ('Math:CO', 'Combinatorics'), ('Math:AC', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GN', 'General Topology'), ('Math:GT', 'Geometric Topology'), ('Math:GR', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:LO', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:PR', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SP', 'Spectral Theory'), ('Math:ST', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], max_length=10), blank=True, null=True, size=None)), ('title', models.CharField(max_length=300)), ('author_list', models.CharField(max_length=1000, verbose_name='author list')), ('abstract', models.TextField()), ('pdf_file', models.FileField(max_length=200, upload_to='UPLOADS/PUBLICATIONS/%Y/%m/')), + ('discipline', models.CharField(choices=[('physics', 'Physics'), ('astrophysics', 'Astrophysics'), ('mathematics', 'Mathematics'), ('computerscience', 'Computer Science')], default='physics', max_length=20)), + ('domain', models.CharField(choices=[('E', 'Experimental'), ('T', 'Theoretical'), ('C', 'Computational'), ('ET', 'Exp. & Theor.'), ('EC', 'Exp. & Comp.'), ('TC', 'Theor. & Comp.'), ('ETC', 'Exp., Theor. & Comp.')], max_length=3)), + ('subject_area', models.CharField(choices=[('Physics', (('Phys:AE', 'Atomic, Molecular and Optical Physics - Experiment'), ('Phys:AT', 'Atomic, Molecular and Optical Physics - Theory'), ('Phys:BI', 'Biophysics'), ('Phys:CE', 'Condensed Matter Physics - Experiment'), ('Phys:CT', 'Condensed Matter Physics - Theory'), ('Phys:FD', 'Fluid Dynamics'), ('Phys:GR', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:HE', 'High-Energy Physics - Experiment'), ('Phys:HT', 'High-Energy Physics - Theory'), ('Phys:HP', 'High-Energy Physics - Phenomenology'), ('Phys:MP', 'Mathematical Physics'), ('Phys:NE', 'Nuclear Physics - Experiment'), ('Phys:NT', 'Nuclear Physics - Theory'), ('Phys:QP', 'Quantum Physics'), ('Phys:SM', 'Statistical and Soft Matter Physics'))), ('Astrophysics', (('Astro:GA', 'Astrophysics of Galaxies'), ('Astro:CO', 'Cosmology and Nongalactic Astrophysics'), ('Astro:EP', 'Earth and Planetary Astrophysics'), ('Astro:HE', 'High Energy Astrophysical Phenomena'), ('Astro:IM', 'Instrumentation and Methods for Astrophysics'), ('Astro:SR', 'Solar and Stellar Astrophysics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:AP', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:CA', 'Classical Analysis and ODEs'), ('Math:CO', 'Combinatorics'), ('Math:AC', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GN', 'General Topology'), ('Math:GT', 'Geometric Topology'), ('Math:GR', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:LO', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:PR', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SP', 'Spectral Theory'), ('Math:ST', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], default='Phys:QP', max_length=10, verbose_name='Primary subject area')), + ('secondary_areas', scipost.fields.ChoiceArrayField(base_field=models.CharField(choices=[('Physics', (('Phys:AE', 'Atomic, Molecular and Optical Physics - Experiment'), ('Phys:AT', 'Atomic, Molecular and Optical Physics - Theory'), ('Phys:BI', 'Biophysics'), ('Phys:CE', 'Condensed Matter Physics - Experiment'), ('Phys:CT', 'Condensed Matter Physics - Theory'), ('Phys:FD', 'Fluid Dynamics'), ('Phys:GR', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:HE', 'High-Energy Physics - Experiment'), ('Phys:HT', 'High-Energy Physics - Theory'), ('Phys:HP', 'High-Energy Physics - Phenomenology'), ('Phys:MP', 'Mathematical Physics'), ('Phys:NE', 'Nuclear Physics - Experiment'), ('Phys:NT', 'Nuclear Physics - Theory'), ('Phys:QP', 'Quantum Physics'), ('Phys:SM', 'Statistical and Soft Matter Physics'))), ('Astrophysics', (('Astro:GA', 'Astrophysics of Galaxies'), ('Astro:CO', 'Cosmology and Nongalactic Astrophysics'), ('Astro:EP', 'Earth and Planetary Astrophysics'), ('Astro:HE', 'High Energy Astrophysical Phenomena'), ('Astro:IM', 'Instrumentation and Methods for Astrophysics'), ('Astro:SR', 'Solar and Stellar Astrophysics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:AP', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:CA', 'Classical Analysis and ODEs'), ('Math:CO', 'Combinatorics'), ('Math:AC', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GN', 'General Topology'), ('Math:GT', 'Geometric Topology'), ('Math:GR', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:LO', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:PR', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SP', 'Spectral Theory'), ('Math:ST', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], max_length=10), blank=True, null=True, size=None)), + ('cc_license', models.CharField(choices=[('CC BY 4.0', 'CC BY (4.0)'), ('CC BY-SA 4.0', 'CC BY-SA (4.0)'), ('CC BY-NC 4.0', 'CC BY-NC (4.0)')], default='CC BY 4.0', max_length=32)), ('metadata', django.contrib.postgres.fields.jsonb.JSONField(blank=True, default={}, null=True)), ('metadata_xml', models.TextField(blank=True, null=True)), + ('metadata_DOAJ', django.contrib.postgres.fields.jsonb.JSONField(blank=True, default={}, null=True)), + ('doi_label', models.CharField(db_index=True, max_length=200, unique=True, validators=[django.core.validators.RegexValidator('^[a-zA-Z]+.[0-9]+.[0-9]+.[0-9]{3,}$', 'Only valid DOI expressions are allowed ([a-zA-Z]+.[0-9]+.[0-9]+.[0-9]{3,}).')])), ('BiBTeX_entry', models.TextField(blank=True, null=True)), - ('doi_label', models.CharField(blank=True, max_length=200, null=True)), - ('doi_string', models.CharField(blank=True, max_length=200, null=True)), + ('doideposit_needs_updating', models.BooleanField(default=False)), + ('citedby', django.contrib.postgres.fields.jsonb.JSONField(blank=True, default={}, null=True)), ('submission_date', models.DateField(verbose_name='submission date')), ('acceptance_date', models.DateField(verbose_name='acceptance date')), ('publication_date', models.DateField(verbose_name='publication date')), + ('latest_citedby_update', models.DateTimeField(blank=True, null=True)), + ('latest_metadata_update', models.DateTimeField(blank=True, null=True)), ('latest_activity', models.DateTimeField(default=django.utils.timezone.now)), - ('accepted_submission', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='submissions.Submission')), - ('authors', models.ManyToManyField(blank=True, related_name='authors_pub', to='scipost.Contributor')), - ('authors_claims', models.ManyToManyField(blank=True, related_name='authors_pub_claims', to='scipost.Contributor')), - ('authors_false_claims', models.ManyToManyField(blank=True, related_name='authors_pub_false_claims', to='scipost.Contributor')), - ('in_issue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='journals.Issue')), + ], + ), + migrations.CreateModel( + name='UnregisteredAuthor', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('first_name', models.CharField(max_length=100)), + ('last_name', models.CharField(max_length=100)), ], ), migrations.CreateModel( name='Volume', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('number', models.PositiveSmallIntegerField(unique=True)), + ('number', models.PositiveSmallIntegerField()), ('start_date', models.DateField(default=django.utils.timezone.now)), ('until_date', models.DateField(default=django.utils.timezone.now)), - ('doi_string', models.CharField(blank=True, max_length=200, null=True)), + ('doi_label', models.CharField(db_index=True, max_length=200, unique=True, validators=[django.core.validators.RegexValidator('^[a-zA-Z]+.[0-9]+$', 'Only valid DOI expressions are allowed ([a-zA-Z]+.[0-9]+).')])), ('in_journal', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='journals.Journal')), ], ), - migrations.AddField( - model_name='issue', - name='in_volume', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='journals.Volume'), - ), ] diff --git a/journals/migrations/0002_auto_20161019_0938.py b/journals/migrations/0002_auto_20161019_0938.py deleted file mode 100644 index c92c00812a7d4503a65438f6419ec2d48edac066..0000000000000000000000000000000000000000 --- a/journals/migrations/0002_auto_20161019_0938.py +++ /dev/null @@ -1,37 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-10-19 07:38 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import django.utils.timezone - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0021_precookedemail'), - ('journals', '0001_initial'), - ] - - operations = [ - migrations.CreateModel( - name='Deposit', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('doi_batch_id', models.CharField(default='', max_length=40)), - ('metadata_xml', models.TextField(blank=True, null=True)), - ('deposition_date', models.DateTimeField(default=django.utils.timezone.now)), - ], - ), - migrations.AddField( - model_name='publication', - name='first_author', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor'), - ), - migrations.AddField( - model_name='deposit', - name='publication', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='journals.Publication'), - ), - ] diff --git a/journals/migrations/0002_auto_20171229_1435.py b/journals/migrations/0002_auto_20171229_1435.py new file mode 100644 index 0000000000000000000000000000000000000000..bb3a3829f134ae715d955a7e3ce68fae08a72ac2 --- /dev/null +++ b/journals/migrations/0002_auto_20171229_1435.py @@ -0,0 +1,106 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.4 on 2017-12-29 13:35 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('submissions', '0001_initial'), + ('journals', '0001_initial'), + ('contenttypes', '0002_remove_content_type_name'), + ('funders', '0002_auto_20171229_1435'), + ('affiliations', '0002_auto_20171229_1435'), + ('scipost', '0002_auto_20171229_1435'), + ] + + operations = [ + migrations.AddField( + model_name='publication', + name='accepted_submission', + field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='submissions.Submission'), + ), + migrations.AddField( + model_name='publication', + name='authors', + field=models.ManyToManyField(blank=True, related_name='publications', to='scipost.Contributor'), + ), + migrations.AddField( + model_name='publication', + name='authors_claims', + field=models.ManyToManyField(blank=True, related_name='claimed_publications', to='scipost.Contributor'), + ), + migrations.AddField( + model_name='publication', + name='authors_false_claims', + field=models.ManyToManyField(blank=True, related_name='false_claimed_publications', to='scipost.Contributor'), + ), + migrations.AddField( + model_name='publication', + name='authors_unregistered', + field=models.ManyToManyField(blank=True, related_name='publications', to='journals.UnregisteredAuthor'), + ), + migrations.AddField( + model_name='publication', + name='first_author', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='first_author_publications', to='scipost.Contributor'), + ), + migrations.AddField( + model_name='publication', + name='first_author_unregistered', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='first_author_publications', to='journals.UnregisteredAuthor'), + ), + migrations.AddField( + model_name='publication', + name='funders_generic', + field=models.ManyToManyField(blank=True, related_name='publications', to='funders.Funder'), + ), + migrations.AddField( + model_name='publication', + name='grants', + field=models.ManyToManyField(blank=True, related_name='publications', to='funders.Grant'), + ), + migrations.AddField( + model_name='publication', + name='in_issue', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='journals.Issue'), + ), + migrations.AddField( + model_name='publication', + name='institutions', + field=models.ManyToManyField(blank=True, related_name='publications', to='affiliations.Institution'), + ), + migrations.AddField( + model_name='issue', + name='in_volume', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='journals.Volume'), + ), + migrations.AddField( + model_name='genericdoideposit', + name='content_type', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), + ), + migrations.AddField( + model_name='doajdeposit', + name='publication', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='journals.Publication'), + ), + migrations.AddField( + model_name='deposit', + name='publication', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='journals.Publication'), + ), + migrations.AlterUniqueTogether( + name='volume', + unique_together=set([('number', 'in_journal')]), + ), + migrations.AlterUniqueTogether( + name='issue', + unique_together=set([('number', 'in_volume')]), + ), + ] diff --git a/journals/migrations/0003_journal_issn.py b/journals/migrations/0003_journal_issn.py deleted file mode 100644 index b2cf01a6f95422568555cd5b9a12f504c7f529e7..0000000000000000000000000000000000000000 --- a/journals/migrations/0003_journal_issn.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-11-19 07:28 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0002_auto_20161019_0938'), - ] - - operations = [ - migrations.AddField( - model_name='journal', - name='issn', - field=models.CharField(default='2542-4653', max_length=16), - ), - ] diff --git a/journals/migrations/0004_auto_20161122_0602.py b/journals/migrations/0004_auto_20161122_0602.py deleted file mode 100644 index 00588d3d89d408cd482e900d7734eb93341a9590..0000000000000000000000000000000000000000 --- a/journals/migrations/0004_auto_20161122_0602.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-11-22 05:02 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0003_journal_issn'), - ] - - operations = [ - migrations.CreateModel( - name='UnregisteredAuthor', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('first_name', models.CharField(max_length=100)), - ('last_name', models.CharField(max_length=100)), - ], - ), - migrations.AddField( - model_name='publication', - name='authors_unregistered', - field=models.ManyToManyField(blank=True, to='journals.UnregisteredAuthor'), - ), - ] diff --git a/journals/migrations/0005_auto_20161122_0851.py b/journals/migrations/0005_auto_20161122_0851.py deleted file mode 100644 index ef723c7ae163955ee99fc857a5890f59c5dc8ccb..0000000000000000000000000000000000000000 --- a/journals/migrations/0005_auto_20161122_0851.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-11-22 07:51 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0004_auto_20161122_0602'), - ] - - operations = [ - migrations.AddField( - model_name='publication', - name='first_author_unregistered', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='first_author_unregistered', to='journals.UnregisteredAuthor'), - ), - migrations.AlterField( - model_name='publication', - name='authors_unregistered', - field=models.ManyToManyField(blank=True, related_name='authors_unregistered', to='journals.UnregisteredAuthor'), - ), - ] diff --git a/journals/migrations/0006_publication_citedby.py b/journals/migrations/0006_publication_citedby.py deleted file mode 100644 index 79dd2b819780b80ce98b0c97a512b8e712ca4c56..0000000000000000000000000000000000000000 --- a/journals/migrations/0006_publication_citedby.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-11-23 05:12 -from __future__ import unicode_literals - -import django.contrib.postgres.fields.jsonb -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0005_auto_20161122_0851'), - ] - - operations = [ - migrations.AddField( - model_name='publication', - name='citedby', - field=django.contrib.postgres.fields.jsonb.JSONField(blank=True, default={}, null=True), - ), - ] diff --git a/journals/migrations/0007_auto_20170210_1521.py b/journals/migrations/0007_auto_20170210_1521.py deleted file mode 100644 index 62880f9f0b7a35ad9c95157f1bba5a9a60235609..0000000000000000000000000000000000000000 --- a/journals/migrations/0007_auto_20170210_1521.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-02-10 14:21 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0006_publication_citedby'), - ] - - operations = [ - migrations.AlterField( - model_name='issue', - name='number', - field=models.PositiveSmallIntegerField(), - ), - migrations.AlterUniqueTogether( - name='issue', - unique_together=set([('number', 'in_volume')]), - ), - ] diff --git a/journals/migrations/0008_auto_20170210_1524.py b/journals/migrations/0008_auto_20170210_1524.py deleted file mode 100644 index 6d4488fed13a119c82b28f24ab39ab9885784afb..0000000000000000000000000000000000000000 --- a/journals/migrations/0008_auto_20170210_1524.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-02-10 14:24 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0007_auto_20170210_1521'), - ] - - operations = [ - migrations.AlterField( - model_name='volume', - name='number', - field=models.PositiveSmallIntegerField(), - ), - migrations.AlterUniqueTogether( - name='volume', - unique_together=set([('number', 'in_journal')]), - ), - ] diff --git a/journals/migrations/0009_issue_status.py b/journals/migrations/0009_issue_status.py deleted file mode 100644 index cc624f0a87c872f30f185a210a16677b70b51a44..0000000000000000000000000000000000000000 --- a/journals/migrations/0009_issue_status.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-02-12 10:16 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0008_auto_20170210_1524'), - ] - - operations = [ - migrations.AddField( - model_name='issue', - name='status', - field=models.CharField(choices=[('draft', 'Draft'), ('published', 'Published')], default='published', max_length=20), - ), - ] diff --git a/journals/migrations/0010_auto_20170407_0638.py b/journals/migrations/0010_auto_20170407_0638.py deleted file mode 100644 index 0e4a390f3f1debb8c889bb35e4a8c1828e1338fb..0000000000000000000000000000000000000000 --- a/journals/migrations/0010_auto_20170407_0638.py +++ /dev/null @@ -1,79 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-04-07 04:38 -from __future__ import unicode_literals - -from django.db import migrations, models - - -def remove_doi_prefix(apps, schema_editor): - Journal = apps.get_model('journals', 'Journal') - for journal in Journal.objects.all(): - try: - journal.doi_string = journal.doi_string.split('10.21468/', 1)[1] - except KeyError: - print(' - Journal %s has no valid `doi_string`' % journal.id) - journal.save() - - Issue = apps.get_model('journals', 'Issue') - for issue in Issue.objects.all(): - try: - issue.doi_string = issue.doi_string.split('10.21468/', 1)[1] - except KeyError: - print(' - Issue %s has no valid `doi_string`' % issue.id) - issue.save() - - Volume = apps.get_model('journals', 'Volume') - for volume in Volume.objects.all(): - try: - volume.doi_string = volume.doi_string.split('10.21468/', 1)[1] - except KeyError: - print(' - Volume %s has no valid `doi_string`' % volume.id) - volume.save() - print(' - DOI prefixes removed...') - - -def add_doi_prefix(apps, schema_editor): - Journal = apps.get_model('journals', 'Journal') - for journal in Journal.objects.all(): - journal.doi_string = '10.21468/' + journal.doi_string - journal.save() - - Issue = apps.get_model('journals', 'Issue') - for issue in Issue.objects.all(): - issue.doi_string = '10.21468/' + issue.doi_string - issue.save() - - Volume = apps.get_model('journals', 'Volume') - for volume in Volume.objects.all(): - volume.doi_string = '10.21468/' + volume.doi_string - volume.save() - print(' - DOI prefixes added...') - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0009_issue_status'), - ] - - operations = [ - migrations.AlterField( - model_name='issue', - name='doi_string', - field=models.CharField(blank=True, default='', max_length=200, unique=True), - preserve_default=False, - ), - migrations.AlterField( - model_name='journal', - name='doi_string', - field=models.CharField(blank=True, default='', max_length=200, unique=True), - preserve_default=False, - ), - migrations.AlterField( - model_name='volume', - name='doi_string', - field=models.CharField(blank=True, default='', max_length=200, unique=True), - preserve_default=False, - ), - migrations.RunPython(remove_doi_prefix, add_doi_prefix), - ] diff --git a/journals/migrations/0011_auto_20170407_0922.py b/journals/migrations/0011_auto_20170407_0922.py deleted file mode 100644 index 552a0587d25431778f48c58ba8f09c07155a72f9..0000000000000000000000000000000000000000 --- a/journals/migrations/0011_auto_20170407_0922.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-04-07 07:22 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0010_auto_20170407_0638'), - ] - - operations = [ - migrations.RemoveField( - model_name='publication', - name='doi_string', - ), - migrations.AlterField( - model_name='journal', - name='name', - field=models.CharField(choices=[('SciPost Physics', 'SciPost Physics'), ('SciPostPhysLecture', 'SciPost Physics Lecture Notes'), ('SciPostPhysSel', 'SciPost Physics Select'), ('SciPostPhysProc', 'SciPost Physics Proceedings')], max_length=100, unique=True), - ), - migrations.AlterField( - model_name='publication', - name='doi_label', - field=models.CharField(blank=True, default='', max_length=200, unique=True), - preserve_default=False, - ), - ] diff --git a/journals/migrations/0012_auto_20170407_0926.py b/journals/migrations/0012_auto_20170407_0926.py deleted file mode 100644 index f3a5ad61e0886b954dedd110b87e71619f33673e..0000000000000000000000000000000000000000 --- a/journals/migrations/0012_auto_20170407_0926.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-04-07 07:26 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0011_auto_20170407_0922'), - ] - - operations = [ - migrations.RenameField( - model_name='publication', - old_name='doi_label', - new_name='doi_string', - ), - ] diff --git a/journals/migrations/0013_auto_20170407_0954.py b/journals/migrations/0013_auto_20170407_0954.py deleted file mode 100644 index d7cd736a6e66999c7334d9b51180a446e24cb7ea..0000000000000000000000000000000000000000 --- a/journals/migrations/0013_auto_20170407_0954.py +++ /dev/null @@ -1,78 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-04-07 07:54 -from __future__ import unicode_literals - -from django.db import migrations, models - - -def auto_remove_scipost_physics_proc(apps, schema_editor): - Journal = apps.get_model('journals', 'Journal') - try: - journal = Journal.objects.get(name='SciPostPhysProc') - journal.delete() - print('\n - SciPost Physics Proceedings deleted...') - except Journal.DoesNotExist: - print(' - No SciPost Physics Proceedings does not exist...') - - -def auto_add_scipost_physics_proc(apps, schema_editor): - Journal = apps.get_model('journals', 'Journal') - Journal.objects.create(name='SciPostPhysProc', doi_string='SciPostPhysProc') - print(' - SciPost Physics Proceedings created...') - - -def alter_existing_journal_name(apps, schema_editor): - Journal = apps.get_model('journals', 'Journal') - Submission = apps.get_model('submissions', 'Submission') - try: - journal = Journal.objects.get(name='SciPost Physics') - journal.name = 'SciPostPhys' - journal.save() - print('\n - SciPost Physics name updated...') - - Submission.objects.filter(submitted_to_journal='SciPost Physics').update( - submitted_to_journal='SciPostPhys' - ) - Submission.objects.filter(submitted_to_journal='SciPost Physics Lecture Notes').update( - submitted_to_journal='SciPostPhysLectNotes' - ) - print(' - Submission `submitted_to_journal` keys updated...') - except Journal.DoesNotExist: - print(' - No Journal Names altered...') - - -def reverse_alter_existing_journal_name(apps, schema_editor): - Journal = apps.get_model('journals', 'Journal') - Submission = apps.get_model('submissions', 'Submission') - try: - journal = Journal.objects.get(name='SciPostPhys') - journal.name = 'SciPost Physics' - journal.save() - print(' - SciPost Physics name updated...') - - Submission.objects.filter(submitted_to_journal='SciPostPhys').update( - submitted_to_journal='SciPost Physics' - ) - Submission.objects.filter(submitted_to_journal='SciPostPhysLectNotes').update( - submitted_to_journal='SciPost Physics Lecture Notes' - ) - print(' - Submission `submitted_to_journal` keys updated...') - except Journal.DoesNotExist: - print(' - No Journal Names altered...') - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0012_auto_20170407_0926'), - ] - - operations = [ - migrations.RunPython(alter_existing_journal_name, reverse_alter_existing_journal_name), - migrations.AlterField( - model_name='journal', - name='name', - field=models.CharField(choices=[('SciPostPhys', 'SciPost Physics'), ('SciPostPhysLectNotes', 'SciPost Physics Lecture Notes'), ('SciPostPhysSel', 'SciPost Physics Select'), ('SciPostPhysProc', 'SciPost Physics Proceedings')], max_length=100, unique=True), - ), - migrations.RunPython(auto_add_scipost_physics_proc, auto_remove_scipost_physics_proc), - ] diff --git a/journals/migrations/0014_journal_active.py b/journals/migrations/0014_journal_active.py deleted file mode 100644 index a4e7c58cc5f41469f58e3be4ac248347f63957ea..0000000000000000000000000000000000000000 --- a/journals/migrations/0014_journal_active.py +++ /dev/null @@ -1,36 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-04-07 08:03 -from __future__ import unicode_literals - -from django.db import migrations, models - - -def migration_reverse_empty(apps, schema_editor): - pass - - -def auto_deactivate_scipost_physics_proc(apps, schema_editor): - Journal = apps.get_model('journals', 'Journal') - try: - journal = Journal.objects.get(name='SciPostPhysProc', doi_string='SciPostPhysProc') - journal.active = False - journal.save() - print('\n - SciPost Physics Proceedings deactivated...') - except Journal.DoesNotExist: - pass - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0013_auto_20170407_0954'), - ] - - operations = [ - migrations.AddField( - model_name='journal', - name='active', - field=models.BooleanField(default=True), - ), - migrations.RunPython(auto_deactivate_scipost_physics_proc, migration_reverse_empty), - ] diff --git a/journals/migrations/0015_auto_20170408_1758.py b/journals/migrations/0015_auto_20170408_1758.py deleted file mode 100644 index 6ece95f4450f48a1e80c89daba6bb14980fd219b..0000000000000000000000000000000000000000 --- a/journals/migrations/0015_auto_20170408_1758.py +++ /dev/null @@ -1,36 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-04-08 15:58 -from __future__ import unicode_literals - -import django.core.validators -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0014_journal_active'), - ] - - operations = [ - migrations.AlterField( - model_name='issue', - name='doi_string', - field=models.CharField(db_index=True, max_length=200, unique=True, validators=[django.core.validators.RegexValidator('^[a-zA-Z]+.[0-9]+.[0-9]+$', 'Only valid DOI expressions are allowed ([a-zA-Z]+.[0-9]+.[0-9]+).')]), - ), - migrations.AlterField( - model_name='journal', - name='doi_string', - field=models.CharField(db_index=True, max_length=200, unique=True, validators=[django.core.validators.RegexValidator('^[a-zA-Z]+$', 'Only valid DOI expressions are allowed ([a-zA-Z]+).')]), - ), - migrations.AlterField( - model_name='publication', - name='doi_string', - field=models.CharField(db_index=True, max_length=200, unique=True, validators=[django.core.validators.RegexValidator('^[a-zA-Z]+.[0-9]+.[0-9]+.[0-9]{3,}$', 'Only valid DOI expressions are allowed ([a-zA-Z]+.[0-9]+.[0-9]+.[0-9]{3,}).')]), - ), - migrations.AlterField( - model_name='volume', - name='doi_string', - field=models.CharField(db_index=True, max_length=200, unique=True, validators=[django.core.validators.RegexValidator('^[a-zA-Z]+.[0-9]+$', 'Only valid DOI expressions are allowed ([a-zA-Z]+.[0-9]+).')]), - ), - ] diff --git a/journals/migrations/0016_auto_20170418_2120.py b/journals/migrations/0016_auto_20170418_2120.py deleted file mode 100644 index fdca76caa0da77deb695d2185d3db24dbb5d33db..0000000000000000000000000000000000000000 --- a/journals/migrations/0016_auto_20170418_2120.py +++ /dev/null @@ -1,35 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-04-18 19:20 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0015_auto_20170408_1758'), - ] - - operations = [ - migrations.RenameField( - model_name='issue', - old_name='doi_string', - new_name='doi_label', - ), - migrations.RenameField( - model_name='journal', - old_name='doi_string', - new_name='doi_label', - ), - migrations.RenameField( - model_name='publication', - old_name='doi_string', - new_name='doi_label', - ), - migrations.RenameField( - model_name='volume', - old_name='doi_string', - new_name='doi_label', - ), - ] diff --git a/journals/migrations/0017_auto_20170515_1606.py b/journals/migrations/0017_auto_20170515_1606.py deleted file mode 100644 index f33b04657ab7493b6f1b2ae4ea121281e15dcf0b..0000000000000000000000000000000000000000 --- a/journals/migrations/0017_auto_20170515_1606.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-05-15 14:06 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0043_auto_20170512_0836'), - ('journals', '0016_auto_20170418_2120'), - ] - - operations = [ - migrations.CreateModel( - name='ProductionEvent', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('event', models.CharField(choices=[('assigned_to_supervisor', 'Assigned to Supervisor'), ('officer_tasked_with_proof_production', 'Officer tasked with proofs production'), ('proofs_produced', 'Proofs have been produced'), ('proofs_sent_to_authors', 'Proofs sent to Authors'), ('proofs_returned_by_authors', 'Proofs returned by Authors'), ('corrections_implemented', 'Corrections implemented'), ('authors_have_accepted_proofs', 'Authors have accepted proofs')], max_length=64)), - ('comments', models.TextField()), - ('noted', models.DateTimeField()), - ('duration', models.DurationField(blank=True, null=True)), - ], - ), - migrations.CreateModel( - name='ProductionStream', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('opened', models.DateTimeField()), - ('submission', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='stream', to='submissions.Submission')), - ], - ), - migrations.AddField( - model_name='productionevent', - name='stream', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='event', to='journals.ProductionStream'), - ), - ] diff --git a/journals/migrations/0018_auto_20170515_1755.py b/journals/migrations/0018_auto_20170515_1755.py deleted file mode 100644 index 854f916a955c821157cdf0d2244de5455e9b1aed..0000000000000000000000000000000000000000 --- a/journals/migrations/0018_auto_20170515_1755.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-05-15 15:55 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0054_delete_newsitem'), - ('journals', '0017_auto_20170515_1606'), - ] - - operations = [ - migrations.RenameField( - model_name='productionevent', - old_name='noted', - new_name='noted_on', - ), - migrations.AddField( - model_name='productionevent', - name='noted_by', - field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='event', to='scipost.Contributor'), - ), - ] diff --git a/journals/migrations/0019_auto_20170515_1827.py b/journals/migrations/0019_auto_20170515_1827.py deleted file mode 100644 index 1fb727c65d2ee4e8ebf6a2230036816ff75f3d17..0000000000000000000000000000000000000000 --- a/journals/migrations/0019_auto_20170515_1827.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-05-15 16:27 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0018_auto_20170515_1755'), - ] - - operations = [ - migrations.AlterField( - model_name='productionevent', - name='noted_by', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='event', to='scipost.Contributor'), - ), - migrations.AlterField( - model_name='productionevent', - name='stream', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='stream', to='journals.ProductionStream'), - ), - migrations.AlterField( - model_name='productionstream', - name='submission', - field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='submission', to='submissions.Submission'), - ), - ] diff --git a/journals/migrations/0020_auto_20170515_1829.py b/journals/migrations/0020_auto_20170515_1829.py deleted file mode 100644 index 5b0f14536fada470f806f8d7cf2a548bd24c55ef..0000000000000000000000000000000000000000 --- a/journals/migrations/0020_auto_20170515_1829.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-05-15 16:29 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0019_auto_20170515_1827'), - ] - - operations = [ - migrations.AlterField( - model_name='productionevent', - name='stream', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='events', to='journals.ProductionStream'), - ), - migrations.AlterField( - model_name='productionstream', - name='submission', - field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='stream', to='submissions.Submission'), - ), - ] diff --git a/journals/migrations/0021_auto_20170517_1452.py b/journals/migrations/0021_auto_20170517_1452.py deleted file mode 100644 index e512a45e01f2de38b7809dd679b0712e7ce88c1e..0000000000000000000000000000000000000000 --- a/journals/migrations/0021_auto_20170517_1452.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-05-17 12:52 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0020_auto_20170515_1829'), - ] - - operations = [ - migrations.AlterField( - model_name='productionevent', - name='noted_by', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor'), - ), - migrations.AlterField( - model_name='productionevent', - name='stream', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='journals.ProductionStream'), - ), - migrations.AlterField( - model_name='productionstream', - name='submission', - field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='submissions.Submission'), - ), - ] diff --git a/journals/migrations/0022_auto_20170517_1608.py b/journals/migrations/0022_auto_20170517_1608.py deleted file mode 100644 index 0f0c51220de42f8d889a14b91e7b6c3d47a8e7e0..0000000000000000000000000000000000000000 --- a/journals/migrations/0022_auto_20170517_1608.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-05-17 14:08 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.utils.timezone - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0021_auto_20170517_1452'), - ] - - operations = [ - migrations.AlterField( - model_name='productionevent', - name='comments', - field=models.TextField(blank=True, null=True), - ), - migrations.AlterField( - model_name='productionevent', - name='noted_on', - field=models.DateTimeField(default=django.utils.timezone.now), - ), - ] diff --git a/journals/migrations/0023_auto_20170517_1846.py b/journals/migrations/0023_auto_20170517_1846.py deleted file mode 100644 index b3462dcdd0e7b5008c780b0446f1324405f07df4..0000000000000000000000000000000000000000 --- a/journals/migrations/0023_auto_20170517_1846.py +++ /dev/null @@ -1,33 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-05-17 16:46 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0022_auto_20170517_1608'), - ] - - operations = [ - migrations.RemoveField( - model_name='productionevent', - name='noted_by', - ), - migrations.RemoveField( - model_name='productionevent', - name='stream', - ), - migrations.RemoveField( - model_name='productionstream', - name='submission', - ), - migrations.DeleteModel( - name='ProductionEvent', - ), - migrations.DeleteModel( - name='ProductionStream', - ), - ] diff --git a/journals/migrations/0024_publication_lastest_citedby_update.py b/journals/migrations/0024_publication_lastest_citedby_update.py deleted file mode 100644 index 30f8841d41373a0e252f990b4cfd9609a3c969cb..0000000000000000000000000000000000000000 --- a/journals/migrations/0024_publication_lastest_citedby_update.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-08 09:07 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0023_auto_20170517_1846'), - ] - - operations = [ - migrations.AddField( - model_name='publication', - name='lastest_citedby_update', - field=models.DateTimeField(blank=True, null=True), - ), - ] diff --git a/journals/migrations/0025_auto_20170708_1154.py b/journals/migrations/0025_auto_20170708_1154.py deleted file mode 100644 index 3290f9071eace79f55ca044d85bb776511f0a1f2..0000000000000000000000000000000000000000 --- a/journals/migrations/0025_auto_20170708_1154.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-08 09:54 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0024_publication_lastest_citedby_update'), - ] - - operations = [ - migrations.RenameField( - model_name='publication', - old_name='lastest_citedby_update', - new_name='latest_citedby_update', - ), - ] diff --git a/journals/migrations/0026_auto_20170708_1542.py b/journals/migrations/0026_auto_20170708_1542.py deleted file mode 100644 index 7a78e36a6d46a1237959a862edd9004f1f2dd400..0000000000000000000000000000000000000000 --- a/journals/migrations/0026_auto_20170708_1542.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-08 13:42 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0025_auto_20170708_1154'), - ] - - operations = [ - migrations.AddField( - model_name='publication', - name='latest_crossref_deposit', - field=models.DateTimeField(blank=True, null=True), - ), - migrations.AddField( - model_name='publication', - name='latest_metadata_update', - field=models.DateTimeField(blank=True, null=True), - ), - migrations.AddField( - model_name='publication', - name='metadata_xml_file', - field=models.FileField(blank=True, null=True, upload_to=''), - ), - ] diff --git a/journals/migrations/0027_auto_20170710_0805.py b/journals/migrations/0027_auto_20170710_0805.py deleted file mode 100644 index cce57940d89031f9061d97c21fb1f0665f18708b..0000000000000000000000000000000000000000 --- a/journals/migrations/0027_auto_20170710_0805.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-10 06:05 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0026_auto_20170708_1542'), - ] - - operations = [ - migrations.RemoveField( - model_name='publication', - name='metadata_xml_file', - ), - migrations.AddField( - model_name='deposit', - name='metadata_xml_file', - field=models.FileField(blank=True, null=True, upload_to=''), - ), - migrations.AddField( - model_name='deposit', - name='response_text', - field=models.TextField(blank=True, null=True), - ), - migrations.AddField( - model_name='deposit', - name='timestamp', - field=models.CharField(default='', max_length=40), - ), - migrations.AlterField( - model_name='deposit', - name='deposition_date', - field=models.DateTimeField(blank=True, null=True), - ), - ] diff --git a/journals/migrations/0028_auto_20170710_0906.py b/journals/migrations/0028_auto_20170710_0906.py deleted file mode 100644 index 4c0d934848fa8d9ac001e5b72ea3cd1ae6c2f05d..0000000000000000000000000000000000000000 --- a/journals/migrations/0028_auto_20170710_0906.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-10 07:06 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0027_auto_20170710_0805'), - ] - - operations = [ - migrations.AlterModelOptions( - name='deposit', - options={'ordering': ['-timestamp']}, - ), - migrations.AddField( - model_name='deposit', - name='deposit_successful', - field=models.NullBooleanField(default=None), - ), - ] diff --git a/journals/migrations/0029_remove_publication_latest_crossref_deposit.py b/journals/migrations/0029_remove_publication_latest_crossref_deposit.py deleted file mode 100644 index b6c26989d2fa96aad2a3e3e93445045f151e3ec3..0000000000000000000000000000000000000000 --- a/journals/migrations/0029_remove_publication_latest_crossref_deposit.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-10 07:49 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0028_auto_20170710_0906'), - ] - - operations = [ - migrations.RemoveField( - model_name='publication', - name='latest_crossref_deposit', - ), - ] diff --git a/journals/migrations/0030_auto_20170710_1051.py b/journals/migrations/0030_auto_20170710_1051.py deleted file mode 100644 index e3534b85137c5ab4ea9c4dfe140c16ce59aeff28..0000000000000000000000000000000000000000 --- a/journals/migrations/0030_auto_20170710_1051.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-10 08:51 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0029_remove_publication_latest_crossref_deposit'), - ] - - operations = [ - migrations.AlterField( - model_name='deposit', - name='metadata_xml_file', - field=models.FileField(blank=True, max_length=512, null=True, upload_to=''), - ), - ] diff --git a/journals/migrations/0031_clockssmetadata.py b/journals/migrations/0031_clockssmetadata.py deleted file mode 100644 index e9f252ab1d59866c6a86176dd8eebf6abdd03841..0000000000000000000000000000000000000000 --- a/journals/migrations/0031_clockssmetadata.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-11 03:34 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0030_auto_20170710_1051'), - ] - - operations = [ - migrations.CreateModel( - name='CLOCKSSmetadata', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('metadata_xml_file_CLOCKSS', models.FileField(blank=True, max_length=512, null=True, upload_to='')), - ('publication', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='journals.Publication')), - ], - ), - ] diff --git a/journals/migrations/0032_auto_20170711_0952.py b/journals/migrations/0032_auto_20170711_0952.py deleted file mode 100644 index 25f177b24634e1d976dbad6b66e3b292b83133b5..0000000000000000000000000000000000000000 --- a/journals/migrations/0032_auto_20170711_0952.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-11 07:52 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0031_clockssmetadata'), - ] - - operations = [ - migrations.AlterModelOptions( - name='clockssmetadata', - options={'verbose_name': 'CLOCKSS metadata'}, - ), - ] diff --git a/journals/migrations/0033_auto_20170711_2041.py b/journals/migrations/0033_auto_20170711_2041.py deleted file mode 100644 index 7c77db3e5381b1873623fa4f1e9606ae3af30e7e..0000000000000000000000000000000000000000 --- a/journals/migrations/0033_auto_20170711_2041.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-11 18:41 -from __future__ import unicode_literals - -import django.contrib.postgres.fields.jsonb -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0032_auto_20170711_0952'), - ] - - operations = [ - migrations.CreateModel( - name='DOAJDeposit', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('timestamp', models.CharField(default='', max_length=40)), - ('metadata_DOAJ', django.contrib.postgres.fields.jsonb.JSONField()), - ('deposition_date', models.DateTimeField(blank=True, null=True)), - ('response_text', models.TextField(blank=True, null=True)), - ('deposit_successful', models.NullBooleanField(default=None)), - ], - options={ - 'verbose_name': 'DOAJ deposit', - }, - ), - migrations.AddField( - model_name='publication', - name='metadata_DOAJ', - field=django.contrib.postgres.fields.jsonb.JSONField(blank=True, null=True), - ), - migrations.AddField( - model_name='doajdeposit', - name='publication', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='journals.Publication'), - ), - ] diff --git a/journals/migrations/0034_publication_cc_license.py b/journals/migrations/0034_publication_cc_license.py deleted file mode 100644 index b23b2c997bd72c6252c82999dd57c112826b2a28..0000000000000000000000000000000000000000 --- a/journals/migrations/0034_publication_cc_license.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-12 06:10 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0033_auto_20170711_2041'), - ] - - operations = [ - migrations.AddField( - model_name='publication', - name='cc_license', - field=models.CharField(choices=[('CC BY 4.0', 'CC BY (4.0)'), ('CC BY-SA 4.0', 'CC BY-SA (4.0)'), ('CC BY-NC 4.0', 'CC BY-NC (4.0)')], default='CC BY 4.0', max_length=32), - ), - ] diff --git a/journals/migrations/0035_auto_20170714_0609.py b/journals/migrations/0035_auto_20170714_0609.py deleted file mode 100644 index 860612627d85724c62217f0d7b446223631caeac..0000000000000000000000000000000000000000 --- a/journals/migrations/0035_auto_20170714_0609.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-14 04:09 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0034_publication_cc_license'), - ] - - operations = [ - migrations.RemoveField( - model_name='clockssmetadata', - name='publication', - ), - migrations.DeleteModel( - name='CLOCKSSmetadata', - ), - ] diff --git a/journals/migrations/0036_auto_20170725_1729.py b/journals/migrations/0036_auto_20170725_1729.py deleted file mode 100644 index 65ec9846bc191d8d6962a9c67e79a59a8af30302..0000000000000000000000000000000000000000 --- a/journals/migrations/0036_auto_20170725_1729.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-25 15:29 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0059_auto_20170701_1356'), - ('journals', '0035_auto_20170714_0609'), - ] - - operations = [ - migrations.CreateModel( - name='Funder', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('name', models.CharField(max_length=256)), - ('identifier', models.CharField(max_length=200, unique=True)), - ], - ), - migrations.CreateModel( - name='Grant', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('number', models.CharField(max_length=64)), - ('recipient_name', models.CharField(blank=True, max_length=64, null=True)), - ('funder', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='journals.Funder')), - ('recipient', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor')), - ], - ), - migrations.AddField( - model_name='publication', - name='grants', - field=models.ManyToManyField(blank=True, null=True, to='journals.Grant'), - ), - ] diff --git a/journals/migrations/0036_auto_20170725_2048.py b/journals/migrations/0036_auto_20170725_2048.py deleted file mode 100644 index 0f740ec130985368925a88ae469fc465d5b4d1a9..0000000000000000000000000000000000000000 --- a/journals/migrations/0036_auto_20170725_2048.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-25 18:48 -from __future__ import unicode_literals - -import django.contrib.postgres.fields.jsonb -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0035_auto_20170714_0609'), - ] - - operations = [ - migrations.AlterField( - model_name='publication', - name='metadata_DOAJ', - field=django.contrib.postgres.fields.jsonb.JSONField(blank=True, default={}, null=True), - ), - ] diff --git a/journals/migrations/0037_auto_20170725_1730.py b/journals/migrations/0037_auto_20170725_1730.py deleted file mode 100644 index db456745ef9aa668ae34fc88ee197461a03ec30f..0000000000000000000000000000000000000000 --- a/journals/migrations/0037_auto_20170725_1730.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-25 15:30 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0036_auto_20170725_1729'), - ] - - operations = [ - migrations.AlterField( - model_name='publication', - name='grants', - field=models.ManyToManyField(blank=True, to='journals.Grant'), - ), - ] diff --git a/journals/migrations/0038_auto_20170725_1738.py b/journals/migrations/0038_auto_20170725_1738.py deleted file mode 100644 index 0d32403d115b27f88615e7f48c243a70f6c71d9b..0000000000000000000000000000000000000000 --- a/journals/migrations/0038_auto_20170725_1738.py +++ /dev/null @@ -1,33 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-25 15:38 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0037_auto_20170725_1730'), - ] - - operations = [ - migrations.RemoveField( - model_name='grant', - name='funder', - ), - migrations.RemoveField( - model_name='grant', - name='recipient', - ), - migrations.RemoveField( - model_name='publication', - name='grants', - ), - migrations.DeleteModel( - name='Funder', - ), - migrations.DeleteModel( - name='Grant', - ), - ] diff --git a/journals/migrations/0039_publication_grants.py b/journals/migrations/0039_publication_grants.py deleted file mode 100644 index 8b2f9b1c3e2c66f38a68cc2d6290d5e4c2da2614..0000000000000000000000000000000000000000 --- a/journals/migrations/0039_publication_grants.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-25 15:40 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('funders', '0001_initial'), - ('journals', '0038_auto_20170725_1738'), - ] - - operations = [ - migrations.AddField( - model_name='publication', - name='grants', - field=models.ManyToManyField(blank=True, to='funders.Grant'), - ), - ] diff --git a/journals/migrations/0040_merge_20170726_0945.py b/journals/migrations/0040_merge_20170726_0945.py deleted file mode 100644 index d2c7a67aca6e2f637275e1ea48b8fc99b88b63eb..0000000000000000000000000000000000000000 --- a/journals/migrations/0040_merge_20170726_0945.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-26 07:45 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0036_auto_20170725_2048'), - ('journals', '0039_publication_grants'), - ] - - operations = [ - ] diff --git a/journals/migrations/0041_publication_funders_generic.py b/journals/migrations/0041_publication_funders_generic.py deleted file mode 100644 index 419bf2f1282102d83e154ff15449fabc1f687001..0000000000000000000000000000000000000000 --- a/journals/migrations/0041_publication_funders_generic.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-27 04:12 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('funders', '0005_grant_further_details'), - ('journals', '0040_merge_20170726_0945'), - ] - - operations = [ - migrations.AddField( - model_name='publication', - name='funders_generic', - field=models.ManyToManyField(blank=True, to='funders.Funder'), - ), - ] diff --git a/journals/migrations/0042_doajdeposit_metadata_doaj_file.py b/journals/migrations/0042_doajdeposit_metadata_doaj_file.py deleted file mode 100644 index 7902c605713e7271fb92ba8e48bb9b0a7ecec119..0000000000000000000000000000000000000000 --- a/journals/migrations/0042_doajdeposit_metadata_doaj_file.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-08-29 18:41 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0041_publication_funders_generic'), - ] - - operations = [ - migrations.AddField( - model_name='doajdeposit', - name='metadata_DOAJ_file', - field=models.FileField(blank=True, max_length=512, null=True, upload_to=''), - ), - ] diff --git a/journals/migrations/0043_auto_20170909_1649.py b/journals/migrations/0043_auto_20170909_1649.py deleted file mode 100644 index 580eb5c994a92e8e3fb5dba72b47749703dd1cfe..0000000000000000000000000000000000000000 --- a/journals/migrations/0043_auto_20170909_1649.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-09 14:49 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import scipost.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('journals', '0042_doajdeposit_metadata_doaj_file'), - ] - - operations = [ - migrations.CreateModel( - name='GenericDOIDeposit', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('object_id', models.PositiveIntegerField()), - ('timestamp', models.CharField(default='', max_length=40)), - ('doi_batch_id', models.CharField(default='', max_length=40)), - ('metadata_xml', models.TextField(blank=True, null=True)), - ('deposition_date', models.DateTimeField(blank=True, null=True)), - ('response', models.TextField(blank=True, null=True)), - ('deposit_successful', models.NullBooleanField(default=None)), - ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')), - ], - options={ - 'ordering': ['-timestamp'], - }, - ), - migrations.AlterField( - model_name='publication', - name='secondary_areas', - field=scipost.fields.ChoiceArrayField(base_field=models.CharField(choices=[('Physics', (('Phys:AE', 'Atomic, Molecular and Optical Physics - Experiment'), ('Phys:AT', 'Atomic, Molecular and Optical Physics - Theory'), ('Phys:BI', 'Biophysics'), ('Phys:CE', 'Condensed Matter Physics - Experiment'), ('Phys:CT', 'Condensed Matter Physics - Theory'), ('Phys:FD', 'Fluid Dynamics'), ('Phys:GR', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:HE', 'High-Energy Physics - Experiment'), ('Phys:HT', 'High-Energy Physics - Theory'), ('Phys:HP', 'High-Energy Physics - Phenomenology'), ('Phys:MP', 'Mathematical Physics'), ('Phys:NE', 'Nuclear Physics - Experiment'), ('Phys:NT', 'Nuclear Physics - Theory'), ('Phys:QP', 'Quantum Physics'), ('Phys:SM', 'Statistical and Soft Matter Physics'))), ('Astrophysics', (('Astro:GA', 'Astrophysics of Galaxies'), ('Astro:CO', 'Cosmology and Nongalactic Astrophysics'), ('Astro:EP', 'Earth and Planetary Astrophysics'), ('Astro:HE', 'High Energy Astrophysical Phenomena'), ('Astro:IM', 'Instrumentation and Methods for Astrophysics'), ('Astro:SR', 'Solar and Stellar Astrophysics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:AP', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:CA', 'Classical Analysis and ODEs'), ('Math:CO', 'Combinatorics'), ('Math:AC', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GN', 'General Topology'), ('Math:GT', 'Geometric Topology'), ('Math:GR', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:LO', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:PR', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SP', 'Spectral Theory'), ('Math:ST', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], max_length=10), blank=True, null=True, size=None), - ), - migrations.AlterField( - model_name='publication', - name='subject_area', - field=models.CharField(choices=[('Physics', (('Phys:AE', 'Atomic, Molecular and Optical Physics - Experiment'), ('Phys:AT', 'Atomic, Molecular and Optical Physics - Theory'), ('Phys:BI', 'Biophysics'), ('Phys:CE', 'Condensed Matter Physics - Experiment'), ('Phys:CT', 'Condensed Matter Physics - Theory'), ('Phys:FD', 'Fluid Dynamics'), ('Phys:GR', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:HE', 'High-Energy Physics - Experiment'), ('Phys:HT', 'High-Energy Physics - Theory'), ('Phys:HP', 'High-Energy Physics - Phenomenology'), ('Phys:MP', 'Mathematical Physics'), ('Phys:NE', 'Nuclear Physics - Experiment'), ('Phys:NT', 'Nuclear Physics - Theory'), ('Phys:QP', 'Quantum Physics'), ('Phys:SM', 'Statistical and Soft Matter Physics'))), ('Astrophysics', (('Astro:GA', 'Astrophysics of Galaxies'), ('Astro:CO', 'Cosmology and Nongalactic Astrophysics'), ('Astro:EP', 'Earth and Planetary Astrophysics'), ('Astro:HE', 'High Energy Astrophysical Phenomena'), ('Astro:IM', 'Instrumentation and Methods for Astrophysics'), ('Astro:SR', 'Solar and Stellar Astrophysics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:AP', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:CA', 'Classical Analysis and ODEs'), ('Math:CO', 'Combinatorics'), ('Math:AC', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GN', 'General Topology'), ('Math:GT', 'Geometric Topology'), ('Math:GR', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:LO', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:PR', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SP', 'Spectral Theory'), ('Math:ST', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], default='Phys:QP', max_length=10, verbose_name='Primary subject area'), - ), - ] diff --git a/journals/migrations/0044_publication_doideposit_needs_updating.py b/journals/migrations/0044_publication_doideposit_needs_updating.py deleted file mode 100644 index e602a8820bb05d3eec81c5264b1b3af105d7269e..0000000000000000000000000000000000000000 --- a/journals/migrations/0044_publication_doideposit_needs_updating.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-10 12:54 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0043_auto_20170909_1649'), - ] - - operations = [ - migrations.AddField( - model_name='publication', - name='doideposit_needs_updating', - field=models.BooleanField(default=False), - ), - ] diff --git a/journals/migrations/0045_auto_20170925_2124.py b/journals/migrations/0045_auto_20170925_2124.py deleted file mode 100644 index 73a946327c5389eec5dcfeb32ac89933e8a95fa3..0000000000000000000000000000000000000000 --- a/journals/migrations/0045_auto_20170925_2124.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-25 19:24 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0044_publication_doideposit_needs_updating'), - ] - - operations = [ - migrations.AlterField( - model_name='publication', - name='authors', - field=models.ManyToManyField(blank=True, related_name='publications', to='scipost.Contributor'), - ), - migrations.AlterField( - model_name='publication', - name='authors_claims', - field=models.ManyToManyField(blank=True, related_name='claimed_publications', to='scipost.Contributor'), - ), - migrations.AlterField( - model_name='publication', - name='authors_false_claims', - field=models.ManyToManyField(blank=True, related_name='false_claimed_publications', to='scipost.Contributor'), - ), - migrations.AlterField( - model_name='publication', - name='authors_unregistered', - field=models.ManyToManyField(blank=True, related_name='publications', to='journals.UnregisteredAuthor'), - ), - migrations.AlterField( - model_name='publication', - name='first_author', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='first_author_publications', to='scipost.Contributor'), - ), - migrations.AlterField( - model_name='publication', - name='first_author_unregistered', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='first_author_publications', to='journals.UnregisteredAuthor'), - ), - ] diff --git a/journals/migrations/0046_auto_20171019_1942.py b/journals/migrations/0046_auto_20171019_1942.py deleted file mode 100644 index 1c199f6062ca8483423a788fdcfee6aa3fbc523d..0000000000000000000000000000000000000000 --- a/journals/migrations/0046_auto_20171019_1942.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-19 17:42 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0045_auto_20170925_2124'), - ] - - operations = [ - migrations.AlterField( - model_name='journal', - name='name', - field=models.CharField(choices=[('SciPostPhys', 'SciPost Physics'), ('SciPostPhysLectNotes', 'SciPost Physics Lecture Notes'), ('SciPostPhysProc', 'SciPost Proceedings'), ('SciPostPhysSel', 'SciPost Physics Select'), ('SciPostPhysProc', 'SciPost Physics Proceedings')], max_length=100, unique=True), - ), - ] diff --git a/journals/migrations/0047_auto_20171101_0944.py b/journals/migrations/0047_auto_20171101_0944.py deleted file mode 100644 index 93121c17b006fd00cf0526b76b923287d52f3edc..0000000000000000000000000000000000000000 --- a/journals/migrations/0047_auto_20171101_0944.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-01 08:44 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0046_auto_20171019_1942'), - ] - - operations = [ - migrations.AlterField( - model_name='journal', - name='name', - field=models.CharField(choices=[('SciPostPhys', 'SciPost Physics'), ('SciPostPhysLectNotes', 'SciPost Physics Lecture Notes'), ('SciPostPhysProc', 'SciPost Physics Proceedings'), ('SciPostPhysSel', 'SciPost Physics Select'), ('SciPostPhysProc', 'SciPost Physics Proceedings')], max_length=100, unique=True), - ), - ] diff --git a/journals/migrations/0048_auto_20171101_1028.py b/journals/migrations/0048_auto_20171101_1028.py deleted file mode 100644 index e37643729343a94cc5e0d30fa1c3d49bc230c1fe..0000000000000000000000000000000000000000 --- a/journals/migrations/0048_auto_20171101_1028.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-01 09:28 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0047_auto_20171101_0944'), - ] - - operations = [ - migrations.AlterField( - model_name='journal', - name='issn', - field=models.CharField(blank=True, default='2542-4653', max_length=16), - ), - ] diff --git a/journals/migrations/0049_auto_20171101_2000.py b/journals/migrations/0049_auto_20171101_2000.py deleted file mode 100644 index d16635f0b7243a049ac2bf60984c551937bf31c8..0000000000000000000000000000000000000000 --- a/journals/migrations/0049_auto_20171101_2000.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-01 19:00 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0048_auto_20171101_1028'), - ] - - operations = [ - migrations.AlterField( - model_name='publication', - name='funders_generic', - field=models.ManyToManyField(blank=True, related_name='publications', to='funders.Funder'), - ), - migrations.AlterField( - model_name='publication', - name='grants', - field=models.ManyToManyField(blank=True, related_name='publications', to='funders.Grant'), - ), - ] diff --git a/journals/migrations/0050_publication_institutes.py b/journals/migrations/0050_publication_institutes.py deleted file mode 100644 index 75fe8410257d4761213cc6b6c5e9c69a10e19d67..0000000000000000000000000000000000000000 --- a/journals/migrations/0050_publication_institutes.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-02 12:05 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('affiliations', '0007_auto_20171102_1256'), - ('journals', '0049_auto_20171101_2000'), - ] - - operations = [ - migrations.AddField( - model_name='publication', - name='institutes', - field=models.ManyToManyField(blank=True, related_name='publications', to='affiliations.Institution'), - ), - ] diff --git a/journals/migrations/0051_auto_20171102_1307.py b/journals/migrations/0051_auto_20171102_1307.py deleted file mode 100644 index 68cb00d96b9855a098ad7dc2e211d40359a88ba3..0000000000000000000000000000000000000000 --- a/journals/migrations/0051_auto_20171102_1307.py +++ /dev/null @@ -1,33 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-02 12:07 -from __future__ import unicode_literals - -from django.db import migrations - - -def fill_publications(apps, schema_editor): - """ - Add all Institutes to a Publication, assuming all Contributors Affiliations are - active at moment of publication. - """ - Publication = apps.get_model('journals', 'Publication') - for publication in Publication.objects.all(): - for author in publication.authors.all(): - for affiliation in author.affiliations.all(): - publication.institutes.add(affiliation.institution) - - -def return_none(*args, **kwargs): - return - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0050_publication_institutes'), - ('affiliations', '0008_auto_20171107_1354'), - ] - - operations = [ - migrations.RunPython(fill_publications, return_none), - ] diff --git a/journals/migrations/0052_auto_20171107_1354.py b/journals/migrations/0052_auto_20171107_1354.py deleted file mode 100644 index d0dc80f5c999d3cf2b3e6cbf0a91c31caccb71f7..0000000000000000000000000000000000000000 --- a/journals/migrations/0052_auto_20171107_1354.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-07 12:54 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0051_auto_20171102_1307'), - ] - - operations = [ - migrations.RenameField( - model_name='publication', - old_name='institutes', - new_name='institutions', - ), - ] diff --git a/journals/migrations/0053_auto_20171114_1255.py b/journals/migrations/0053_auto_20171114_1255.py deleted file mode 100644 index 77b99bccdf9ad300a49f35f8dcd3389ae7dd4211..0000000000000000000000000000000000000000 --- a/journals/migrations/0053_auto_20171114_1255.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-14 11:55 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0052_auto_20171107_1354'), - ] - - operations = [ - migrations.AlterField( - model_name='journal', - name='name', - field=models.CharField(choices=[('SciPostPhys', 'SciPost Physics'), ('SciPostPhysLectNotes', 'SciPost Physics Lecture Notes'), ('SciPostPhysProc', 'SciPost Physics Proceedings'), ('SciPostPhysSel', 'SciPost Physics Select')], max_length=100, unique=True), - ), - ] diff --git a/mailing_lists/migrations/0001_initial.py b/mailing_lists/migrations/0001_initial.py index 1c909a2c13f0f9833d0d0d04d6d18ed151d2cc0e..83e3633f81d8ce30106d2ac4dbe93f82b05eb719 100644 --- a/mailing_lists/migrations/0001_initial.py +++ b/mailing_lists/migrations/0001_initial.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-04-23 14:08 +# Generated by Django 1.11.4 on 2017-12-29 13:35 from __future__ import unicode_literals from django.db import migrations, models @@ -13,47 +13,35 @@ class Migration(migrations.Migration): initial = True dependencies = [ - ('scipost', '0050_auto_20170416_2152'), - ('auth', '0008_alter_user_username_max_length'), ] operations = [ migrations.CreateModel( - name='ActiveMailchimpSubscription', + name='MailchimpList', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(default=django.utils.timezone.now)), ('latest_activity', scipost.db.fields.AutoDateTimeField(blank=True, default=django.utils.timezone.now, editable=False)), + ('name', models.CharField(max_length=255)), + ('internal_name', models.CharField(blank=True, max_length=255)), + ('supporting_text', models.TextField(blank=True)), + ('mailchimp_list_id', models.CharField(max_length=255, unique=True)), + ('status', models.CharField(choices=[('active', 'Active'), ('deactivated', 'Deactivated')], default='active', max_length=255)), + ('subscriber_count', models.PositiveIntegerField(default=0)), + ('open_for_subscription', models.BooleanField(default=False)), ], options={ - 'abstract': False, + 'ordering': ['status', 'internal_name', 'name'], }, ), migrations.CreateModel( - name='MailchimpList', + name='MailchimpSubscription', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(default=django.utils.timezone.now)), ('latest_activity', scipost.db.fields.AutoDateTimeField(blank=True, default=django.utils.timezone.now, editable=False)), - ('name', models.CharField(max_length=255)), - ('internal_name', models.CharField(blank=True, max_length=255)), - ('supporting_text', models.TextField(blank=True)), - ('mailchimp_list_id', models.CharField(max_length=255)), - ('status', models.CharField(choices=[('active', 'Active'), ('deactivated', 'Deactivated')], default='active', max_length=255)), - ('allowed_groups', models.ManyToManyField(related_name='allowed_mailchimp_lists', to='auth.Group')), + ('status', models.CharField(choices=[('subscribed', 'Subscribed'), ('unsubscribed', 'Unsubscribed')], default='subscribed', max_length=255)), + ('active_list', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='mailing_lists.MailchimpList')), ], - options={ - 'default_permissions': ('delete',), - }, - ), - migrations.AddField( - model_name='activemailchimpsubscription', - name='active_list', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='mailing_lists.MailchimpList'), - ), - migrations.AddField( - model_name='activemailchimpsubscription', - name='contributor', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor'), ), ] diff --git a/mailing_lists/migrations/0002_auto_20170423_1943.py b/mailing_lists/migrations/0002_auto_20170423_1943.py deleted file mode 100644 index c39c7793b8f3120021458108d6eea1e429976402..0000000000000000000000000000000000000000 --- a/mailing_lists/migrations/0002_auto_20170423_1943.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-04-23 17:43 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0050_auto_20170416_2152'), - ('mailing_lists', '0001_initial'), - ] - - operations = [ - migrations.AlterModelOptions( - name='mailchimplist', - options={'ordering': ['status', 'internal_name', 'name']}, - ), - migrations.AddField( - model_name='mailchimplist', - name='open_for_subscription', - field=models.BooleanField(default=False), - ), - migrations.AlterField( - model_name='activemailchimpsubscription', - name='contributor', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='mail_subscription', to='scipost.Contributor'), - ), - migrations.AlterField( - model_name='mailchimplist', - name='mailchimp_list_id', - field=models.CharField(max_length=255, unique=True), - ), - migrations.AlterUniqueTogether( - name='activemailchimpsubscription', - unique_together=set([('active_list', 'contributor')]), - ), - ] diff --git a/mailing_lists/migrations/0002_auto_20171229_1435.py b/mailing_lists/migrations/0002_auto_20171229_1435.py new file mode 100644 index 0000000000000000000000000000000000000000..1a7cd186742daaeed96b1524683c9fa06811b289 --- /dev/null +++ b/mailing_lists/migrations/0002_auto_20171229_1435.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.4 on 2017-12-29 13:35 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('mailing_lists', '0001_initial'), + ('scipost', '0002_auto_20171229_1435'), + ('auth', '0008_alter_user_username_max_length'), + ] + + operations = [ + migrations.AddField( + model_name='mailchimpsubscription', + name='contributor', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='mail_subscription', to='scipost.Contributor'), + ), + migrations.AddField( + model_name='mailchimplist', + name='allowed_groups', + field=models.ManyToManyField(related_name='allowed_mailchimp_lists', to='auth.Group'), + ), + migrations.AlterUniqueTogether( + name='mailchimpsubscription', + unique_together=set([('active_list', 'contributor')]), + ), + ] diff --git a/mailing_lists/migrations/0003_activemailchimpsubscription_status.py b/mailing_lists/migrations/0003_activemailchimpsubscription_status.py deleted file mode 100644 index 5f37e18cf2c96bac71543ce2232adb4d9035efc0..0000000000000000000000000000000000000000 --- a/mailing_lists/migrations/0003_activemailchimpsubscription_status.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-04-23 20:36 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('mailing_lists', '0002_auto_20170423_1943'), - ] - - operations = [ - migrations.AddField( - model_name='activemailchimpsubscription', - name='status', - field=models.CharField(choices=[('subscribed', 'Subscribed'), ('unsubscribed', 'Unsubscribed')], default='subscribed', max_length=255), - ), - ] diff --git a/mailing_lists/migrations/0004_auto_20170423_2238.py b/mailing_lists/migrations/0004_auto_20170423_2238.py deleted file mode 100644 index 320ca406e5b69fa4b925ac9f69540f11bb02dd13..0000000000000000000000000000000000000000 --- a/mailing_lists/migrations/0004_auto_20170423_2238.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-04-23 20:38 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('mailing_lists', '0003_activemailchimpsubscription_status'), - ] - - operations = [ - migrations.RenameModel( - old_name='ActiveMailchimpSubscription', - new_name='MailchimpSubscription', - ), - ] diff --git a/mailing_lists/migrations/0005_mailchimplist_subscriber_count.py b/mailing_lists/migrations/0005_mailchimplist_subscriber_count.py deleted file mode 100644 index eba275dced47db292b60ef89881325ff0b913194..0000000000000000000000000000000000000000 --- a/mailing_lists/migrations/0005_mailchimplist_subscriber_count.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-07 21:24 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('mailing_lists', '0004_auto_20170423_2238'), - ] - - operations = [ - migrations.AddField( - model_name='mailchimplist', - name='subscriber_count', - field=models.PositiveIntegerField(default=0), - ), - ] diff --git a/news/migrations/0001_initial.py b/news/migrations/0001_initial.py index 4df07209043385758fe45a5f4a24096fbfd20415..74871512700a6b53e6f42d4d64446c0ae990e4c2 100644 --- a/news/migrations/0001_initial.py +++ b/news/migrations/0001_initial.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-03-06 07:04 +# Generated by Django 1.11.4 on 2017-12-29 13:35 from __future__ import unicode_literals from django.db import migrations, models @@ -10,10 +10,9 @@ class Migration(migrations.Migration): initial = True dependencies = [ - ('scipost', '0039_auto_20170306_0804'), ] - state_operations = [ + operations = [ migrations.CreateModel( name='NewsItem', fields=[ @@ -21,15 +20,13 @@ class Migration(migrations.Migration): ('date', models.DateField()), ('headline', models.CharField(max_length=300)), ('blurb', models.TextField()), - ('followup_link', models.URLField(blank=True, null=True)), - ('followup_link_text', models.CharField(blank=True, max_length=300, null=True)), + ('followup_link', models.URLField(blank=True)), + ('followup_link_text', models.CharField(blank=True, max_length=300)), + ('on_homepage', models.BooleanField(default=True)), ], options={ + 'ordering': ['-date'], 'db_table': 'scipost_newsitem', }, ), ] - - operations = [ - migrations.SeparateDatabaseAndState(state_operations=state_operations) - ] diff --git a/news/migrations/0002_newsitem_on_homepage.py b/news/migrations/0002_newsitem_on_homepage.py deleted file mode 100644 index 63a77ba1e3ac5ff1de43e51a6f93dfab1c596a55..0000000000000000000000000000000000000000 --- a/news/migrations/0002_newsitem_on_homepage.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-08-01 16:18 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('news', '0001_initial'), - ] - - operations = [ - migrations.AddField( - model_name='newsitem', - name='on_homepage', - field=models.BooleanField(default=True), - ), - ] diff --git a/news/migrations/0003_auto_20170812_0043.py b/news/migrations/0003_auto_20170812_0043.py deleted file mode 100644 index 4b862c311c6ed9382219ace7139539387ec44ebf..0000000000000000000000000000000000000000 --- a/news/migrations/0003_auto_20170812_0043.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-08-11 22:43 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('news', '0002_newsitem_on_homepage'), - ] - - operations = [ - migrations.AlterModelOptions( - name='newsitem', - options={'ordering': ['-date']}, - ), - ] diff --git a/news/migrations/0004_auto_20170913_1339.py b/news/migrations/0004_auto_20170913_1339.py deleted file mode 100644 index 05a43bd4f778bf77b0ab13ba517eb2ec1a7adc56..0000000000000000000000000000000000000000 --- a/news/migrations/0004_auto_20170913_1339.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-13 11:39 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('news', '0003_auto_20170812_0043'), - ] - - operations = [ - migrations.AlterField( - model_name='newsitem', - name='followup_link', - field=models.URLField(blank=True, default=''), - preserve_default=False, - ), - migrations.AlterField( - model_name='newsitem', - name='followup_link_text', - field=models.CharField(blank=True, default='', max_length=300), - preserve_default=False, - ), - ] diff --git a/notifications/migrations/0001_initial.py b/notifications/migrations/0001_initial.py index 8e4dfe442887f4f26d76b60d175abfafb98ce9bd..1df2a7e1e27524846bbc1c5b43db0b190f29f96f 100644 --- a/notifications/migrations/0001_initial.py +++ b/notifications/migrations/0001_initial.py @@ -1,11 +1,10 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-11 18:33 +# Generated by Django 1.11.4 on 2017-12-29 13:35 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion -import django.utils.timezone class Migration(migrations.Migration): @@ -13,25 +12,32 @@ class Migration(migrations.Migration): initial = True dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('contenttypes', '0002_remove_content_type_name'), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ + migrations.CreateModel( + name='FakeActors', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=256)), + ], + ), migrations.CreateModel( name='Notification', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('level', models.CharField(choices=[('success', 'Success'), ('info', 'Info'), ('warning', 'Warning'), ('error', 'Error')], default='info', max_length=20)), ('unread', models.BooleanField(default=True)), + ('pseudo_unread', models.BooleanField(default=True)), ('actor_object_id', models.CharField(max_length=255)), ('verb', models.CharField(max_length=255)), ('description', models.TextField(blank=True, null=True)), ('target_object_id', models.CharField(blank=True, max_length=255, null=True)), ('action_object_object_id', models.CharField(blank=True, max_length=255, null=True)), - ('created', models.DateTimeField(default=django.utils.timezone.now)), - ('public', models.BooleanField(default=True)), - ('emailed', models.BooleanField(default=False)), + ('created', models.DateTimeField(auto_now_add=True)), + ('internal_type', models.CharField(blank=True, choices=[('referee_task_deadline', 'Refereeing Task is approaching its deadline'), ('referee_task_overdue', 'Refereeing Task is overdue')], max_length=255)), ('action_object_content_type', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='notify_action_object', to='contenttypes.ContentType')), ('actor_content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='notify_actor', to='contenttypes.ContentType')), ('recipient', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='notifications', to=settings.AUTH_USER_MODEL)), diff --git a/notifications/migrations/0002_auto_20171021_1821.py b/notifications/migrations/0002_auto_20171021_1821.py deleted file mode 100644 index 30945c04698db4acdb74c2157fc7a2c76e372d3a..0000000000000000000000000000000000000000 --- a/notifications/migrations/0002_auto_20171021_1821.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-21 16:21 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('notifications', '0001_initial'), - ] - - operations = [ - migrations.RemoveField( - model_name='notification', - name='emailed', - ), - migrations.RemoveField( - model_name='notification', - name='public', - ), - migrations.AddField( - model_name='notification', - name='internal_type', - field=models.CharField(blank=True, choices=[('referee_task_deadline', 'Refereeing Task is approaching its deadline'), ('referee_task_overdue', 'Refereeing Task is overdue')], max_length=255), - ), - ] diff --git a/notifications/migrations/0003_fakeactors.py b/notifications/migrations/0003_fakeactors.py deleted file mode 100644 index d254da9d3748ba9bb62c850f48a8f3b696304b02..0000000000000000000000000000000000000000 --- a/notifications/migrations/0003_fakeactors.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-01 21:08 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('notifications', '0002_auto_20171021_1821'), - ] - - operations = [ - migrations.CreateModel( - name='FakeActors', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('name', models.CharField(max_length=256)), - ], - ), - ] diff --git a/notifications/migrations/0003_notification_pseudo_unread.py b/notifications/migrations/0003_notification_pseudo_unread.py deleted file mode 100644 index 6e6953bef863e3fd5fd39d9818696faffc1cefa5..0000000000000000000000000000000000000000 --- a/notifications/migrations/0003_notification_pseudo_unread.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-29 20:37 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('notifications', '0002_auto_20171021_1821'), - ] - - operations = [ - migrations.AddField( - model_name='notification', - name='pseudo_unread', - field=models.BooleanField(default=True), - ), - ] diff --git a/notifications/migrations/0004_merge_20171103_1132.py b/notifications/migrations/0004_merge_20171103_1132.py deleted file mode 100644 index d1e1181dc2afeed0f959be72acb45789d4e141e7..0000000000000000000000000000000000000000 --- a/notifications/migrations/0004_merge_20171103_1132.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-03 10:32 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('notifications', '0003_fakeactors'), - ('notifications', '0003_notification_pseudo_unread'), - ] - - operations = [ - ] diff --git a/notifications/migrations/0005_auto_20171105_1004.py b/notifications/migrations/0005_auto_20171105_1004.py deleted file mode 100644 index 6fa563d7794c73ef134263774bd4dc39936b5a60..0000000000000000000000000000000000000000 --- a/notifications/migrations/0005_auto_20171105_1004.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-05 09:04 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('notifications', '0004_merge_20171103_1132'), - ] - - operations = [ - migrations.AddField( - model_name='notification', - name='unread_datetime', - field=models.DateTimeField(blank=True, null=True), - ), - migrations.AlterField( - model_name='notification', - name='created', - field=models.DateTimeField(auto_now_add=True), - ), - ] diff --git a/notifications/migrations/0006_remove_notification_unread_datetime.py b/notifications/migrations/0006_remove_notification_unread_datetime.py deleted file mode 100644 index 8de0a18add4020f5ac0f0715a493efb758f09adf..0000000000000000000000000000000000000000 --- a/notifications/migrations/0006_remove_notification_unread_datetime.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-05 09:09 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('notifications', '0005_auto_20171105_1004'), - ] - - operations = [ - migrations.RemoveField( - model_name='notification', - name='unread_datetime', - ), - ] diff --git a/partners/migrations/0001_initial.py b/partners/migrations/0001_initial.py index 9f7fdd7dcfe5882c5057e8d2d8991c996d956abc..12b9d7105f098e7e1624b8e1c3cfa9e235a20f6f 100644 --- a/partners/migrations/0001_initial.py +++ b/partners/migrations/0001_initial.py @@ -1,12 +1,13 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-05-19 08:59 +# Generated by Django 1.11.4 on 2017-12-29 13:35 from __future__ import unicode_literals import datetime -from django.conf import settings from django.db import migrations, models -import django.db.models.deletion +import django.utils.timezone import django_countries.fields +import scipost.fields +import scipost.storage class Migration(migrations.Migration): @@ -14,7 +15,6 @@ class Migration(migrations.Migration): initial = True dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ @@ -25,13 +25,44 @@ class Migration(migrations.Migration): ('name', models.CharField(max_length=128)), ('status', models.CharField(choices=[('Prospective', 'Prospective'), ('Active', 'Active'), ('Inactive', 'Inactive')], max_length=16)), ], + options={ + 'verbose_name_plural': 'consortia', + }, ), migrations.CreateModel( - name='ContactPerson', + name='Contact', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('title', models.CharField(choices=[('PR', 'Prof.'), ('DR', 'Dr'), ('MR', 'Mr'), ('MRS', 'Mrs')], max_length=4)), - ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), + ('kind', scipost.fields.ChoiceArrayField(base_field=models.CharField(choices=[('gen', 'General Contact'), ('tech', 'Technical Contact'), ('fin', 'Financial Contact'), ('leg', 'Legal Contact')], max_length=4), size=None)), + ('title', models.CharField(choices=[('PR', 'Prof.'), ('DR', 'Dr'), ('MR', 'Mr'), ('MRS', 'Mrs'), ('MS', 'Ms')], max_length=4)), + ('description', models.CharField(blank=True, max_length=256)), + ('activation_key', models.CharField(blank=True, max_length=40)), + ('key_expires', models.DateTimeField(default=django.utils.timezone.now)), + ], + ), + migrations.CreateModel( + name='ContactRequest', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('email', models.EmailField(max_length=254)), + ('kind', scipost.fields.ChoiceArrayField(base_field=models.CharField(choices=[('gen', 'General Contact'), ('tech', 'Technical Contact'), ('fin', 'Financial Contact'), ('leg', 'Legal Contact')], max_length=4), size=None)), + ('first_name', models.CharField(max_length=64)), + ('last_name', models.CharField(max_length=64)), + ('title', models.CharField(choices=[('PR', 'Prof.'), ('DR', 'Dr'), ('MR', 'Mr'), ('MRS', 'Mrs'), ('MS', 'Ms')], max_length=4)), + ('description', models.CharField(blank=True, max_length=256)), + ('status', models.CharField(choices=[('init', 'Request submitted by Contact'), ('proc', 'Processed'), ('decl', 'Declined')], default='init', max_length=4)), + ], + ), + migrations.CreateModel( + name='Institution', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('kind', models.CharField(choices=[('Res. Inst.', 'Research Institute'), ('Int. Fund. Agency', 'International Funding Agency'), ('Nat. Fund. Agency', 'National Funding Agency'), ('Nat. Lab.', 'National Laboratory'), ('Nat. Library', 'National Library'), ('Nat. Acad.', 'National Academy'), ('Univ. Library', 'University (and its Library)'), ('Res. Library', 'Research Library'), ('Prof. Soc.', 'Professional Society'), ('Nat. Consor.', 'National Consortium'), ('Foundation', 'Foundation'), ('Individual', 'Individual')], max_length=32)), + ('name', models.CharField(max_length=256)), + ('logo', models.ImageField(blank=True, upload_to='institutions/logo/%Y/')), + ('acronym', models.CharField(max_length=16)), + ('address', models.TextField(blank=True)), + ('country', django_countries.fields.CountryField(max_length=2)), ], ), migrations.CreateModel( @@ -41,34 +72,65 @@ class Migration(migrations.Migration): ('status', models.CharField(choices=[('Submitted', 'Request submitted by Partner'), ('Pending', 'Sent to Partner, response pending'), ('Signed', 'Signed by Partner'), ('Honoured', 'Honoured: payment of Partner received'), ('Completed', 'Completed: agreement has been fulfilled')], max_length=16)), ('date_requested', models.DateField()), ('start_date', models.DateField()), + ('end_date', models.DateField()), ('duration', models.DurationField(choices=[(datetime.timedelta(365), '1 year'), (datetime.timedelta(730), '2 years'), (datetime.timedelta(1095), '3 years'), (datetime.timedelta(1460), '4 years'), (datetime.timedelta(1825), '5 years')])), - ('offered_yearly_contribution', models.SmallIntegerField(default=0)), - ('consortium', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='partners.Consortium')), + ('offered_yearly_contribution', models.SmallIntegerField(default=0, help_text="Yearly contribution in euro's (€)")), ], ), migrations.CreateModel( name='Partner', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('partner_type', models.CharField(choices=[('Int. Fund. Agency', 'International Funding Agency'), ('Nat. Fund. Agency', 'National Funding Agency'), ('Nat. Library', 'National Library'), ('Univ. Library', 'University Library'), ('Res. Library', 'Research Library'), ('Foundation', 'Foundation'), ('Individual', 'Individual')], max_length=32)), - ('status', models.CharField(choices=[('Prospective', 'Prospective'), ('Negotiating', 'Negotiating'), ('Active', 'Active'), ('Inactive', 'Inactive')], max_length=16)), + ('status', models.CharField(choices=[('Initiated', 'Initiated'), ('Contacted', 'Contacted'), ('Negotiating', 'Negotiating'), ('Uninterested', 'Uninterested'), ('Active', 'Active'), ('Inactive', 'Inactive')], default='Initiated', max_length=16)), + ], + ), + migrations.CreateModel( + name='PartnerEvent', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('event', models.CharField(choices=[('initial', 'Contacted (initial)'), ('status_update', 'Status updated'), ('comment', 'Comment added')], max_length=64)), + ('comments', models.TextField(blank=True)), + ('noted_on', models.DateTimeField(auto_now_add=True)), + ], + ), + migrations.CreateModel( + name='PartnersAttachment', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('attachment', models.FileField(storage=scipost.storage.SecureFileStorage(), upload_to='UPLOADS/PARTNERS/ATTACHMENTS')), + ('name', models.CharField(max_length=128)), + ], + ), + migrations.CreateModel( + name='ProspectiveContact', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('title', models.CharField(choices=[('PR', 'Prof.'), ('DR', 'Dr'), ('MR', 'Mr'), ('MRS', 'Mrs'), ('MS', 'Ms')], max_length=4)), + ('first_name', models.CharField(max_length=64)), + ('last_name', models.CharField(max_length=64)), + ('email', models.EmailField(max_length=254)), + ('role', models.CharField(max_length=128)), + ], + ), + migrations.CreateModel( + name='ProspectivePartner', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('kind', models.CharField(choices=[('Res. Inst.', 'Research Institute'), ('Int. Fund. Agency', 'International Funding Agency'), ('Nat. Fund. Agency', 'National Funding Agency'), ('Nat. Lab.', 'National Laboratory'), ('Nat. Library', 'National Library'), ('Nat. Acad.', 'National Academy'), ('Univ. Library', 'University (and its Library)'), ('Res. Library', 'Research Library'), ('Prof. Soc.', 'Professional Society'), ('Nat. Consor.', 'National Consortium'), ('Foundation', 'Foundation'), ('Individual', 'Individual')], default='Univ. Library', max_length=32)), ('institution_name', models.CharField(max_length=256)), - ('institution_acronym', models.CharField(max_length=10)), - ('institution_address', models.CharField(blank=True, max_length=1000, null=True)), ('country', django_countries.fields.CountryField(max_length=2)), - ('financial_contact', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='partner_financial_contact', to='partners.ContactPerson')), - ('main_contact', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='partner_main_contact', to='partners.ContactPerson')), - ('technical_contact', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='partner_technical_contact', to='partners.ContactPerson')), + ('date_received', models.DateTimeField(auto_now_add=True)), + ('date_processed', models.DateTimeField(blank=True, null=True)), + ('status', models.CharField(choices=[('requested', 'Requested (from online form)'), ('added', 'Added internally'), ('approached', 'Approached'), ('followuped', 'Followed-up'), ('negotiating', 'Negotiating'), ('uninterested', 'Uninterested'), ('processed', 'Processed into Partner')], default='added', max_length=32)), ], ), - migrations.AddField( - model_name='membershipagreement', - name='partner', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='partners.Partner'), - ), - migrations.AddField( - model_name='consortium', - name='partners', - field=models.ManyToManyField(blank=True, to='partners.Partner'), + migrations.CreateModel( + name='ProspectivePartnerEvent', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('event', models.CharField(choices=[('requested', 'Requested (from online form)'), ('comment', 'Comment added'), ('email_sent', 'Email sent'), ('negotiating', 'Initiated negotiation'), ('marked_as_uninterested', 'Marked as uninterested'), ('promoted', 'Promoted to Partner')], max_length=64)), + ('comments', models.TextField(blank=True)), + ('noted_on', models.DateTimeField(auto_now_add=True)), + ], ), ] diff --git a/partners/migrations/0002_auto_20170519_1335.py b/partners/migrations/0002_auto_20170519_1335.py deleted file mode 100644 index 8bffe6c9bbe4a80f18c7533550ad3b1ebce65321..0000000000000000000000000000000000000000 --- a/partners/migrations/0002_auto_20170519_1335.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-05-19 11:35 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.utils.timezone -import django_countries.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0001_initial'), - ] - - operations = [ - migrations.CreateModel( - name='MembershipQuery', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('title', models.CharField(choices=[('PR', 'Prof.'), ('DR', 'Dr'), ('MR', 'Mr'), ('MRS', 'Mrs')], max_length=4)), - ('first_name', models.CharField(max_length=32)), - ('last_name', models.CharField(max_length=32)), - ('email', models.EmailField(max_length=254)), - ('partner_type', models.CharField(choices=[('Int. Fund. Agency', 'International Funding Agency'), ('Nat. Fund. Agency', 'National Funding Agency'), ('Nat. Library', 'National Library'), ('Univ. Library', 'University Library'), ('Res. Library', 'Research Library'), ('Foundation', 'Foundation'), ('Individual', 'Individual')], max_length=32)), - ('institution_name', models.CharField(max_length=256)), - ('country', django_countries.fields.CountryField(max_length=2)), - ('date_received', models.DateTimeField(default=django.utils.timezone.now)), - ('date_processed', models.DateTimeField()), - ('processed', models.BooleanField(default=False)), - ], - options={ - 'verbose_name_plural': 'membership queries', - }, - ), - migrations.AlterModelOptions( - name='consortium', - options={'verbose_name_plural': 'consortia'}, - ), - ] diff --git a/partners/migrations/0002_auto_20171229_1435.py b/partners/migrations/0002_auto_20171229_1435.py new file mode 100644 index 0000000000000000000000000000000000000000..1782e7cacd355da8872871bd2fd89060f4ee7bf5 --- /dev/null +++ b/partners/migrations/0002_auto_20171229_1435.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.4 on 2017-12-29 13:35 +from __future__ import unicode_literals + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion +import scipost.models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('partners', '0001_initial'), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ('scipost', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='prospectivepartnerevent', + name='noted_by', + field=models.ForeignKey(blank=True, null=True, on_delete=models.SET(scipost.models.get_sentinel_user), to='scipost.Contributor'), + ), + migrations.AddField( + model_name='prospectivepartnerevent', + name='prospartner', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='partners.ProspectivePartner'), + ), + migrations.AddField( + model_name='prospectivecontact', + name='prospartner', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='prospective_contacts', to='partners.ProspectivePartner'), + ), + migrations.AddField( + model_name='partnersattachment', + name='agreement', + field=models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, related_name='attachments', to='partners.MembershipAgreement'), + ), + migrations.AddField( + model_name='partnerevent', + name='noted_by', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), + ), + migrations.AddField( + model_name='partnerevent', + name='partner', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='events', to='partners.Partner'), + ), + migrations.AddField( + model_name='partner', + name='institution', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='partners.Institution'), + ), + migrations.AddField( + model_name='partner', + name='main_contact', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partner_main_contact', to='partners.Contact'), + ), + migrations.AddField( + model_name='membershipagreement', + name='consortium', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='partners.Consortium'), + ), + migrations.AddField( + model_name='membershipagreement', + name='partner', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='agreements', to='partners.Partner'), + ), + migrations.AddField( + model_name='contactrequest', + name='partner', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='partners.Partner'), + ), + migrations.AddField( + model_name='contact', + name='consortia', + field=models.ManyToManyField(blank=True, help_text='All Consortia for which the Contact has explicit permission to view/edit its data.', to='partners.Consortium'), + ), + migrations.AddField( + model_name='contact', + name='partners', + field=models.ManyToManyField(help_text='All Partners (+related Institutions) the Contact is related to.', to='partners.Partner'), + ), + migrations.AddField( + model_name='contact', + name='user', + field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='partner_contact', to=settings.AUTH_USER_MODEL), + ), + migrations.AddField( + model_name='consortium', + name='partners', + field=models.ManyToManyField(blank=True, to='partners.Partner'), + ), + ] diff --git a/partners/migrations/0003_auto_20170519_1424.py b/partners/migrations/0003_auto_20170519_1424.py deleted file mode 100644 index c5d9c35d8fcd8f7dc056c421fe2b0b32ceae6339..0000000000000000000000000000000000000000 --- a/partners/migrations/0003_auto_20170519_1424.py +++ /dev/null @@ -1,37 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-05-19 12:24 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.utils.timezone -import django_countries.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0002_auto_20170519_1335'), - ] - - operations = [ - migrations.CreateModel( - name='ProspectivePartner', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('title', models.CharField(choices=[('PR', 'Prof.'), ('DR', 'Dr'), ('MR', 'Mr'), ('MRS', 'Mrs')], max_length=4)), - ('first_name', models.CharField(max_length=32)), - ('last_name', models.CharField(max_length=32)), - ('email', models.EmailField(max_length=254)), - ('role', models.CharField(max_length=128)), - ('partner_type', models.CharField(choices=[('Int. Fund. Agency', 'International Funding Agency'), ('Nat. Fund. Agency', 'National Funding Agency'), ('Nat. Library', 'National Library'), ('Univ. Library', 'University Library'), ('Res. Library', 'Research Library'), ('Foundation', 'Foundation'), ('Individual', 'Individual')], max_length=32)), - ('institution_name', models.CharField(max_length=256)), - ('country', django_countries.fields.CountryField(max_length=2)), - ('date_received', models.DateTimeField(default=django.utils.timezone.now)), - ('date_processed', models.DateTimeField()), - ('processed', models.BooleanField(default=False)), - ], - ), - migrations.DeleteModel( - name='MembershipQuery', - ), - ] diff --git a/partners/migrations/0004_auto_20170519_1425.py b/partners/migrations/0004_auto_20170519_1425.py deleted file mode 100644 index f44c307494246de26b93ad9a8dc869f5a9d3a8a2..0000000000000000000000000000000000000000 --- a/partners/migrations/0004_auto_20170519_1425.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-05-19 12:25 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0003_auto_20170519_1424'), - ] - - operations = [ - migrations.AlterField( - model_name='prospectivepartner', - name='date_processed', - field=models.DateTimeField(blank=True, null=True), - ), - ] diff --git a/partners/migrations/0005_auto_20170603_1646.py b/partners/migrations/0005_auto_20170603_1646.py deleted file mode 100644 index 323c33155366c09fa911175f93585202187f00f9..0000000000000000000000000000000000000000 --- a/partners/migrations/0005_auto_20170603_1646.py +++ /dev/null @@ -1,164 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-03 14:46 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion -import django.utils.timezone -import django_countries.fields - - -class Migration(migrations.Migration): - - dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ('scipost', '0055_auto_20170519_0937'), - ('partners', '0004_auto_20170519_1425'), - ] - - operations = [ - migrations.CreateModel( - name='Contact', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('kind', models.CharField(max_length=128)), - ('title', models.CharField(choices=[('PR', 'Prof.'), ('DR', 'Dr'), ('MR', 'Mr'), ('MRS', 'Mrs')], max_length=4)), - ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), - ], - ), - migrations.CreateModel( - name='Institution', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('kind', models.CharField(choices=[('Res. Inst.', 'Research Institute'), ('Int. Fund. Agency', 'International Funding Agency'), ('Nat. Fund. Agency', 'National Funding Agency'), ('Nat. Lab.', 'National Laboratory'), ('Nat. Library', 'National Library'), ('Nat. Acad.', 'National Academy'), ('Univ. Library', 'University (and its Library)'), ('Res. Library', 'Research Library'), ('Prof. Soc.', 'Professional Society'), ('Foundation', 'Foundation'), ('Individual', 'Individual')], max_length=32)), - ('name', models.CharField(max_length=256)), - ('acronym', models.CharField(max_length=16)), - ('address', models.CharField(blank=True, max_length=1000, null=True)), - ('country', django_countries.fields.CountryField(max_length=2)), - ], - ), - migrations.CreateModel( - name='PartnerEvent', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('event', models.CharField(choices=[('initial', 'Contacted (initial)'), ('status_update', 'Status updated'), ('comment', 'Comment added')], max_length=64)), - ('comments', models.TextField(blank=True, null=True)), - ('noted_on', models.DateTimeField(default=django.utils.timezone.now)), - ('noted_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor')), - ], - ), - migrations.CreateModel( - name='ProspectiveContact', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('title', models.CharField(choices=[('PR', 'Prof.'), ('DR', 'Dr'), ('MR', 'Mr'), ('MRS', 'Mrs')], max_length=4)), - ('first_name', models.CharField(max_length=64)), - ('last_name', models.CharField(max_length=64)), - ('email', models.EmailField(max_length=254)), - ('role', models.CharField(max_length=128)), - ], - ), - migrations.CreateModel( - name='ProspectivePartnerEvent', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('event', models.CharField(choices=[('comment', 'Comment added')], max_length=64)), - ('comments', models.TextField(blank=True, null=True)), - ('noted_on', models.DateTimeField(default=django.utils.timezone.now)), - ('duration', models.DurationField(blank=True, null=True)), - ('noted_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor')), - ], - ), - migrations.RemoveField( - model_name='contactperson', - name='user', - ), - migrations.RemoveField( - model_name='partner', - name='country', - ), - migrations.RemoveField( - model_name='partner', - name='institution_acronym', - ), - migrations.RemoveField( - model_name='partner', - name='institution_address', - ), - migrations.RemoveField( - model_name='partner', - name='institution_name', - ), - migrations.RemoveField( - model_name='partner', - name='partner_type', - ), - migrations.RemoveField( - model_name='prospectivepartner', - name='email', - ), - migrations.RemoveField( - model_name='prospectivepartner', - name='first_name', - ), - migrations.RemoveField( - model_name='prospectivepartner', - name='last_name', - ), - migrations.RemoveField( - model_name='prospectivepartner', - name='partner_type', - ), - migrations.RemoveField( - model_name='prospectivepartner', - name='role', - ), - migrations.RemoveField( - model_name='prospectivepartner', - name='title', - ), - migrations.AddField( - model_name='prospectivepartner', - name='kind', - field=models.CharField(choices=[('Res. Inst.', 'Research Institute'), ('Int. Fund. Agency', 'International Funding Agency'), ('Nat. Fund. Agency', 'National Funding Agency'), ('Nat. Lab.', 'National Laboratory'), ('Nat. Library', 'National Library'), ('Nat. Acad.', 'National Academy'), ('Univ. Library', 'University (and its Library)'), ('Res. Library', 'Research Library'), ('Prof. Soc.', 'Professional Society'), ('Foundation', 'Foundation'), ('Individual', 'Individual')], default='Univ. Library', max_length=32), - ), - migrations.AlterField( - model_name='partner', - name='financial_contact', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='partner_financial_contact', to='partners.Contact'), - ), - migrations.AlterField( - model_name='partner', - name='main_contact', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='partner_main_contact', to='partners.Contact'), - ), - migrations.AlterField( - model_name='partner', - name='technical_contact', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='partner_technical_contact', to='partners.Contact'), - ), - migrations.DeleteModel( - name='ContactPerson', - ), - migrations.AddField( - model_name='prospectivepartnerevent', - name='prospective_partner', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='partners.ProspectivePartner'), - ), - migrations.AddField( - model_name='prospectivecontact', - name='institution', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='partners.ProspectivePartner'), - ), - migrations.AddField( - model_name='partnerevent', - name='partner', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='partners.Partner'), - ), - migrations.AddField( - model_name='partner', - name='institution', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='partners.Institution'), - ), - ] diff --git a/partners/migrations/0006_auto_20170604_0459.py b/partners/migrations/0006_auto_20170604_0459.py deleted file mode 100644 index 41f7126405b205015e8ad02b0d043bfe24c4ea14..0000000000000000000000000000000000000000 --- a/partners/migrations/0006_auto_20170604_0459.py +++ /dev/null @@ -1,34 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-04 02:59 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0005_auto_20170603_1646'), - ] - - operations = [ - migrations.RenameField( - model_name='prospectivecontact', - old_name='institution', - new_name='prospartner', - ), - migrations.RemoveField( - model_name='prospectivepartner', - name='processed', - ), - migrations.AddField( - model_name='prospectivepartner', - name='status', - field=models.CharField(choices=[('requested', 'Requested (from online form)'), ('added', 'Added internally'), ('processed', 'Processed into Partner object')], default='added', max_length=32), - ), - migrations.AlterField( - model_name='partner', - name='status', - field=models.CharField(choices=[('Initiated', 'Initiated'), ('Contacted', 'Contacted'), ('Negotiating', 'Negotiating'), ('Uninterested', 'Uninterested'), ('Active', 'Active'), ('Inactive', 'Inactive')], max_length=16), - ), - ] diff --git a/partners/migrations/0007_auto_20170604_0629.py b/partners/migrations/0007_auto_20170604_0629.py deleted file mode 100644 index 85e41ea59b2757ae781413cbef9d859840286fb6..0000000000000000000000000000000000000000 --- a/partners/migrations/0007_auto_20170604_0629.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-04 04:29 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0006_auto_20170604_0459'), - ] - - operations = [ - migrations.RenameField( - model_name='prospectivepartnerevent', - old_name='prospective_partner', - new_name='prospartner', - ), - migrations.RemoveField( - model_name='prospectivepartnerevent', - name='duration', - ), - ] diff --git a/partners/migrations/0008_auto_20170604_2228.py b/partners/migrations/0008_auto_20170604_2228.py deleted file mode 100644 index c62a4d9c2e86276b8dd6d287e71930b3d689ea64..0000000000000000000000000000000000000000 --- a/partners/migrations/0008_auto_20170604_2228.py +++ /dev/null @@ -1,48 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-04 20:28 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0007_auto_20170604_0629'), - ] - - operations = [ - migrations.AlterField( - model_name='institution', - name='address', - field=models.CharField(blank=True, default='', max_length=1000), - preserve_default=False, - ), - migrations.AlterField( - model_name='partnerevent', - name='comments', - field=models.TextField(blank=True, default=''), - preserve_default=False, - ), - migrations.AlterField( - model_name='partnerevent', - name='noted_on', - field=models.DateTimeField(auto_now_add=True), - ), - migrations.AlterField( - model_name='prospectivepartner', - name='date_received', - field=models.DateTimeField(auto_now_add=True), - ), - migrations.AlterField( - model_name='prospectivepartnerevent', - name='comments', - field=models.TextField(blank=True, default=''), - preserve_default=False, - ), - migrations.AlterField( - model_name='prospectivepartnerevent', - name='noted_on', - field=models.DateTimeField(auto_now_add=True), - ), - ] diff --git a/partners/migrations/0009_auto_20170608_1710.py b/partners/migrations/0009_auto_20170608_1710.py deleted file mode 100644 index e3d8f434001df7378e5192d1d2a387ad737f2935..0000000000000000000000000000000000000000 --- a/partners/migrations/0009_auto_20170608_1710.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-08 15:10 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0008_auto_20170604_2228'), - ] - - operations = [ - migrations.AlterField( - model_name='prospectivepartnerevent', - name='event', - field=models.CharField(choices=[('comment', 'Comment added'), ('email_sent', 'Email sent'), ('promoted', 'Promoted to Partner')], max_length=64), - ), - ] diff --git a/partners/migrations/0010_auto_20170608_2049.py b/partners/migrations/0010_auto_20170608_2049.py deleted file mode 100644 index 0decd0ca9bdcf61c197861f0fa67c706e60a53fd..0000000000000000000000000000000000000000 --- a/partners/migrations/0010_auto_20170608_2049.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-08 18:49 -from __future__ import unicode_literals - -from django.db import migrations, models -import scipost.models - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0009_auto_20170608_1710'), - ] - - operations = [ - migrations.AlterField( - model_name='prospectivepartner', - name='status', - field=models.CharField(choices=[('requested', 'Requested (from online form)'), ('added', 'Added internally'), ('approached', 'Approached'), ('processed', 'Processed into Partner')], default='added', max_length=32), - ), - migrations.AlterField( - model_name='prospectivepartnerevent', - name='event', - field=models.CharField(choices=[('requested', 'Requested (from online form)'), (('comment',), 'Comment added'), ('email_sent', 'Email sent'), ('promoted', 'Promoted to Partner')], max_length=64), - ), - migrations.AlterField( - model_name='prospectivepartnerevent', - name='noted_by', - field=models.ForeignKey(blank=True, null=True, on_delete=models.SET(scipost.models.get_sentinel_user), to='scipost.Contributor'), - ), - ] diff --git a/partners/migrations/0011_auto_20170609_2234.py b/partners/migrations/0011_auto_20170609_2234.py deleted file mode 100644 index dd89d1cf0b531a369289c80aef4e49b77ef72e4e..0000000000000000000000000000000000000000 --- a/partners/migrations/0011_auto_20170609_2234.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-09 20:34 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0010_auto_20170608_2049'), - ] - - operations = [ - migrations.AlterField( - model_name='prospectivepartner', - name='status', - field=models.CharField(choices=[('requested', 'Requested (from online form)'), ('added', 'Added internally'), ('approached', 'Approached'), ('negotiating', 'Negotiating'), ('uninterested', 'Uninterested'), ('processed', 'Processed into Partner')], default='added', max_length=32), - ), - migrations.AlterField( - model_name='prospectivepartnerevent', - name='event', - field=models.CharField(choices=[('requested', 'Requested (from online form)'), (('comment',), 'Comment added'), ('email_sent', 'Email sent'), ('negotiating', 'Initiated negotiation'), ('marked_as_uninterested', 'Marked as uninterested'), ('promoted', 'Promoted to Partner')], max_length=64), - ), - ] diff --git a/partners/migrations/0012_auto_20170612_2006.py b/partners/migrations/0012_auto_20170612_2006.py deleted file mode 100644 index 67e286ffce50fd56ddae743487abef996c3d7b4d..0000000000000000000000000000000000000000 --- a/partners/migrations/0012_auto_20170612_2006.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-12 18:06 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0011_auto_20170609_2234'), - ] - - operations = [ - migrations.AlterField( - model_name='institution', - name='kind', - field=models.CharField(choices=[('Res. Inst.', 'Research Institute'), ('Int. Fund. Agency', 'International Funding Agency'), ('Nat. Fund. Agency', 'National Funding Agency'), ('Nat. Lab.', 'National Laboratory'), ('Nat. Library', 'National Library'), ('Nat. Acad.', 'National Academy'), ('Univ. Library', 'University (and its Library)'), ('Res. Library', 'Research Library'), ('Prof. Soc.', 'Professional Society'), ('Nat. Consor.', 'National Consortium'), ('Foundation', 'Foundation'), ('Individual', 'Individual')], max_length=32), - ), - migrations.AlterField( - model_name='prospectivepartner', - name='kind', - field=models.CharField(choices=[('Res. Inst.', 'Research Institute'), ('Int. Fund. Agency', 'International Funding Agency'), ('Nat. Fund. Agency', 'National Funding Agency'), ('Nat. Lab.', 'National Laboratory'), ('Nat. Library', 'National Library'), ('Nat. Acad.', 'National Academy'), ('Univ. Library', 'University (and its Library)'), ('Res. Library', 'Research Library'), ('Prof. Soc.', 'Professional Society'), ('Nat. Consor.', 'National Consortium'), ('Foundation', 'Foundation'), ('Individual', 'Individual')], default='Univ. Library', max_length=32), - ), - migrations.AlterField( - model_name='prospectivepartnerevent', - name='event', - field=models.CharField(choices=[('requested', 'Requested (from online form)'), ('comment', 'Comment added'), ('email_sent', 'Email sent'), ('negotiating', 'Initiated negotiation'), ('marked_as_uninterested', 'Marked as uninterested'), ('promoted', 'Promoted to Partner')], max_length=64), - ), - ] diff --git a/partners/migrations/0012_auto_20170618_2024.py b/partners/migrations/0012_auto_20170618_2024.py deleted file mode 100644 index ba95541ad753e64e18663622967dd9ee05157f31..0000000000000000000000000000000000000000 --- a/partners/migrations/0012_auto_20170618_2024.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-18 18:24 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0011_auto_20170609_2234'), - ] - - operations = [ - migrations.AlterField( - model_name='prospectivepartnerevent', - name='event', - field=models.CharField(choices=[('requested', 'Requested (from online form)'), ('comment', 'Comment added'), ('email_sent', 'Email sent'), ('negotiating', 'Initiated negotiation'), ('marked_as_uninterested', 'Marked as uninterested'), ('promoted', 'Promoted to Partner')], max_length=64), - ), - ] diff --git a/partners/migrations/0012_auto_20170620_1526.py b/partners/migrations/0012_auto_20170620_1526.py deleted file mode 100644 index 302836f563c2eedbd345f067bc90e5fbf896ee3e..0000000000000000000000000000000000000000 --- a/partners/migrations/0012_auto_20170620_1526.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-20 13:26 -from __future__ import unicode_literals - -from django.db import migrations, models -import scipost.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0011_auto_20170609_2234'), - ] - - operations = [ - migrations.RemoveField( - model_name='partner', - name='financial_contact', - ), - migrations.RemoveField( - model_name='partner', - name='technical_contact', - ), - migrations.AddField( - model_name='contact', - name='consortia', - field=models.ManyToManyField(help_text='All Consortia for which the Contact has explicit permission to view/edit its data.', to='partners.Consortium'), - ), - migrations.AddField( - model_name='contact', - name='partners', - field=models.ManyToManyField(help_text='All Partners (+related Institutions) the Contact is related to.', to='partners.Partner'), - ), - migrations.AlterField( - model_name='contact', - name='kind', - field=scipost.fields.ChoiceArrayField(base_field=models.CharField(choices=[('tech', 'Technical Contact'), ('fin', 'Financial Contact')], max_length=4), size=None), - ), - migrations.AlterField( - model_name='prospectivepartnerevent', - name='event', - field=models.CharField(choices=[('requested', 'Requested (from online form)'), ('comment', 'Comment added'), ('email_sent', 'Email sent'), ('negotiating', 'Initiated negotiation'), ('marked_as_uninterested', 'Marked as uninterested'), ('promoted', 'Promoted to Partner')], max_length=64), - ), - ] diff --git a/partners/migrations/0012_auto_20170625_1253.py b/partners/migrations/0012_auto_20170625_1253.py deleted file mode 100644 index 30925ad9583c28dc83c6796e46480923b23d73f2..0000000000000000000000000000000000000000 --- a/partners/migrations/0012_auto_20170625_1253.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-25 10:53 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0011_auto_20170609_2234'), - ] - - operations = [ - migrations.AlterField( - model_name='prospectivepartnerevent', - name='event', - field=models.CharField(choices=[('requested', 'Requested (from online form)'), ('comment', 'Comment added'), ('email_sent', 'Email sent'), ('negotiating', 'Initiated negotiation'), ('marked_as_uninterested', 'Marked as uninterested'), ('promoted', 'Promoted to Partner')], max_length=64), - ), - ] diff --git a/partners/migrations/0013_auto_20170620_1551.py b/partners/migrations/0013_auto_20170620_1551.py deleted file mode 100644 index d0626aef8410083b3bcc0429b7857862e4380bce..0000000000000000000000000000000000000000 --- a/partners/migrations/0013_auto_20170620_1551.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-20 13:51 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0012_auto_20170620_1526'), - ] - - operations = [ - migrations.AlterField( - model_name='contact', - name='consortia', - field=models.ManyToManyField(blank=True, help_text='All Consortia for which the Contact has explicit permission to view/edit its data.', to='partners.Consortium'), - ), - ] diff --git a/partners/migrations/0013_auto_20170623_0806.py b/partners/migrations/0013_auto_20170623_0806.py deleted file mode 100644 index e0e22f9c96fee922d5bd7f4e2d62679d8fbe6261..0000000000000000000000000000000000000000 --- a/partners/migrations/0013_auto_20170623_0806.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-23 06:06 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0012_auto_20170612_2006'), - ] - - operations = [ - migrations.AlterField( - model_name='contact', - name='title', - field=models.CharField(choices=[('PR', 'Prof.'), ('DR', 'Dr'), ('MR', 'Mr'), ('MRS', 'Mrs'), ('MS', 'Ms')], max_length=4), - ), - migrations.AlterField( - model_name='prospectivecontact', - name='title', - field=models.CharField(choices=[('PR', 'Prof.'), ('DR', 'Dr'), ('MR', 'Mr'), ('MRS', 'Mrs'), ('MS', 'Ms')], max_length=4), - ), - ] diff --git a/partners/migrations/0014_auto_20170620_1554.py b/partners/migrations/0014_auto_20170620_1554.py deleted file mode 100644 index 42da59192a1b08571b36b9c5ac81e5295145005f..0000000000000000000000000000000000000000 --- a/partners/migrations/0014_auto_20170620_1554.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-20 13:54 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0013_auto_20170620_1551'), - ] - - operations = [ - migrations.AlterField( - model_name='contact', - name='user', - field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='partner_contact', to=settings.AUTH_USER_MODEL), - ), - ] diff --git a/partners/migrations/0015_auto_20170620_1634.py b/partners/migrations/0015_auto_20170620_1634.py deleted file mode 100644 index e5378392c14ee18714b466f6d8723df5f1c030f9..0000000000000000000000000000000000000000 --- a/partners/migrations/0015_auto_20170620_1634.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-20 14:34 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0014_auto_20170620_1554'), - ] - - operations = [ - migrations.AlterField( - model_name='institution', - name='address', - field=models.TextField(blank=True), - ), - ] diff --git a/partners/migrations/0016_auto_20170624_0905.py b/partners/migrations/0016_auto_20170624_0905.py deleted file mode 100644 index e44535151dfb413e5aea7db04c29a82f36dea374..0000000000000000000000000000000000000000 --- a/partners/migrations/0016_auto_20170624_0905.py +++ /dev/null @@ -1,42 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-24 07:05 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import django.utils.timezone - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0015_auto_20170620_1634'), - ] - - operations = [ - migrations.AddField( - model_name='contact', - name='activation_key', - field=models.CharField(blank=True, max_length=40), - ), - migrations.AddField( - model_name='contact', - name='key_expires', - field=models.DateTimeField(default=django.utils.timezone.now), - ), - migrations.AlterField( - model_name='membershipagreement', - name='partner', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='agreements', to='partners.Partner'), - ), - migrations.AlterField( - model_name='partner', - name='status', - field=models.CharField(choices=[('Initiated', 'Initiated'), ('Contacted', 'Contacted'), ('Negotiating', 'Negotiating'), ('Uninterested', 'Uninterested'), ('Active', 'Active'), ('Inactive', 'Inactive')], default='Initiated', max_length=16), - ), - migrations.AlterField( - model_name='prospectivecontact', - name='prospartner', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='prospective_contacts', to='partners.ProspectivePartner'), - ), - ] diff --git a/partners/migrations/0017_auto_20170624_1358.py b/partners/migrations/0017_auto_20170624_1358.py deleted file mode 100644 index bd94e15247190ef2d51f7df5f0e1ed6f4241783e..0000000000000000000000000000000000000000 --- a/partners/migrations/0017_auto_20170624_1358.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-24 11:58 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0016_auto_20170624_0905'), - ] - - operations = [ - migrations.AlterField( - model_name='partnerevent', - name='noted_by', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), - ), - migrations.AlterField( - model_name='partnerevent', - name='partner', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='events', to='partners.Partner'), - ), - ] diff --git a/partners/migrations/0018_merge_20170624_1943.py b/partners/migrations/0018_merge_20170624_1943.py deleted file mode 100644 index 04770cb31326110a1c70c27ab6c06a133c9ece45..0000000000000000000000000000000000000000 --- a/partners/migrations/0018_merge_20170624_1943.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-24 17:43 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0017_auto_20170624_1358'), - ('partners', '0013_auto_20170623_0806'), - ] - - operations = [ - ] diff --git a/partners/migrations/0019_auto_20170624_2003.py b/partners/migrations/0019_auto_20170624_2003.py deleted file mode 100644 index 60b6f60c561b3223abee03878709c60bf83d20af..0000000000000000000000000000000000000000 --- a/partners/migrations/0019_auto_20170624_2003.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-24 18:03 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0018_merge_20170624_1943'), - ] - - operations = [ - migrations.AlterField( - model_name='membershipagreement', - name='offered_yearly_contribution', - field=models.SmallIntegerField(default=0, help_text="Yearly contribution in euro's (€)"), - ), - ] diff --git a/partners/migrations/0020_auto_20170624_2013.py b/partners/migrations/0020_auto_20170624_2013.py deleted file mode 100644 index 5a69c81a3a25fa09f78f1d1a67e3b2f2ac903a83..0000000000000000000000000000000000000000 --- a/partners/migrations/0020_auto_20170624_2013.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-24 18:13 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0019_auto_20170624_2003'), - ] - - operations = [ - migrations.AlterField( - model_name='partner', - name='main_contact', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partner_main_contact', to='partners.Contact'), - ), - ] diff --git a/partners/migrations/0021_auto_20170626_2014.py b/partners/migrations/0021_auto_20170626_2014.py deleted file mode 100644 index c55b21c250a1d7647b726b2c142afa1fef18bcd2..0000000000000000000000000000000000000000 --- a/partners/migrations/0021_auto_20170626_2014.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-26 18:14 -from __future__ import unicode_literals - -from django.db import migrations, models -import scipost.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0020_auto_20170624_2013'), - ] - - operations = [ - migrations.AddField( - model_name='institution', - name='logo', - field=models.ImageField(blank=True, upload_to='UPLOADS/INSTITUTIONS/LOGOS/%Y/%m/'), - ), - migrations.AlterField( - model_name='contact', - name='kind', - field=scipost.fields.ChoiceArrayField(base_field=models.CharField(choices=[('gen', 'General Contact'), ('tech', 'Technical Contact'), ('fin', 'Financial Contact'), ('leg', 'Legal Contact')], max_length=4), size=None), - ), - ] diff --git a/partners/migrations/0022_auto_20170626_2104.py b/partners/migrations/0022_auto_20170626_2104.py deleted file mode 100644 index 678678be652fa3951b010c20d82ee2f7a89d0b2b..0000000000000000000000000000000000000000 --- a/partners/migrations/0022_auto_20170626_2104.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-26 19:04 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0021_auto_20170626_2014'), - ] - - operations = [ - migrations.AlterField( - model_name='institution', - name='logo', - field=models.ImageField(blank=True, upload_to='institutions/logo/%Y/'), - ), - ] diff --git a/partners/migrations/0023_contact_description.py b/partners/migrations/0023_contact_description.py deleted file mode 100644 index 771cf824f4c0bd1cab2e2437fdc000a96afa7f15..0000000000000000000000000000000000000000 --- a/partners/migrations/0023_contact_description.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-27 06:24 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0022_auto_20170626_2104'), - ] - - operations = [ - migrations.AddField( - model_name='contact', - name='description', - field=models.CharField(blank=True, max_length=256), - ), - ] diff --git a/partners/migrations/0024_contactrequest.py b/partners/migrations/0024_contactrequest.py deleted file mode 100644 index 5d7d385a552dcd4c6074808c709afbfa6df3084d..0000000000000000000000000000000000000000 --- a/partners/migrations/0024_contactrequest.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-27 07:29 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import scipost.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0023_contact_description'), - ] - - operations = [ - migrations.CreateModel( - name='ContactRequest', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('email', models.EmailField(max_length=254)), - ('kind', scipost.fields.ChoiceArrayField(base_field=models.CharField(choices=[('gen', 'General Contact'), ('tech', 'Technical Contact'), ('fin', 'Financial Contact'), ('leg', 'Legal Contact')], max_length=4), size=None)), - ('first_name', models.CharField(max_length=64)), - ('last_name', models.CharField(max_length=64)), - ('title', models.CharField(choices=[('PR', 'Prof.'), ('DR', 'Dr'), ('MR', 'Mr'), ('MRS', 'Mrs'), ('MS', 'Ms')], max_length=4)), - ('description', models.CharField(blank=True, max_length=256)), - ('status', models.CharField(choices=[('init', 'Request submitted by Contact'), ('proc', 'Processed'), ('decl', 'Declined')], default='init', max_length=4)), - ('partner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='partners.Partner')), - ], - ), - ] diff --git a/partners/migrations/0025_partnersattachment.py b/partners/migrations/0025_partnersattachment.py deleted file mode 100644 index 2a99b4e6ab802ef6a0833e86d89ca02bc6a25c7b..0000000000000000000000000000000000000000 --- a/partners/migrations/0025_partnersattachment.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-27 16:08 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0024_contactrequest'), - ] - - operations = [ - migrations.CreateModel( - name='PartnersAttachment', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('attachment', models.FileField(upload_to='UPLOADS/PARTNERS/ATTACHMENTS')), - ('name', models.CharField(max_length=128)), - ('agreement', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='partners.MembershipAgreement')), - ], - ), - ] diff --git a/partners/migrations/0026_auto_20170627_1809.py b/partners/migrations/0026_auto_20170627_1809.py deleted file mode 100644 index c67c14a229fd369a038b11d8c003f6a2dff104df..0000000000000000000000000000000000000000 --- a/partners/migrations/0026_auto_20170627_1809.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-27 16:09 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0025_partnersattachment'), - ] - - operations = [ - migrations.AlterField( - model_name='partnersattachment', - name='agreement', - field=models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, related_name='attachments', to='partners.MembershipAgreement'), - ), - ] diff --git a/partners/migrations/0027_membershipagreement_end_date.py b/partners/migrations/0027_membershipagreement_end_date.py deleted file mode 100644 index 43aa365b6900fa00684bbd430f8b52ac85fcd7ea..0000000000000000000000000000000000000000 --- a/partners/migrations/0027_membershipagreement_end_date.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-19 19:12 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.utils.timezone - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0026_auto_20170627_1809'), - ] - - operations = [ - migrations.AddField( - model_name='membershipagreement', - name='end_date', - field=models.DateField(default=django.utils.timezone.now), - preserve_default=False, - ), - ] diff --git a/partners/migrations/0027_merge_20170707_1857.py b/partners/migrations/0027_merge_20170707_1857.py deleted file mode 100644 index f7cc870609266767c610c3011cac24be5ecca2c0..0000000000000000000000000000000000000000 --- a/partners/migrations/0027_merge_20170707_1857.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-07 16:57 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0012_auto_20170625_1253'), - ('partners', '0026_auto_20170627_1809'), - ] - - operations = [ - ] diff --git a/partners/migrations/0027_merge_20170708_0941.py b/partners/migrations/0027_merge_20170708_0941.py deleted file mode 100644 index 39238261ecc5cb01fbdf7fabc602408e9c2cf0a8..0000000000000000000000000000000000000000 --- a/partners/migrations/0027_merge_20170708_0941.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-08 07:41 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0026_auto_20170627_1809'), - ('partners', '0012_auto_20170618_2024'), - ] - - operations = [ - ] diff --git a/partners/migrations/0028_merge_20170721_1419.py b/partners/migrations/0028_merge_20170721_1419.py deleted file mode 100644 index bd6c80cd3245adf269ee2f67480dd988275169a2..0000000000000000000000000000000000000000 --- a/partners/migrations/0028_merge_20170721_1419.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-21 12:19 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0027_membershipagreement_end_date'), - ('partners', '0027_merge_20170708_0941'), - ] - - operations = [ - ] diff --git a/partners/migrations/0028_merge_20170724_1840.py b/partners/migrations/0028_merge_20170724_1840.py deleted file mode 100644 index 9f4c6d0143be160c234a0e5284516bc1145d53a3..0000000000000000000000000000000000000000 --- a/partners/migrations/0028_merge_20170724_1840.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-24 16:40 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0027_merge_20170707_1857'), - ('partners', '0027_membershipagreement_end_date'), - ] - - operations = [ - ] diff --git a/partners/migrations/0028_merge_20170724_1958.py b/partners/migrations/0028_merge_20170724_1958.py deleted file mode 100644 index 5f39aef937f2a6b8532c416da7a1d1504a6cabc6..0000000000000000000000000000000000000000 --- a/partners/migrations/0028_merge_20170724_1958.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-24 17:58 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0027_membershipagreement_end_date'), - ('partners', '0027_merge_20170707_1857'), - ] - - operations = [ - ] diff --git a/partners/migrations/0029_merge_20170726_0945.py b/partners/migrations/0029_merge_20170726_0945.py deleted file mode 100644 index 04f23ee6b5245d487ce7c1e100e37fdec75ef684..0000000000000000000000000000000000000000 --- a/partners/migrations/0029_merge_20170726_0945.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-26 07:45 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0028_merge_20170724_1958'), - ('partners', '0028_merge_20170724_1840'), - ] - - operations = [ - ] diff --git a/partners/migrations/0030_merge_20170730_0935.py b/partners/migrations/0030_merge_20170730_0935.py deleted file mode 100644 index 547d6f7eea65604c4114c40b7f9dd7349d9a4b68..0000000000000000000000000000000000000000 --- a/partners/migrations/0030_merge_20170730_0935.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-30 07:35 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0028_merge_20170721_1419'), - ('partners', '0029_merge_20170726_0945'), - ] - - operations = [ - ] diff --git a/partners/migrations/0031_auto_20170815_0901.py b/partners/migrations/0031_auto_20170815_0901.py deleted file mode 100644 index 92a8a4869acf01717320fb6951d40ac1c518c6da..0000000000000000000000000000000000000000 --- a/partners/migrations/0031_auto_20170815_0901.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-08-15 07:01 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0030_merge_20170730_0935'), - ] - - operations = [ - migrations.RenameField( - model_name='contact', - old_name='activation_key', - new_name='_activation_key', - ), - ] diff --git a/partners/migrations/0032_auto_20170829_0727.py b/partners/migrations/0032_auto_20170829_0727.py deleted file mode 100644 index 375d21ed46289761e9d4a99156c40bd8196a359e..0000000000000000000000000000000000000000 --- a/partners/migrations/0032_auto_20170829_0727.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-08-29 05:27 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0031_auto_20170815_0901'), - ] - - operations = [ - migrations.RenameField( - model_name='contact', - old_name='_activation_key', - new_name='activation_key', - ), - ] diff --git a/partners/migrations/0033_auto_20170930_2230.py b/partners/migrations/0033_auto_20170930_2230.py deleted file mode 100644 index c5a91d3203db66d8420cb03e9e6d9f5eb5cd39d3..0000000000000000000000000000000000000000 --- a/partners/migrations/0033_auto_20170930_2230.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-30 20:30 -from __future__ import unicode_literals - -from django.db import migrations, models -import scipost.storage - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0032_auto_20170829_0727'), - ] - - operations = [ - migrations.AlterField( - model_name='partnersattachment', - name='attachment', - field=models.FileField(storage=scipost.storage.SecureFileStorage(), upload_to='UPLOADS/PARTNERS/ATTACHMENTS'), - ), - ] diff --git a/partners/migrations/0033_auto_20171003_1512.py b/partners/migrations/0033_auto_20171003_1512.py deleted file mode 100644 index 7920006ce7643d7388484c70831ee11c0eaf528d..0000000000000000000000000000000000000000 --- a/partners/migrations/0033_auto_20171003_1512.py +++ /dev/null @@ -1,15 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-03 13:12 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0032_auto_20170829_0727'), - ] - - operations = [ - ] diff --git a/partners/migrations/0033_auto_20171003_2058.py b/partners/migrations/0033_auto_20171003_2058.py deleted file mode 100644 index be7d386c6842293568a7ad79c85abd5e49eea787..0000000000000000000000000000000000000000 --- a/partners/migrations/0033_auto_20171003_2058.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-03 18:58 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0065_authorshipclaim_publication'), - ('partners', '0032_auto_20170829_0727'), - ] - - operations = [ - migrations.CreateModel( - name='Petition', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('title', models.CharField(max_length=256)), - ('slug', models.SlugField()), - ('headline', models.CharField(max_length=256)), - ('statement', models.TextField()), - ('signatories', models.ManyToManyField(related_name='petitions', to='scipost.Contributor')), - ], - ), - ] diff --git a/partners/migrations/0034_auto_20171003_2109.py b/partners/migrations/0034_auto_20171003_2109.py deleted file mode 100644 index 706955dfa76a33492164a1cbe974084c797e12e2..0000000000000000000000000000000000000000 --- a/partners/migrations/0034_auto_20171003_2109.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-03 19:09 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0033_auto_20171003_2058'), - ] - - operations = [ - migrations.AlterField( - model_name='petition', - name='signatories', - field=models.ManyToManyField(blank=True, related_name='petitions', to='scipost.Contributor'), - ), - ] diff --git a/partners/migrations/0034_merge_20171004_1946.py b/partners/migrations/0034_merge_20171004_1946.py deleted file mode 100644 index 872f84b7f6536230ad2273a3f11de57991712c7e..0000000000000000000000000000000000000000 --- a/partners/migrations/0034_merge_20171004_1946.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-04 17:46 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0033_auto_20171003_1512'), - ('partners', '0033_auto_20170930_2230'), - ] - - operations = [ - ] diff --git a/partners/migrations/0035_merge_20171004_0848.py b/partners/migrations/0035_merge_20171004_0848.py deleted file mode 100644 index ef6aa5fd82ce08519fde22d085e1e76014231cab..0000000000000000000000000000000000000000 --- a/partners/migrations/0035_merge_20171004_0848.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-04 06:48 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0033_auto_20171003_1512'), - ('partners', '0034_auto_20171003_2109'), - ] - - operations = [ - ] diff --git a/partners/migrations/0036_auto_20171004_2014.py b/partners/migrations/0036_auto_20171004_2014.py deleted file mode 100644 index 256d70d53b58b1923693cb7a5db4a7f3e25772d9..0000000000000000000000000000000000000000 --- a/partners/migrations/0036_auto_20171004_2014.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-04 18:14 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0035_merge_20171004_0848'), - ] - - operations = [ - migrations.RemoveField( - model_name='petition', - name='signatories', - ), - migrations.DeleteModel( - name='Petition', - ), - ] diff --git a/partners/migrations/0037_merge_20171009_2000.py b/partners/migrations/0037_merge_20171009_2000.py deleted file mode 100644 index 926f446e1be73cec30290f62cfe356007ad6a955..0000000000000000000000000000000000000000 --- a/partners/migrations/0037_merge_20171009_2000.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-09 18:00 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0034_merge_20171004_1946'), - ('partners', '0036_auto_20171004_2014'), - ] - - operations = [ - ] diff --git a/partners/migrations/0038_auto_20171012_0948.py b/partners/migrations/0038_auto_20171012_0948.py deleted file mode 100644 index ca52c993eb6f79d641373ffb129869355338f95a..0000000000000000000000000000000000000000 --- a/partners/migrations/0038_auto_20171012_0948.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-12 07:48 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('partners', '0037_merge_20171009_2000'), - ] - - operations = [ - migrations.AlterField( - model_name='prospectivepartner', - name='status', - field=models.CharField(choices=[('requested', 'Requested (from online form)'), ('added', 'Added internally'), ('approached', 'Approached'), ('followuped', 'Followed-up'), ('negotiating', 'Negotiating'), ('uninterested', 'Uninterested'), ('processed', 'Processed into Partner')], default='added', max_length=32), - ), - ] diff --git a/petitions/migrations/0001_initial.py b/petitions/migrations/0001_initial.py index 801a4fb65d08f94ce7495cf87502cf1a53e63993..b661b1cecf2fc9c097ad83a72b6f104ec2dccb53 100644 --- a/petitions/migrations/0001_initial.py +++ b/petitions/migrations/0001_initial.py @@ -1,8 +1,7 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-04 18:14 +# Generated by Django 1.11.4 on 2017-12-29 13:35 from __future__ import unicode_literals -from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django_countries.fields @@ -13,8 +12,6 @@ class Migration(migrations.Migration): initial = True dependencies = [ - ('scipost', '0065_authorshipclaim_publication'), - migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ @@ -25,9 +22,9 @@ class Migration(migrations.Migration): ('title', models.CharField(max_length=256)), ('slug', models.SlugField()), ('headline', models.CharField(max_length=256)), + ('preamble', models.TextField(blank=True, null=True)), ('statement', models.TextField()), ('created', models.DateTimeField(auto_now_add=True)), - ('creator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( @@ -43,8 +40,12 @@ class Migration(migrations.Migration): ('signed_on', models.DateTimeField(auto_now_add=True)), ('verification_key', models.CharField(blank=True, max_length=40)), ('verified', models.BooleanField(default=False)), - ('petition', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='petitions.Petition')), - ('signatory', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor')), + ('petition', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='petition_signatories', to='petitions.Petition')), ], + options={ + 'default_related_name': 'petition_signatories', + 'ordering': ['last_name', 'country_of_employment', 'affiliation'], + 'verbose_name_plural': 'petition signatories', + }, ), ] diff --git a/petitions/migrations/0002_auto_20171004_2107.py b/petitions/migrations/0002_auto_20171004_2107.py deleted file mode 100644 index 6803454eae6f9ad46aadf5f5a4582fae31b4e262..0000000000000000000000000000000000000000 --- a/petitions/migrations/0002_auto_20171004_2107.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-04 19:07 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('petitions', '0001_initial'), - ] - - operations = [ - migrations.AlterModelOptions( - name='petitionsignatory', - options={'verbose_name_plural': 'petition signatories'}, - ), - ] diff --git a/petitions/migrations/0003_auto_20171004_2139.py b/petitions/migrations/0002_auto_20171229_1435.py similarity index 51% rename from petitions/migrations/0003_auto_20171004_2139.py rename to petitions/migrations/0002_auto_20171229_1435.py index 47b2fe956c0698ca553a356ad8b4f15ebfe40a62..a8bbe0764b07e1d0a289a32fd93308ef51ce2499 100644 --- a/petitions/migrations/0003_auto_20171004_2139.py +++ b/petitions/migrations/0002_auto_20171229_1435.py @@ -1,30 +1,31 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-04 19:39 +# Generated by Django 1.11.4 on 2017-12-29 13:35 from __future__ import unicode_literals +from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): + initial = True + dependencies = [ - ('petitions', '0002_auto_20171004_2107'), + ('petitions', '0001_initial'), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ('scipost', '0001_initial'), ] operations = [ - migrations.AlterModelOptions( - name='petitionsignatory', - options={'ordering': ['last_name', 'country_of_employment', 'affiliation'], 'verbose_name_plural': 'petition signatories'}, - ), - migrations.AlterField( - model_name='petitionsignatory', - name='petition', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='petition_signatories', to='petitions.Petition'), - ), - migrations.AlterField( + migrations.AddField( model_name='petitionsignatory', name='signatory', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='petition_signatories', to='scipost.Contributor'), ), + migrations.AddField( + model_name='petition', + name='creator', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), + ), ] diff --git a/petitions/migrations/0004_petition_preamble.py b/petitions/migrations/0004_petition_preamble.py deleted file mode 100644 index 0f6007370c4e5051f55ec4ea5fd424624ae02a0b..0000000000000000000000000000000000000000 --- a/petitions/migrations/0004_petition_preamble.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-05 10:53 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('petitions', '0003_auto_20171004_2139'), - ] - - operations = [ - migrations.AddField( - model_name='petition', - name='preamble', - field=models.TextField(blank=True, null=True), - ), - ] diff --git a/proceedings/migrations/0001_initial.py b/proceedings/migrations/0001_initial.py index 32cf6e68fd089eec86c74ede3ae26c4761caaa98..5aeabe7f9501d67a9f778225f2c0049c537cdea7 100644 --- a/proceedings/migrations/0001_initial.py +++ b/proceedings/migrations/0001_initial.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-20 07:00 +# Generated by Django 1.11.4 on 2017-12-29 13:35 from __future__ import unicode_literals from django.db import migrations, models @@ -13,8 +13,8 @@ class Migration(migrations.Migration): initial = True dependencies = [ + ('journals', '0001_initial'), ('colleges', '0001_initial'), - ('journals', '0046_auto_20171019_1942'), ] operations = [ @@ -24,8 +24,8 @@ class Migration(migrations.Migration): ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(default=django.utils.timezone.now)), ('latest_activity', scipost.db.fields.AutoDateTimeField(blank=True, default=django.utils.timezone.now, editable=False)), - ('issue_name', models.CharField(max_length=256)), ('event_name', models.CharField(blank=True, max_length=256)), + ('event_suffix', models.CharField(blank=True, max_length=256)), ('event_description', models.TextField(blank=True)), ('event_start_date', models.DateField(blank=True, null=True)), ('event_end_date', models.DateField(blank=True, null=True)), @@ -38,8 +38,8 @@ class Migration(migrations.Migration): ], options={ 'verbose_name': 'Proceedings', - 'verbose_name_plural': 'Proceedings', 'default_related_name': 'proceedings', + 'verbose_name_plural': 'Proceedings', }, ), ] diff --git a/proceedings/migrations/0002_remove_proceedings_issue_name.py b/proceedings/migrations/0002_remove_proceedings_issue_name.py deleted file mode 100644 index 0045b112d3a41eec21b759ac43ec1ae0f049070f..0000000000000000000000000000000000000000 --- a/proceedings/migrations/0002_remove_proceedings_issue_name.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-21 12:56 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('proceedings', '0001_initial'), - ] - - operations = [ - migrations.RemoveField( - model_name='proceedings', - name='issue_name', - ), - ] diff --git a/proceedings/migrations/0003_proceedings_event_suffix.py b/proceedings/migrations/0003_proceedings_event_suffix.py deleted file mode 100644 index 106d87cee4a495cb2b9390cfc8c355d8a7131f66..0000000000000000000000000000000000000000 --- a/proceedings/migrations/0003_proceedings_event_suffix.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-01 08:44 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('proceedings', '0002_remove_proceedings_issue_name'), - ] - - operations = [ - migrations.AddField( - model_name='proceedings', - name='event_suffix', - field=models.CharField(blank=True, max_length=256), - ), - ] diff --git a/production/migrations/0001_initial.py b/production/migrations/0001_initial.py index 3e3ed1ac3f9aff3d6ab3a6ab1f0367aea832859d..6e950912fb08d7e1ef25340c3beaf667d6777645 100644 --- a/production/migrations/0001_initial.py +++ b/production/migrations/0001_initial.py @@ -1,10 +1,13 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-05-17 17:23 +# Generated by Django 1.11.4 on 2017-12-29 13:35 from __future__ import unicode_literals +from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone +import production.models +import scipost.storage class Migration(migrations.Migration): @@ -12,8 +15,7 @@ class Migration(migrations.Migration): initial = True dependencies = [ - ('submissions', '0043_auto_20170512_0836'), - ('scipost', '0054_delete_newsitem'), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ @@ -21,24 +23,66 @@ class Migration(migrations.Migration): name='ProductionEvent', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('event', models.CharField(choices=[('assigned_to_supervisor', 'Assigned to Supervisor'), ('officer_tasked_with_proof_production', 'Officer tasked with proofs production'), ('proofs_produced', 'Proofs have been produced'), ('proofs_sent_to_authors', 'Proofs sent to Authors'), ('proofs_returned_by_authors', 'Proofs returned by Authors'), ('corrections_implemented', 'Corrections implemented'), ('authors_have_accepted_proofs', 'Authors have accepted proofs')], max_length=64)), + ('event', models.CharField(choices=[('assignment', 'Assignment'), ('status', 'Status change'), ('message', 'Message'), ('registration', 'Hour registration')], default='message', max_length=64)), ('comments', models.TextField(blank=True, null=True)), ('noted_on', models.DateTimeField(default=django.utils.timezone.now)), ('duration', models.DurationField(blank=True, null=True)), - ('noted_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor')), + ], + options={ + 'ordering': ['noted_on'], + }, + ), + migrations.CreateModel( + name='ProductionEventAttachment', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('attachment', models.FileField(storage=scipost.storage.SecureFileStorage(), upload_to=production.models.production_event_upload_location)), ], ), migrations.CreateModel( name='ProductionStream', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('opened', models.DateTimeField()), - ('submission', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='submissions.Submission')), + ('opened', models.DateTimeField(auto_now_add=True)), + ('closed', models.DateTimeField(default=django.utils.timezone.now)), + ('status', models.CharField(choices=[('initiated', 'New Stream started'), ('tasked', 'Supervisor tasked officer with proofs production'), ('produced', 'Proofs have been produced'), ('checked', 'Proofs have been checked by Supervisor'), ('sent', 'Proofs sent to Authors'), ('returned', 'Proofs returned by Authors'), ('corrected', 'Corrections implemented'), ('accepted', 'Authors have accepted proofs'), ('published', 'Paper has been published'), ('cited', 'Cited people have been notified/invited to SciPost'), ('completed', 'Completed')], default='initiated', max_length=32)), ], + options={ + 'permissions': (('can_work_for_stream', 'Can work for stream'), ('can_perform_supervisory_actions', 'Can perform supervisory actions')), + }, + ), + migrations.CreateModel( + name='ProductionUser', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('user', models.OneToOneField(on_delete=django.db.models.deletion.PROTECT, related_name='production_user', to=settings.AUTH_USER_MODEL)), + ], + ), + migrations.CreateModel( + name='Proofs', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('attachment', models.FileField(storage=scipost.storage.SecureFileStorage(), upload_to=production.models.proofs_upload_location)), + ('version', models.PositiveSmallIntegerField(default=0)), + ('created', models.DateTimeField(auto_now_add=True)), + ('status', models.CharField(choices=[('uploaded', 'Proofs uploaded'), ('sent', 'Proofs sent to authors'), ('accepted_sup', 'Proofs accepted by supervisor'), ('declined_sup', 'Proofs declined by supervisor'), ('accepted', 'Proofs accepted by authors'), ('declined', 'Proofs declined by authors'), ('renewed', 'Proofs renewed')], default='uploaded', max_length=16)), + ('accessible_for_authors', models.BooleanField(default=False)), + ('stream', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='proofs', to='production.ProductionStream')), + ('uploaded_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='production.ProductionUser')), + ], + options={ + 'ordering': ['stream', 'version'], + 'verbose_name_plural': 'Proofs', + }, + ), + migrations.AddField( + model_name='productionstream', + name='invitations_officer', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='invitations_officer_streams', to='production.ProductionUser'), ), migrations.AddField( - model_name='productionevent', - name='stream', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='production.ProductionStream'), + model_name='productionstream', + name='officer', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='streams', to='production.ProductionUser'), ), ] diff --git a/production/migrations/0002_auto_20170517_1942.py b/production/migrations/0002_auto_20170517_1942.py deleted file mode 100644 index 53aa4d79751c03ad4491b5da6731abc11d705509..0000000000000000000000000000000000000000 --- a/production/migrations/0002_auto_20170517_1942.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-05-17 17:42 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0001_initial'), - ] - - operations = [ - migrations.AlterField( - model_name='productionevent', - name='event', - field=models.CharField(choices=[('assigned_to_supervisor', 'Assigned by EdAdmin to Supervisor'), ('message_edadmin_to_supervisor', 'Message from EdAdmin to Supervisor'), ('message_supervisor_to_edadmin', 'Message from Supervisor to EdAdmin'), ('officer_tasked_with_proof_production', 'Supervisor tasked officer with proofs production'), ('message_supervisor_to_officer', 'Message from Supervisor to Officer'), ('message_officer_to_supervisor', 'Message from Officer to Supervisor'), ('proofs_produced', 'Proofs have been produced'), ('proofs_sent_to_authors', 'Proofs sent to Authors'), ('proofs_returned_by_authors', 'Proofs returned by Authors'), ('corrections_implemented', 'Corrections implemented'), ('authors_have_accepted_proofs', 'Authors have accepted proofs')], max_length=64), - ), - ] diff --git a/production/migrations/0002_auto_20171229_1435.py b/production/migrations/0002_auto_20171229_1435.py new file mode 100644 index 0000000000000000000000000000000000000000..492aceaffeed642160cdc95ee946139fd0694c73 --- /dev/null +++ b/production/migrations/0002_auto_20171229_1435.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.4 on 2017-12-29 13:35 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('production', '0001_initial'), + ('submissions', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='productionstream', + name='submission', + field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='production_stream', to='submissions.Submission'), + ), + migrations.AddField( + model_name='productionstream', + name='supervisor', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='supervised_streams', to='production.ProductionUser'), + ), + migrations.AddField( + model_name='productioneventattachment', + name='production_event', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='attachments', to='production.ProductionEvent'), + ), + migrations.AddField( + model_name='productionevent', + name='noted_by', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='events', to='production.ProductionUser'), + ), + migrations.AddField( + model_name='productionevent', + name='noted_to', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='received_events', to='production.ProductionUser'), + ), + migrations.AddField( + model_name='productionevent', + name='stream', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='events', to='production.ProductionStream'), + ), + ] diff --git a/production/migrations/0003_auto_20170522_1021.py b/production/migrations/0003_auto_20170522_1021.py deleted file mode 100644 index b3ad736e99a30f24eb8fd4ace5dc7e96499d1b3d..0000000000000000000000000000000000000000 --- a/production/migrations/0003_auto_20170522_1021.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-05-22 08:21 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0002_auto_20170517_1942'), - ] - - operations = [ - migrations.AlterField( - model_name='productionevent', - name='event', - field=models.CharField(choices=[('assigned_to_supervisor', 'Assigned by EdAdmin to Supervisor'), ('message_edadmin_to_supervisor', 'Message from EdAdmin to Supervisor'), ('message_supervisor_to_edadmin', 'Message from Supervisor to EdAdmin'), ('officer_tasked_with_proof_production', 'Supervisor tasked officer with proofs production'), ('message_supervisor_to_officer', 'Message from Supervisor to Officer'), ('message_officer_to_supervisor', 'Message from Officer to Supervisor'), ('proofs_produced', 'Proofs have been produced'), ('proofs_checked_by_supervisor', 'Proofs have been checked by Supervisor'), ('proofs_sent_to_authors', 'Proofs sent to Authors'), ('proofs_returned_by_authors', 'Proofs returned by Authors'), ('corrections_implemented', 'Corrections implemented'), ('authors_have_accepted_proofs', 'Authors have accepted proofs')], max_length=64), - ), - ] diff --git a/production/migrations/0004_auto_20170528_1526.py b/production/migrations/0004_auto_20170528_1526.py deleted file mode 100644 index c901494033b5772f07bfead5252165f5974d65fb..0000000000000000000000000000000000000000 --- a/production/migrations/0004_auto_20170528_1526.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-05-28 13:26 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0003_auto_20170522_1021'), - ] - - operations = [ - migrations.AlterField( - model_name='productionevent', - name='event', - field=models.CharField(choices=[('assigned_to_supervisor', 'Assigned by EdAdmin to Supervisor'), ('message_edadmin_to_supervisor', 'Message from EdAdmin to Supervisor'), ('message_supervisor_to_edadmin', 'Message from Supervisor to EdAdmin'), ('officer_tasked_with_proof_production', 'Supervisor tasked officer with proofs production'), ('message_supervisor_to_officer', 'Message from Supervisor to Officer'), ('message_officer_to_supervisor', 'Message from Officer to Supervisor'), ('proofs_produced', 'Proofs have been produced'), ('proofs_checked_by_supervisor', 'Proofs have been checked by Supervisor'), ('proofs_sent_to_authors', 'Proofs sent to Authors'), ('proofs_returned_by_authors', 'Proofs returned by Authors'), ('corrections_implemented', 'Corrections implemented'), ('authors_have_accepted_proofs', 'Authors have accepted proofs'), ('paper_published', 'Paper has been published')], max_length=64), - ), - ] diff --git a/production/migrations/0005_productionstream_status.py b/production/migrations/0005_productionstream_status.py deleted file mode 100644 index 81236c4f5629b772eab6d7018fb29ccb699d4aca..0000000000000000000000000000000000000000 --- a/production/migrations/0005_productionstream_status.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-05-28 13:33 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0004_auto_20170528_1526'), - ] - - operations = [ - migrations.AddField( - model_name='productionstream', - name='status', - field=models.CharField(choices=[('ongoing', 'Ongoing'), ('completed', 'Completed')], default='ongoing', max_length=32), - ), - ] diff --git a/production/migrations/0006_productionstream_closed.py b/production/migrations/0006_productionstream_closed.py deleted file mode 100644 index 214570de6029880b899ad87f70c15b062fab2514..0000000000000000000000000000000000000000 --- a/production/migrations/0006_productionstream_closed.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-05-28 13:41 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.utils.timezone - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0005_productionstream_status'), - ] - - operations = [ - migrations.AddField( - model_name='productionstream', - name='closed', - field=models.DateTimeField(default=django.utils.timezone.now), - ), - ] diff --git a/production/migrations/0007_auto_20170610_1202.py b/production/migrations/0007_auto_20170610_1202.py deleted file mode 100644 index be031b99bcce8d738e4c6fd89e9d90c0103b0368..0000000000000000000000000000000000000000 --- a/production/migrations/0007_auto_20170610_1202.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-10 10:02 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0006_productionstream_closed'), - ] - - operations = [ - migrations.AlterField( - model_name='productionevent', - name='noted_on', - field=models.DateTimeField(auto_now_add=True), - ), - migrations.AlterField( - model_name='productionstream', - name='opened', - field=models.DateTimeField(auto_now_add=True), - ), - ] diff --git a/production/migrations/0008_auto_20170623_0833.py b/production/migrations/0008_auto_20170623_0833.py deleted file mode 100644 index 0f539586ada2418a86d38c75cf419f90a5c55f92..0000000000000000000000000000000000000000 --- a/production/migrations/0008_auto_20170623_0833.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-23 06:33 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0007_auto_20170610_1202'), - ] - - operations = [ - migrations.AlterModelOptions( - name='productionevent', - options={'ordering': ['noted_on']}, - ), - ] diff --git a/production/migrations/0009_auto_20170701_1356.py b/production/migrations/0009_auto_20170701_1356.py deleted file mode 100644 index 9aa834befe8297f68135a13d1799b90375d50d78..0000000000000000000000000000000000000000 --- a/production/migrations/0009_auto_20170701_1356.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-01 11:56 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.utils.timezone - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0008_auto_20170623_0833'), - ] - - operations = [ - migrations.AlterField( - model_name='productionevent', - name='noted_on', - field=models.DateTimeField(default=django.utils.timezone.now), - ), - ] diff --git a/production/migrations/0010_auto_20170707_0600.py b/production/migrations/0010_auto_20170707_0600.py deleted file mode 100644 index c3b931f3b04bcbc272695348794dfcb26d474a47..0000000000000000000000000000000000000000 --- a/production/migrations/0010_auto_20170707_0600.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-07 04:00 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0009_auto_20170701_1356'), - ] - - operations = [ - migrations.AlterField( - model_name='productionevent', - name='event', - field=models.CharField(choices=[('assigned_to_supervisor', 'Assigned by EdAdmin to Supervisor'), ('message_edadmin_to_supervisor', 'Message from EdAdmin to Supervisor'), ('message_supervisor_to_edadmin', 'Message from Supervisor to EdAdmin'), ('officer_tasked_with_proof_production', 'Supervisor tasked officer with proofs production'), ('message_supervisor_to_officer', 'Message from Supervisor to Officer'), ('message_officer_to_supervisor', 'Message from Officer to Supervisor'), ('proofs_produced', 'Proofs have been produced'), ('proofs_checked_by_supervisor', 'Proofs have been checked by Supervisor'), ('proofs_sent_to_authors', 'Proofs sent to Authors'), ('proofs_returned_by_authors', 'Proofs returned by Authors'), ('corrections_implemented', 'Corrections implemented'), ('authors_have_accepted_proofs', 'Authors have accepted proofs'), ('paper_published', 'Paper has been published'), ('cited_notified', 'Cited people have been notified/invited to SciPost')], max_length=64), - ), - ] diff --git a/production/migrations/0011_productionuser.py b/production/migrations/0011_productionuser.py deleted file mode 100644 index ed1ec512c86ec9a248b976035bc7448adc1ca8e2..0000000000000000000000000000000000000000 --- a/production/migrations/0011_productionuser.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-14 17:07 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ('production', '0010_auto_20170707_0600'), - ] - - operations = [ - migrations.CreateModel( - name='ProductionUser', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('user', models.OneToOneField(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)), - ], - ), - ] diff --git a/production/migrations/0012_productionstream_officers.py b/production/migrations/0012_productionstream_officers.py deleted file mode 100644 index 37835f8f2b46f2c8f4b02aa52b031145ca3cc27a..0000000000000000000000000000000000000000 --- a/production/migrations/0012_productionstream_officers.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-14 18:20 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0011_productionuser'), - ] - - operations = [ - migrations.AddField( - model_name='productionstream', - name='officers', - field=models.ManyToManyField(blank=True, to='production.ProductionUser'), - ), - ] diff --git a/production/migrations/0013_auto_20170914_2220.py b/production/migrations/0013_auto_20170914_2220.py deleted file mode 100644 index 8eaa1babf34e39c504ff3de4ad6ee7f6a0a7c3d8..0000000000000000000000000000000000000000 --- a/production/migrations/0013_auto_20170914_2220.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-14 20:20 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0012_productionstream_officers'), - ] - - operations = [ - migrations.RenameField( - model_name='productionevent', - old_name='noted_by', - new_name='noted_by_contributor', - ), - migrations.AlterField( - model_name='productionstream', - name='officers', - field=models.ManyToManyField(blank=True, related_name='streams', to='production.ProductionUser'), - ), - migrations.AlterField( - model_name='productionuser', - name='user', - field=models.OneToOneField(on_delete=django.db.models.deletion.PROTECT, related_name='production_user', to=settings.AUTH_USER_MODEL), - ), - ] diff --git a/production/migrations/0014_productionevent_noted_by.py b/production/migrations/0014_productionevent_noted_by.py deleted file mode 100644 index 1f728d34daf03dce9adce677fb976e2d91949bc8..0000000000000000000000000000000000000000 --- a/production/migrations/0014_productionevent_noted_by.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-14 20:20 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0013_auto_20170914_2220'), - ] - - operations = [ - migrations.AddField( - model_name='productionevent', - name='noted_by', - field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='production.ProductionUser'), - preserve_default=False, - ), - ] diff --git a/production/migrations/0015_auto_20170914_2237.py b/production/migrations/0015_auto_20170914_2237.py deleted file mode 100644 index ba12a858e4277c5223dfa80d59577b1fabd94347..0000000000000000000000000000000000000000 --- a/production/migrations/0015_auto_20170914_2237.py +++ /dev/null @@ -1,48 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-14 20:37 -from __future__ import unicode_literals - -from django.contrib.auth.models import Group, User -from django.db import migrations - - -def contributor_to_officer(apps, schema_editor): - # Create ProductionUser for all current Officers - ProductionUser = apps.get_model('production', 'ProductionUser') - officers = Group.objects.get(name='Production Officers') - for user in officers.user_set.all(): - ProductionUser.objects.get_or_create(user_id=user.id) - print('\n - Production Officers transfered to ProductionUser') - - # Transfer all Events - ProductionEvent = apps.get_model('production', 'ProductionEvent') - for event in ProductionEvent.objects.all(): - user = User.objects.get(contributor__id=event.noted_by.user.contributor.id, production_user__isnull=False) - event.noted_by.id = user.production_user.id - event.save() - print(' - ProductionEvents updated') - - return - - -def officer_to_contributor(apps, schema_editor): - # Transfer all Events - ProductionEvent = apps.get_model('production', 'ProductionEvent') - for event in ProductionEvent.objects.all(): - user = User.objects.get(production_user_id=event.noted_by.id) - event.noted_by_contributor.id = user.contributor.id - event.save() - print('\n - ProductionEvents updated') - - return - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0014_productionevent_noted_by'), - ] - - operations = [ - migrations.RunPython(contributor_to_officer, officer_to_contributor) - ] diff --git a/production/migrations/0016_remove_productionevent_noted_by_contributor.py b/production/migrations/0016_remove_productionevent_noted_by_contributor.py deleted file mode 100644 index d204f883e3d7bdbd7fe5a7cb4653a5cc0fde8501..0000000000000000000000000000000000000000 --- a/production/migrations/0016_remove_productionevent_noted_by_contributor.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-14 20:46 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0015_auto_20170914_2237'), - ] - - operations = [ - migrations.AlterField( - model_name='productionevent', - name='noted_by_contributor', - field=models.ForeignKey(default=1, null=True, on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor'), - ), - migrations.RemoveField( - model_name='productionevent', - name='noted_by_contributor', - ), - ] diff --git a/production/migrations/0017_auto_20170914_2319.py b/production/migrations/0017_auto_20170914_2319.py deleted file mode 100644 index 95e2983d46fd0db386be12b5415cfd05520879ba..0000000000000000000000000000000000000000 --- a/production/migrations/0017_auto_20170914_2319.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-14 21:19 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0016_remove_productionevent_noted_by_contributor'), - ] - - operations = [ - migrations.AlterField( - model_name='productionevent', - name='stream', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='events', to='production.ProductionStream'), - ), - ] diff --git a/production/migrations/0018_auto_20170929_2234.py b/production/migrations/0018_auto_20170929_2234.py deleted file mode 100644 index 335424b7a30b80facd8a09e460e363f362afbf69..0000000000000000000000000000000000000000 --- a/production/migrations/0018_auto_20170929_2234.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-29 20:34 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0017_auto_20170914_2319'), - ] - - operations = [ - migrations.RemoveField( - model_name='productionstream', - name='officers', - ), - migrations.AddField( - model_name='productionstream', - name='officer', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='streams', to='production.ProductionUser'), - ), - migrations.AddField( - model_name='productionstream', - name='supervisor', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='supervised_streams', to='production.ProductionUser'), - ), - ] diff --git a/production/migrations/0019_auto_20170929_2310.py b/production/migrations/0019_auto_20170929_2310.py deleted file mode 100644 index 74565042d4b6788264ef4a0a49643d2ed0105aaf..0000000000000000000000000000000000000000 --- a/production/migrations/0019_auto_20170929_2310.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-29 21:10 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0018_auto_20170929_2234'), - ] - - operations = [ - migrations.AlterModelOptions( - name='productionstream', - options={'permissions': (('can_perform_supervisory_actions', 'Can perform supervisory actions'),)}, - ), - ] diff --git a/production/migrations/0020_auto_20170930_0156.py b/production/migrations/0020_auto_20170930_0156.py deleted file mode 100644 index 305d366b3f494fe473189539b92ec9c49c0b0bca..0000000000000000000000000000000000000000 --- a/production/migrations/0020_auto_20170930_0156.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-29 23:56 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0019_auto_20170929_2310'), - ] - - operations = [ - migrations.AlterModelOptions( - name='productionstream', - options={'permissions': (('can_work_for_stream', 'Can work for stream'), ('can_perform_supervisory_actions', 'Can perform supervisory actions'))}, - ), - migrations.AlterField( - model_name='productionevent', - name='noted_by', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='events', to='production.ProductionUser'), - ), - ] diff --git a/production/migrations/0021_auto_20170930_1729.py b/production/migrations/0021_auto_20170930_1729.py deleted file mode 100644 index 9ce6938c8f41af77778bb02e1dc1484e69eb73a1..0000000000000000000000000000000000000000 --- a/production/migrations/0021_auto_20170930_1729.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-30 15:29 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0020_auto_20170930_0156'), - ] - - operations = [ - migrations.AddField( - model_name='productionevent', - name='noted_to', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='received_events', to='production.ProductionUser'), - ), - migrations.AlterField( - model_name='productionevent', - name='event', - field=models.CharField(choices=[('assignment', 'Assignment'), ('message_edadmin_to_supervisor', 'Message from EdAdmin to Supervisor'), ('message_supervisor_to_edadmin', 'Message from Supervisor to EdAdmin'), ('officer_tasked_with_proof_production', 'Supervisor tasked officer with proofs production'), ('message_supervisor_to_officer', 'Message from Supervisor to Officer'), ('message_officer_to_supervisor', 'Message from Officer to Supervisor'), ('proofs_produced', 'Proofs have been produced'), ('proofs_checked_by_supervisor', 'Proofs have been checked by Supervisor'), ('proofs_sent_to_authors', 'Proofs sent to Authors'), ('proofs_returned_by_authors', 'Proofs returned by Authors'), ('corrections_implemented', 'Corrections implemented'), ('authors_have_accepted_proofs', 'Authors have accepted proofs'), ('paper_published', 'Paper has been published'), ('cited_notified', 'Cited people have been notified/invited to SciPost')], max_length=64), - ), - ] diff --git a/production/migrations/0021_auto_20171003_1512.py b/production/migrations/0021_auto_20171003_1512.py deleted file mode 100644 index 259a9b7527ea0d0bdf453ab510d63dd13adee682..0000000000000000000000000000000000000000 --- a/production/migrations/0021_auto_20171003_1512.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-03 13:12 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0020_auto_20170930_0156'), - ] - - operations = [ - migrations.AlterModelOptions( - name='productionstream', - options={'permissions': (('can_work_for_stream', 'Can work for stream'),)}, - ), - ] diff --git a/production/migrations/0022_auto_20170930_1756.py b/production/migrations/0022_auto_20170930_1756.py deleted file mode 100644 index 4fa6bca1455899768adacb80e6f83fc36533fcc2..0000000000000000000000000000000000000000 --- a/production/migrations/0022_auto_20170930_1756.py +++ /dev/null @@ -1,65 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-30 15:56 -from __future__ import unicode_literals - -from django.db import migrations, models - - -def update_status(apps, schema_editor): - """ - Update current Production Stream status by checking their events content. - """ - ProductionStream = apps.get_model('production', 'ProductionStream') - for stream in ProductionStream.objects.all(): - if stream.status == 'completed': - stream.status = 'completed' - elif stream.events.filter(event='cited_notified').exists(): - stream.status = 'cited' - elif stream.events.filter(event='paper_published').exists(): - stream.status = 'published' - elif stream.events.filter(event='authors_have_accepted_proofs').exists(): - stream.status = 'accepted' - elif stream.events.filter(event='corrections_implemented').exists(): - stream.status = 'corrected' - elif stream.events.filter(event='proofs_returned_by_authors').exists(): - stream.status = 'returned' - elif stream.events.filter(event='proofs_sent_to_authors').exists(): - stream.status = 'sent' - elif stream.events.filter(event='proofs_checked_by_supervisor').exists(): - stream.status = 'checked' - elif stream.events.filter(event='officer_tasked_with_proof_production').exists(): - stream.status = 'tasked' - else: - stream.status = 'initiated' - stream.save() - return - - -def update_status_inverse(apps, schema_editor): - """ - Reverse update statuses to only complete/ongoing by checking the status. - """ - ProductionStream = apps.get_model('production', 'ProductionStream') - for stream in ProductionStream.objects.all(): - if stream.status == 'completed': - stream.status = 'completed' - else: - stream.status == 'ongoing' - stream.save() - return - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0021_auto_20170930_1729'), - ] - - operations = [ - migrations.AlterField( - model_name='productionstream', - name='status', - field=models.CharField(choices=[('initiated', 'Initiated'), ('tasked', 'Supervisor tasked officer with proofs production'), ('produced', 'Proofs have been produced'), ('checked', 'Proofs have been checked by Supervisor'), ('sent', 'Proofs sent to Authors'), ('returned', 'Proofs returned by Authors'), ('corrected', 'Corrections implemented'), ('accepted', 'Authors have accepted proofs'), ('published', 'Paper has been published'), ('cited', 'Cited people have been notified/invited to SciPost'), ('completed', 'Completed')], default='initiated', max_length=32), - ), - migrations.RunPython(update_status, update_status_inverse) - ] diff --git a/production/migrations/0022_auto_20171003_1525.py b/production/migrations/0022_auto_20171003_1525.py deleted file mode 100644 index 50746ff3a864bd9e77886f4b2f700545eec0a4cc..0000000000000000000000000000000000000000 --- a/production/migrations/0022_auto_20171003_1525.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-03 13:25 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0021_auto_20171003_1512'), - ] - - operations = [ - migrations.AlterModelOptions( - name='productionstream', - options={'permissions': (('can_work_for_stream', 'Can work for stream'), ('can_perform_supervisory_actions', 'Can perform supervisory actions'))}, - ), - ] diff --git a/production/migrations/0023_auto_20170930_1759.py b/production/migrations/0023_auto_20170930_1759.py deleted file mode 100644 index 0f510418996feeeaa5376a1e1af99baba670296c..0000000000000000000000000000000000000000 --- a/production/migrations/0023_auto_20170930_1759.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-30 15:59 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0022_auto_20170930_1756'), - ] - - operations = [ - migrations.AlterField( - model_name='productionevent', - name='event', - field=models.CharField(choices=[('assignment', 'Assignment'), ('status', 'Status change'), ('message', 'Message'), ('registration', 'Registration hours')], max_length=64), - ), - ] diff --git a/production/migrations/0024_auto_20170930_2230.py b/production/migrations/0024_auto_20170930_2230.py deleted file mode 100644 index eb444dd499d84b11bc866bd2004638c83a07ae43..0000000000000000000000000000000000000000 --- a/production/migrations/0024_auto_20170930_2230.py +++ /dev/null @@ -1,55 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-30 20:30 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion -import production.models -import scipost.storage - - -class Migration(migrations.Migration): - - dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ('production', '0023_auto_20170930_1759'), - ] - - operations = [ - migrations.CreateModel( - name='Proof', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('attachment', models.FileField(storage=scipost.storage.SecureFileStorage(), upload_to=production.models.proofs_upload_location)), - ('version', models.PositiveSmallIntegerField(default=0)), - ('created', models.DateTimeField(auto_now_add=True)), - ('status', models.CharField(choices=[('uploaded', 'Proof uploaded'), ('accepted', 'Proof accepted'), ('declined', 'Proof declined'), ('renewed', 'Proof renewed')], default='uploaded', max_length=16)), - ], - ), - migrations.AlterField( - model_name='productionevent', - name='event', - field=models.CharField(choices=[('assignment', 'Assignment'), ('status', 'Status change'), ('message', 'Message'), ('registration', 'Hour registration')], default='message', max_length=64), - ), - migrations.AlterField( - model_name='productionstream', - name='status', - field=models.CharField(choices=[('initiated', 'New Stream started'), ('tasked', 'Supervisor tasked officer with proofs production'), ('produced', 'Proofs have been produced'), ('checked', 'Proofs have been checked by Supervisor'), ('sent', 'Proofs sent to Authors'), ('returned', 'Proofs returned by Authors'), ('corrected', 'Corrections implemented'), ('accepted', 'Authors have accepted proofs'), ('published', 'Paper has been published'), ('cited', 'Cited people have been notified/invited to SciPost'), ('completed', 'Completed')], default='initiated', max_length=32), - ), - migrations.AlterField( - model_name='productionstream', - name='submission', - field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='production_stream', to='submissions.Submission'), - ), - migrations.AddField( - model_name='proof', - name='stream', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='proofs', to='production.ProductionStream'), - ), - migrations.AddField( - model_name='proof', - name='upload_by', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to=settings.AUTH_USER_MODEL), - ), - ] diff --git a/production/migrations/0025_auto_20170930_2244.py b/production/migrations/0025_auto_20170930_2244.py deleted file mode 100644 index d8b1ef0629676a83aff2a9b9709e0ac47446b9e6..0000000000000000000000000000000000000000 --- a/production/migrations/0025_auto_20170930_2244.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-30 20:44 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0024_auto_20170930_2230'), - ] - - operations = [ - migrations.RemoveField( - model_name='proof', - name='upload_by', - ), - migrations.AddField( - model_name='proof', - name='uploaded_by', - field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='production.ProductionUser'), - preserve_default=False, - ), - ] diff --git a/production/migrations/0026_proof_accessible_for_authors.py b/production/migrations/0026_proof_accessible_for_authors.py deleted file mode 100644 index 4854c5c206ad4cc4205abb2fa3e7f1ebf6fba6e3..0000000000000000000000000000000000000000 --- a/production/migrations/0026_proof_accessible_for_authors.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-30 20:49 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0025_auto_20170930_2244'), - ] - - operations = [ - migrations.AddField( - model_name='proof', - name='accessible_for_authors', - field=models.BooleanField(default=False), - ), - ] diff --git a/production/migrations/0027_merge_20171004_1947.py b/production/migrations/0027_merge_20171004_1947.py deleted file mode 100644 index f9eba172cf3fe8a97f2ef8e0bc137497a70a4ddf..0000000000000000000000000000000000000000 --- a/production/migrations/0027_merge_20171004_1947.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-04 17:47 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0022_auto_20171003_1525'), - ('production', '0026_proof_accessible_for_authors'), - ] - - operations = [ - ] diff --git a/production/migrations/0028_auto_20171007_1311.py b/production/migrations/0028_auto_20171007_1311.py deleted file mode 100644 index 547f5cb709e966342cc30782477dbd275f98471c..0000000000000000000000000000000000000000 --- a/production/migrations/0028_auto_20171007_1311.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-07 11:11 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0027_merge_20171004_1947'), - ] - - operations = [ - migrations.AlterModelOptions( - name='proof', - options={'ordering': ['stream', 'version']}, - ), - migrations.AlterField( - model_name='proof', - name='status', - field=models.CharField(choices=[('uploaded', 'Proofs uploaded'), ('sent', 'Proofs sent to authors'), ('accepted_sup', 'Proofs accepted by supervisor'), ('declined_sup', 'Proofs declined by supervisor'), ('accepted', 'Proofs accepted by authors'), ('declined', 'Proofs declined by authors'), ('renewed', 'Proofs renewed')], default='uploaded', max_length=16), - ), - ] diff --git a/production/migrations/0029_productionstream_invitations_officer.py b/production/migrations/0029_productionstream_invitations_officer.py deleted file mode 100644 index 8159df2f15ab42cbdc42de5ac6687348ed85b2d7..0000000000000000000000000000000000000000 --- a/production/migrations/0029_productionstream_invitations_officer.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-09 18:00 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0028_auto_20171007_1311'), - ] - - operations = [ - migrations.AddField( - model_name='productionstream', - name='invitations_officer', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='invitations_officer_streams', to='production.ProductionUser'), - ), - ] diff --git a/production/migrations/0030_auto_20171009_2111.py b/production/migrations/0030_auto_20171009_2111.py deleted file mode 100644 index 928cc21970a30445f1f84f3a7ab46b9c3e8342df..0000000000000000000000000000000000000000 --- a/production/migrations/0030_auto_20171009_2111.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-09 19:11 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0029_productionstream_invitations_officer'), - ] - - operations = [ - migrations.RenameModel( - old_name='Proof', - new_name='Proofs', - ), - ] diff --git a/production/migrations/0031_auto_20171010_0921.py b/production/migrations/0031_auto_20171010_0921.py deleted file mode 100644 index dcf9fe6f6dad9b30fe69346ce5747543fc0a247d..0000000000000000000000000000000000000000 --- a/production/migrations/0031_auto_20171010_0921.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-10 07:21 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0030_auto_20171009_2111'), - ] - - operations = [ - migrations.AlterModelOptions( - name='proofs', - options={'ordering': ['stream', 'version'], 'verbose_name_plural': 'Proofs'}, - ), - ] diff --git a/production/migrations/0032_auto_20171010_1008.py b/production/migrations/0032_auto_20171010_1008.py deleted file mode 100644 index e92a693b6487c1f75028d2d3c3ace21afef92dd8..0000000000000000000000000000000000000000 --- a/production/migrations/0032_auto_20171010_1008.py +++ /dev/null @@ -1,49 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-10 08:08 -from __future__ import unicode_literals - -from django.db import migrations - - -def update_status(apps, schema_editor): - """ - Update current Production Event type. - """ - ProductionEvent = apps.get_model('production', 'ProductionEvent') - for event in ProductionEvent.objects.all(): - if event.duration: - event.event = 'registration' - elif event.event == ['assigned_to_supervisor', 'officer_tasked_with_proof_production']: - event.event = 'assignment' - elif event.event in ['message_edadmin_to_supervisor', 'message_supervisor_to_edadmin', 'message_supervisor_to_officer', 'message_officer_to_supervisor']: - event.event = 'message' - else: - event.event = 'status' - event.save() - return - - -def update_status_inverse(apps, schema_editor): - """ - Inverse update current Production Event type. As this mapping is impossible to make, - it'll just all be a unique status: `Event` - """ - ProductionEvent = apps.get_model('production', 'ProductionEvent') - for event in ProductionEvent.objects.all(): - event.event = 'Event' - return - - -class Migration(migrations.Migration): - - dependencies = [ - ('finances', '0006_auto_20171010_1003'), - ('production', '0031_auto_20171010_0921'), - ] - - operations = [ - # Do not run this migration, - # the field is U/S anyway and in case it goes wrong we loose data here. - - # migrations.RunPython(update_status, update_status_inverse) - ] diff --git a/production/migrations/0033_productioneventattachment.py b/production/migrations/0033_productioneventattachment.py deleted file mode 100644 index a9a7fdaa7381c413eb64499b7b856aca5f8061c9..0000000000000000000000000000000000000000 --- a/production/migrations/0033_productioneventattachment.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-12 16:05 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import production.models -import scipost.storage - - -class Migration(migrations.Migration): - - dependencies = [ - ('production', '0032_auto_20171010_1008'), - ] - - operations = [ - migrations.CreateModel( - name='ProductionEventAttachment', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('attachment', models.FileField(storage=scipost.storage.SecureFileStorage(), upload_to=production.models.production_event_upload_location)), - ('production_event', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='attachments', to='production.ProductionEvent')), - ], - ), - ] diff --git a/scipost/migrations/0001_initial.py b/scipost/migrations/0001_initial.py index d611c216fe50cbdd266f2c6f2cd3a820dc79bd37..ea742eb7b6e0b7c6e40dbca64ada6b616c1f43de 100644 --- a/scipost/migrations/0001_initial.py +++ b/scipost/migrations/0001_initial.py @@ -1,12 +1,13 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-03-29 20:25 +# Generated by Django 1.11.4 on 2017-12-29 13:35 from __future__ import unicode_literals -from django.conf import settings +import django.contrib.postgres.fields from django.db import migrations, models import django.db.models.deletion import django.utils.timezone -import django_countries.fields +import scipost.db.fields +import scipost.fields class Migration(migrations.Migration): @@ -14,8 +15,6 @@ class Migration(migrations.Migration): initial = True dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ('commentaries', '0001_initial'), ] operations = [ @@ -26,50 +25,119 @@ class Migration(migrations.Migration): ('status', models.SmallIntegerField(choices=[(1, 'accepted'), (0, 'not yet vetted (pending)'), (-1, 'rejected')], default=0)), ], ), + migrations.CreateModel( + name='CitationNotification', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('processed', models.BooleanField(default=False)), + ], + ), migrations.CreateModel( name='Contributor', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('activation_key', models.CharField(default='', max_length=40)), + ('invitation_key', models.CharField(blank=True, max_length=40)), + ('activation_key', models.CharField(blank=True, max_length=40)), ('key_expires', models.DateTimeField(default=django.utils.timezone.now)), ('status', models.SmallIntegerField(choices=[(0, 'newly registered'), (1, 'normal user'), (-1, 'not a professional scientist'), (-2, 'other account already exists'), (-3, 'barred from SciPost'), (-4, 'account disabled')], default=0)), - ('title', models.CharField(choices=[('PR', 'Prof.'), ('DR', 'Dr'), ('MR', 'Mr'), ('MRS', 'Mrs')], max_length=4)), - ('discipline', models.CharField(choices=[('physics', 'Physics')], default='physics', max_length=20)), + ('title', models.CharField(choices=[('PR', 'Prof.'), ('DR', 'Dr'), ('MR', 'Mr'), ('MRS', 'Mrs'), ('MS', 'Ms')], max_length=4)), + ('discipline', models.CharField(choices=[('physics', 'Physics'), ('astrophysics', 'Astrophysics'), ('mathematics', 'Mathematics'), ('computerscience', 'Computer Science')], default='physics', max_length=20, verbose_name='Main discipline')), + ('expertises', scipost.fields.ChoiceArrayField(base_field=models.CharField(choices=[('Physics', (('Phys:AE', 'Atomic, Molecular and Optical Physics - Experiment'), ('Phys:AT', 'Atomic, Molecular and Optical Physics - Theory'), ('Phys:BI', 'Biophysics'), ('Phys:CE', 'Condensed Matter Physics - Experiment'), ('Phys:CT', 'Condensed Matter Physics - Theory'), ('Phys:FD', 'Fluid Dynamics'), ('Phys:GR', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:HE', 'High-Energy Physics - Experiment'), ('Phys:HT', 'High-Energy Physics - Theory'), ('Phys:HP', 'High-Energy Physics - Phenomenology'), ('Phys:MP', 'Mathematical Physics'), ('Phys:NE', 'Nuclear Physics - Experiment'), ('Phys:NT', 'Nuclear Physics - Theory'), ('Phys:QP', 'Quantum Physics'), ('Phys:SM', 'Statistical and Soft Matter Physics'))), ('Astrophysics', (('Astro:GA', 'Astrophysics of Galaxies'), ('Astro:CO', 'Cosmology and Nongalactic Astrophysics'), ('Astro:EP', 'Earth and Planetary Astrophysics'), ('Astro:HE', 'High Energy Astrophysical Phenomena'), ('Astro:IM', 'Instrumentation and Methods for Astrophysics'), ('Astro:SR', 'Solar and Stellar Astrophysics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:AP', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:CA', 'Classical Analysis and ODEs'), ('Math:CO', 'Combinatorics'), ('Math:AC', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GN', 'General Topology'), ('Math:GT', 'Geometric Topology'), ('Math:GR', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:LO', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:PR', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SP', 'Spectral Theory'), ('Math:ST', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], max_length=10), blank=True, null=True, size=None)), ('orcid_id', models.CharField(blank=True, max_length=20, verbose_name='ORCID id')), - ('country_of_employment', django_countries.fields.CountryField(max_length=2)), - ('affiliation', models.CharField(max_length=300, verbose_name='affiliation')), - ('address', models.CharField(blank=True, default='', max_length=1000, verbose_name='address')), + ('address', models.CharField(blank=True, max_length=1000, verbose_name='address')), ('personalwebpage', models.URLField(blank=True, verbose_name='personal web page')), - ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), - ('vetted_by', models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor')), + ('accepts_SciPost_emails', models.BooleanField(default=True, verbose_name='I accept to receive SciPost emails')), + ], + ), + migrations.CreateModel( + name='DraftInvitation', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('title', models.CharField(choices=[('PR', 'Prof.'), ('DR', 'Dr'), ('MR', 'Mr'), ('MRS', 'Mrs'), ('MS', 'Ms')], max_length=4)), + ('first_name', models.CharField(max_length=30)), + ('last_name', models.CharField(max_length=30)), + ('email', models.EmailField(max_length=254)), + ('invitation_type', models.CharField(choices=[('F', 'Editorial Fellow'), ('C', 'Contributor'), ('R', 'Refereeing'), ('ci', 'cited in submission'), ('cp', 'cited in publication')], default='C', max_length=2)), + ('date_drafted', models.DateTimeField(auto_now_add=True)), + ('processed', models.BooleanField(default=False)), + ], + ), + migrations.CreateModel( + name='EditorialCollege', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('discipline', models.CharField(max_length=255, unique=True)), + ], + ), + migrations.CreateModel( + name='EditorialCollegeFellowship', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(default=django.utils.timezone.now)), + ('latest_activity', scipost.db.fields.AutoDateTimeField(blank=True, default=django.utils.timezone.now, editable=False)), + ('affiliation', models.CharField(blank=True, max_length=255)), + ('start_date', models.DateField(blank=True, null=True)), + ('until_date', models.DateField(blank=True, null=True)), + ], + ), + migrations.CreateModel( + name='PrecookedEmail', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('email_subject', models.CharField(max_length=300)), + ('email_text', models.TextField()), + ('email_text_html', models.TextField()), + ('date_created', models.DateField(default=django.utils.timezone.now)), + ('emailed_to', django.contrib.postgres.fields.ArrayField(base_field=models.EmailField(blank=True, max_length=254), blank=True, size=None)), + ('date_last_used', models.DateField(default=django.utils.timezone.now)), + ('deprecated', models.BooleanField(default=False)), ], ), migrations.CreateModel( name='RegistrationInvitation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('title', models.CharField(choices=[('PR', 'Prof.'), ('DR', 'Dr'), ('MR', 'Mr'), ('MRS', 'Mrs')], max_length=4)), + ('title', models.CharField(choices=[('PR', 'Prof.'), ('DR', 'Dr'), ('MR', 'Mr'), ('MRS', 'Mrs'), ('MS', 'Ms')], max_length=4)), ('first_name', models.CharField(default='', max_length=30)), ('last_name', models.CharField(default='', max_length=30)), - ('email_address', models.EmailField(max_length=254)), - ('invitation_type', models.CharField(choices=[('F', 'Editorial Fellow'), ('C', 'Contributor')], default='C', max_length=2)), + ('email', models.EmailField(max_length=254)), + ('invitation_type', models.CharField(choices=[('F', 'Editorial Fellow'), ('C', 'Contributor'), ('R', 'Refereeing'), ('ci', 'cited in submission'), ('cp', 'cited in publication')], default='C', max_length=2)), ('message_style', models.CharField(choices=[('F', 'formal'), ('P', 'personal')], default='F', max_length=1)), - ('personal_message', models.TextField(blank=True, null=True)), - ('invitation_key', models.CharField(default='', max_length=40)), + ('personal_message', models.TextField(blank=True)), + ('invitation_key', models.CharField(max_length=40, unique=True)), ('key_expires', models.DateTimeField(default=django.utils.timezone.now)), ('date_sent', models.DateTimeField(default=django.utils.timezone.now)), + ('nr_reminders', models.PositiveSmallIntegerField(default=0)), + ('date_last_reminded', models.DateTimeField(blank=True, null=True)), ('responded', models.BooleanField(default=False)), - ('invited_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor')), + ('declined', models.BooleanField(default=False)), ], + options={ + 'ordering': ['last_name'], + }, ), - migrations.AddField( - model_name='authorshipclaim', - name='claimant', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='claimant', to='scipost.Contributor'), + migrations.CreateModel( + name='Remark', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('date', models.DateTimeField(auto_now_add=True)), + ('remark', models.TextField()), + ('contributor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='remarks', to='scipost.Contributor')), + ], + options={ + 'default_related_name': 'remarks', + }, ), - migrations.AddField( - model_name='authorshipclaim', - name='commentary', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='commentaries.Commentary'), + migrations.CreateModel( + name='UnavailabilityPeriod', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('start', models.DateField()), + ('end', models.DateField()), + ('contributor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='unavailability_periods', to='scipost.Contributor')), + ], + options={ + 'ordering': ['-start'], + }, ), ] diff --git a/scipost/migrations/0002_auto_20160329_2225.py b/scipost/migrations/0002_auto_20160329_2225.py deleted file mode 100644 index 2f2e7bdf0561a5acce4a73e429a7ba67bced00ca..0000000000000000000000000000000000000000 --- a/scipost/migrations/0002_auto_20160329_2225.py +++ /dev/null @@ -1,35 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-03-29 20:25 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - ('theses', '0001_initial'), - ('submissions', '0001_initial'), - ('scipost', '0001_initial'), - ] - - operations = [ - migrations.AddField( - model_name='authorshipclaim', - name='submission', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='submissions.Submission'), - ), - migrations.AddField( - model_name='authorshipclaim', - name='thesislink', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='theses.ThesisLink'), - ), - migrations.AddField( - model_name='authorshipclaim', - name='vetted_by', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor'), - ), - ] diff --git a/scipost/migrations/0002_auto_20171229_1435.py b/scipost/migrations/0002_auto_20171229_1435.py new file mode 100644 index 0000000000000000000000000000000000000000..208882451fa907073fb18a2e17051d0829745651 --- /dev/null +++ b/scipost/migrations/0002_auto_20171229_1435.py @@ -0,0 +1,150 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.4 on 2017-12-29 13:35 +from __future__ import unicode_literals + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion +import scipost.models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('submissions', '0001_initial'), + ('commentaries', '0002_auto_20171229_1435'), + ('virtualmeetings', '0001_initial'), + ('journals', '0001_initial'), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ('theses', '0001_initial'), + ('scipost', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='remark', + name='feedback', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='remarks', to='virtualmeetings.Feedback'), + ), + migrations.AddField( + model_name='remark', + name='motion', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='remarks', to='virtualmeetings.Motion'), + ), + migrations.AddField( + model_name='remark', + name='nomination', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='remarks', to='virtualmeetings.Nomination'), + ), + migrations.AddField( + model_name='remark', + name='recommendation', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='remarks', to='submissions.EICRecommendation'), + ), + migrations.AddField( + model_name='remark', + name='submission', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='remarks', to='submissions.Submission'), + ), + migrations.AddField( + model_name='registrationinvitation', + name='cited_in_publication', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='journals.Publication'), + ), + migrations.AddField( + model_name='registrationinvitation', + name='cited_in_submission', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='registration_invitations', to='submissions.Submission'), + ), + migrations.AddField( + model_name='registrationinvitation', + name='invited_by', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor'), + ), + migrations.AddField( + model_name='editorialcollegefellowship', + name='college', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='fellowships', to='scipost.EditorialCollege'), + ), + migrations.AddField( + model_name='editorialcollegefellowship', + name='contributor', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='scipost.Contributor'), + ), + migrations.AddField( + model_name='draftinvitation', + name='cited_in_publication', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='journals.Publication'), + ), + migrations.AddField( + model_name='draftinvitation', + name='cited_in_submission', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='submissions.Submission'), + ), + migrations.AddField( + model_name='draftinvitation', + name='drafted_by', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor'), + ), + migrations.AddField( + model_name='contributor', + name='user', + field=models.OneToOneField(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL), + ), + migrations.AddField( + model_name='contributor', + name='vetted_by', + field=models.ForeignKey(blank=True, null=True, on_delete=models.SET(scipost.models.get_sentinel_user), related_name='contrib_vetted_by', to='scipost.Contributor'), + ), + migrations.AddField( + model_name='citationnotification', + name='cited_in_publication', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='journals.Publication'), + ), + migrations.AddField( + model_name='citationnotification', + name='cited_in_submission', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='submissions.Submission'), + ), + migrations.AddField( + model_name='citationnotification', + name='contributor', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor'), + ), + migrations.AddField( + model_name='authorshipclaim', + name='claimant', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='claimant', to='scipost.Contributor'), + ), + migrations.AddField( + model_name='authorshipclaim', + name='commentary', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='commentaries.Commentary'), + ), + migrations.AddField( + model_name='authorshipclaim', + name='publication', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='journals.Publication'), + ), + migrations.AddField( + model_name='authorshipclaim', + name='submission', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='submissions.Submission'), + ), + migrations.AddField( + model_name='authorshipclaim', + name='thesislink', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='theses.ThesisLink'), + ), + migrations.AddField( + model_name='authorshipclaim', + name='vetted_by', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor'), + ), + migrations.AlterUniqueTogether( + name='editorialcollegefellowship', + unique_together=set([('contributor', 'college', 'start_date', 'until_date')]), + ), + ] diff --git a/scipost/migrations/0003_auto_20160330_1104.py b/scipost/migrations/0003_auto_20160330_1104.py deleted file mode 100644 index 9caedcbb770960bb6a112be52b7d56a22a0de757..0000000000000000000000000000000000000000 --- a/scipost/migrations/0003_auto_20160330_1104.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-03-30 09:04 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0002_auto_20160329_2225'), - ] - - operations = [ - migrations.AlterField( - model_name='contributor', - name='vetted_by', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='contrib_vetted_by', to='scipost.Contributor'), - ), - ] diff --git a/scipost/migrations/0004_auto_20160415_1952.py b/scipost/migrations/0004_auto_20160415_1952.py deleted file mode 100644 index 997cbf33c89237d6a7c071be1577cb42a294c73f..0000000000000000000000000000000000000000 --- a/scipost/migrations/0004_auto_20160415_1952.py +++ /dev/null @@ -1,146 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-04-15 17:52 -from __future__ import unicode_literals - -import django.contrib.postgres.fields.jsonb -from django.db import migrations, models -import django.db.models.deletion -import django.utils.timezone - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0001_initial'), - ('comments', '__first__'), - ('commentaries', '0003_auto_20160401_0642'), - ('theses', '0001_initial'), - ('scipost', '0003_auto_20160330_1104'), - ] - - operations = [ - migrations.CreateModel( - name='Graph', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('private', models.BooleanField(default=True)), - ('title', models.CharField(max_length=100)), - ('description', models.TextField(blank=True, null=True)), - ('created', models.DateTimeField(default=django.utils.timezone.now)), - ], - ), - migrations.CreateModel( - name='List', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('private', models.BooleanField(default=True)), - ('title', models.CharField(max_length=100)), - ('description', models.TextField(blank=True, null=True)), - ('created', models.DateTimeField(default=django.utils.timezone.now)), - ('commentaries', models.ManyToManyField(blank=True, related_name='list_commentaries', to='commentaries.Commentary')), - ('comments', models.ManyToManyField(blank=True, related_name='list_comments', to='comments.Comment')), - ], - ), - migrations.CreateModel( - name='Node', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('created', models.DateTimeField(default=django.utils.timezone.now)), - ('name', models.CharField(max_length=100)), - ('description', models.TextField(blank=True, null=True)), - ], - ), - migrations.CreateModel( - name='Team', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('name', models.CharField(max_length=20)), - ('established', models.DateField(default=django.utils.timezone.now)), - ], - ), - migrations.AddField( - model_name='contributor', - name='invitation_key', - field=models.CharField(blank=True, default='', max_length=40, null=True), - ), - migrations.AddField( - model_name='contributor', - name='specializations', - field=django.contrib.postgres.fields.jsonb.JSONField(default={}), - ), - migrations.AlterField( - model_name='registrationinvitation', - name='invitation_type', - field=models.CharField(choices=[('F', 'Editorial Fellow'), ('C', 'Contributor'), ('R', 'Refereeing')], default='C', max_length=2), - ), - migrations.AddField( - model_name='team', - name='leader', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor'), - ), - migrations.AddField( - model_name='team', - name='members', - field=models.ManyToManyField(blank=True, related_name='team_members', to='scipost.Contributor'), - ), - migrations.AddField( - model_name='node', - name='added_by', - field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor'), - ), - migrations.AddField( - model_name='node', - name='arcs_in', - field=models.ManyToManyField(blank=True, related_name='node_arcs_in', to='scipost.Node'), - ), - migrations.AddField( - model_name='node', - name='commentaries', - field=models.ManyToManyField(blank=True, related_name='node_commentaries', to='commentaries.Commentary'), - ), - migrations.AddField( - model_name='node', - name='graph', - field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='scipost.Graph'), - ), - migrations.AddField( - model_name='node', - name='submissions', - field=models.ManyToManyField(blank=True, related_name='node_submissions', to='submissions.Submission'), - ), - migrations.AddField( - model_name='node', - name='thesislinks', - field=models.ManyToManyField(blank=True, related_name='node_thesislinks', to='theses.ThesisLink'), - ), - migrations.AddField( - model_name='list', - name='owner', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor'), - ), - migrations.AddField( - model_name='list', - name='submissions', - field=models.ManyToManyField(blank=True, related_name='list_submissions', to='submissions.Submission'), - ), - migrations.AddField( - model_name='list', - name='teams_with_access', - field=models.ManyToManyField(blank=True, to='scipost.Team'), - ), - migrations.AddField( - model_name='list', - name='thesislinks', - field=models.ManyToManyField(blank=True, related_name='list_thesislinks', to='theses.ThesisLink'), - ), - migrations.AddField( - model_name='graph', - name='owner', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor'), - ), - migrations.AddField( - model_name='graph', - name='teams_with_access', - field=models.ManyToManyField(blank=True, to='scipost.Team'), - ), - ] diff --git a/scipost/migrations/0005_auto_20160419_2157.py b/scipost/migrations/0005_auto_20160419_2157.py deleted file mode 100644 index 44c922d6c212fd4f9bc7861888c10afb49fb37ad..0000000000000000000000000000000000000000 --- a/scipost/migrations/0005_auto_20160419_2157.py +++ /dev/null @@ -1,36 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-04-19 19:57 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0004_auto_20160415_1952'), - ] - - operations = [ - migrations.AlterModelOptions( - name='graph', - options={'default_permissions': ['add', 'view', 'change', 'delete']}, - ), - migrations.AlterModelOptions( - name='list', - options={'default_permissions': ['add', 'view', 'change', 'delete']}, - ), - migrations.AlterModelOptions( - name='node', - options={'default_permissions': ['add', 'view', 'change', 'delete']}, - ), - migrations.AlterModelOptions( - name='team', - options={'default_permissions': ['add', 'view', 'change', 'delete']}, - ), - migrations.AlterField( - model_name='team', - name='name', - field=models.CharField(max_length=100), - ), - ] diff --git a/scipost/migrations/0006_auto_20160421_1520.py b/scipost/migrations/0006_auto_20160421_1520.py deleted file mode 100644 index 1df75d9da798714d0031fb259da6021ca8a04f77..0000000000000000000000000000000000000000 --- a/scipost/migrations/0006_auto_20160421_1520.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-04-21 13:20 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0005_auto_20160419_2157'), - ] - - operations = [ - migrations.RenameField( - model_name='registrationinvitation', - old_name='email_address', - new_name='email', - ), - ] diff --git a/scipost/migrations/0007_auto_20160515_0550.py b/scipost/migrations/0007_auto_20160515_0550.py deleted file mode 100644 index 1cda881470452c6b843ba20960293aad0ff1d0ed..0000000000000000000000000000000000000000 --- a/scipost/migrations/0007_auto_20160515_0550.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-05-15 03:50 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import django.utils.timezone - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0006_auto_20160421_1520'), - ] - - operations = [ - migrations.CreateModel( - name='Arc', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('created', models.DateTimeField(default=django.utils.timezone.now)), - ('length', models.PositiveSmallIntegerField(choices=[(1, '1'), (2, '2'), (3, '3'), (4, '4'), (5, '5'), (6, '6'), (7, '7'), (8, '8')], default=32)), - ('added_by', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor')), - ('graph', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='scipost.Graph')), - ], - ), - migrations.RemoveField( - model_name='node', - name='arcs_in', - ), - migrations.AddField( - model_name='arc', - name='source', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='source', to='scipost.Node'), - ), - migrations.AddField( - model_name='arc', - name='target', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='target', to='scipost.Node'), - ), - ] diff --git a/scipost/migrations/0008_auto_20160531_1526.py b/scipost/migrations/0008_auto_20160531_1526.py deleted file mode 100644 index 41fa58ba792bed7db111c723a994a19d527106cf..0000000000000000000000000000000000000000 --- a/scipost/migrations/0008_auto_20160531_1526.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-05-31 13:26 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0007_auto_20160527_2215'), - ('scipost', '0007_auto_20160515_0550'), - ] - - operations = [ - migrations.AddField( - model_name='registrationinvitation', - name='cited_in_submission', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='submissions.Submission'), - ), - migrations.AlterField( - model_name='registrationinvitation', - name='invitation_type', - field=models.CharField(choices=[('F', 'Editorial Fellow'), ('C', 'Contributor'), ('R', 'Refereeing'), ('ci', 'cited')], default='C', max_length=2), - ), - ] diff --git a/scipost/migrations/0009_auto_20160604_0706.py b/scipost/migrations/0009_auto_20160604_0706.py deleted file mode 100644 index 12fc8bf272def213bc62d91060d2892c121dd8aa..0000000000000000000000000000000000000000 --- a/scipost/migrations/0009_auto_20160604_0706.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-06-04 05:06 -from __future__ import unicode_literals - -import django.contrib.postgres.fields.jsonb -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0008_auto_20160531_1526'), - ] - - operations = [ - migrations.AlterField( - model_name='contributor', - name='specializations', - field=django.contrib.postgres.fields.jsonb.JSONField(default='{}'), - ), - ] diff --git a/scipost/migrations/0010_auto_20160802_0534.py b/scipost/migrations/0010_auto_20160802_0534.py deleted file mode 100644 index 70cc92e83359dc075696b9c19820dd04ed700cf5..0000000000000000000000000000000000000000 --- a/scipost/migrations/0010_auto_20160802_0534.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-08-02 03:34 -from __future__ import unicode_literals - -import django.contrib.postgres.fields.jsonb -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0009_auto_20160604_0706'), - ] - - operations = [ - migrations.AlterField( - model_name='contributor', - name='specializations', - field=django.contrib.postgres.fields.jsonb.JSONField(default={}), - ), - ] diff --git a/scipost/migrations/0011_unavailabilityperiod.py b/scipost/migrations/0011_unavailabilityperiod.py deleted file mode 100644 index c35a22961bb7f74b0877acb29691fa91d18796e0..0000000000000000000000000000000000000000 --- a/scipost/migrations/0011_unavailabilityperiod.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-08-03 18:41 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0010_auto_20160802_0534'), - ] - - operations = [ - migrations.CreateModel( - name='UnavailabilityPeriod', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('start', models.DateField()), - ('end', models.DateField()), - ('contributor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor')), - ], - ), - ] diff --git a/scipost/migrations/0012_remove_contributor_specializations.py b/scipost/migrations/0012_remove_contributor_specializations.py deleted file mode 100644 index 22b67d89cc832031e46e04cc8bce8c739ee12dd0..0000000000000000000000000000000000000000 --- a/scipost/migrations/0012_remove_contributor_specializations.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-08-09 05:42 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0011_unavailabilityperiod'), - ] - - operations = [ - migrations.RemoveField( - model_name='contributor', - name='specializations', - ), - ] diff --git a/scipost/migrations/0013_auto_20160810_1608.py b/scipost/migrations/0013_auto_20160810_1608.py deleted file mode 100644 index 67205d09c51b5a143c9542eaa5c168a80fb3bc0e..0000000000000000000000000000000000000000 --- a/scipost/migrations/0013_auto_20160810_1608.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-08-10 14:08 -from __future__ import unicode_literals - -from django.db import migrations, models -import scipost.models -import scipost.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0012_remove_contributor_specializations'), - ] - - operations = [ - migrations.AddField( - model_name='contributor', - name='expertises', - field=scipost.fields.ChoiceArrayField(base_field=models.CharField(choices=[('Physics', (('Phys:A', 'Atomic, Molecular and Optical Physics'), ('Phys:B', 'Biophysics'), ('Phys:C', 'Condensed Matter Physics'), ('Phys:F', 'Fluid Dynamics'), ('Phys:G', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:H', 'High-Energy Physics'), ('Phys:M', 'Mathematical Physics'), ('Phys:N', 'Nuclear Physics'), ('Phys:Q', 'Quantum Statistical Mechanics'), ('Phys:S', 'Statistical and Soft Matter Physics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:PDE', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:ODE', 'Classical Analysis and ODEs'), ('Math:COMB', 'Combinatorics'), ('Math:CA', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GenT', 'General Topology'), ('Math:GeoT', 'Geometric Topology'), ('Math:Group', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:L', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:Proba', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SpecT', 'Spectral Theory'), ('Math:StatT', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], max_length=10), blank=True, null=True, size=None), - ), - migrations.AlterField( - model_name='contributor', - name='discipline', - field=models.CharField(choices=[('physics', 'Physics'), ('mathematics', 'Mathematics'), ('computerscience', 'Computer Science')], default='physics', max_length=20), - ), - ] diff --git a/scipost/migrations/0014_auto_20160811_1057.py b/scipost/migrations/0014_auto_20160811_1057.py deleted file mode 100644 index dd9fc91596bcb1dc89326e7a67a4f1a314058667..0000000000000000000000000000000000000000 --- a/scipost/migrations/0014_auto_20160811_1057.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-08-11 08:57 -from __future__ import unicode_literals - -from django.db import migrations, models -import scipost.models -import scipost.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0013_auto_20160810_1608'), - ] - - operations = [ - migrations.AlterField( - model_name='contributor', - name='discipline', - field=models.CharField(choices=[('physics', 'Physics'), ('astrophysics', 'Astrophysics'), ('mathematics', 'Mathematics'), ('computerscience', 'Computer Science')], default='physics', max_length=20), - ), - migrations.AlterField( - model_name='contributor', - name='expertises', - field=scipost.fields.ChoiceArrayField(base_field=models.CharField(choices=[('Physics', (('Phys:A', 'Atomic, Molecular and Optical Physics'), ('Phys:B', 'Biophysics'), ('Phys:C', 'Condensed Matter Physics'), ('Phys:F', 'Fluid Dynamics'), ('Phys:G', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:H', 'High-Energy Physics'), ('Phys:M', 'Mathematical Physics'), ('Phys:N', 'Nuclear Physics'), ('Phys:Q', 'Quantum Statistical Mechanics'), ('Phys:S', 'Statistical and Soft Matter Physics'))), ('Astrophysics', (('Astro:GA', 'Astrophysics of Galaxies'), ('Astro:CO', 'Cosmology and Nongalactic Astrophysics'), ('Astro:EP', 'Earth and Planetary Astrophysics'), ('Astro:HE', 'High Energy Astrophysical Phenomena'), ('Astro:IM', 'Instrumentation and Methods for Astrophysics'), ('Astro:SR', 'Solar and Stellar Astrophysics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:PDE', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:ODE', 'Classical Analysis and ODEs'), ('Math:COMB', 'Combinatorics'), ('Math:CA', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GenT', 'General Topology'), ('Math:GeoT', 'Geometric Topology'), ('Math:Group', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:L', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:Proba', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SpecT', 'Spectral Theory'), ('Math:StatT', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], max_length=10), blank=True, null=True, size=None), - ), - ] diff --git a/scipost/migrations/0015_auto_20160811_1305.py b/scipost/migrations/0015_auto_20160811_1305.py deleted file mode 100644 index 8253a887e60eb4c6349de4dac58e649e44c14633..0000000000000000000000000000000000000000 --- a/scipost/migrations/0015_auto_20160811_1305.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-08-11 11:05 -from __future__ import unicode_literals - -from django.db import migrations, models -import scipost.models -import scipost.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0014_auto_20160811_1057'), - ] - - operations = [ - migrations.AlterField( - model_name='contributor', - name='discipline', - field=models.CharField(choices=[('physics', 'Physics'), ('astrophysics', 'Astrophysics'), ('mathematics', 'Mathematics'), ('computerscience', 'Computer Science')], default='physics', max_length=20, verbose_name='Main discipline'), - ), - migrations.AlterField( - model_name='contributor', - name='expertises', - field=scipost.fields.ChoiceArrayField(base_field=models.CharField(choices=[('Physics', (('Phys:AE', 'Atomic, Molecular and Optical Physics - Experiment'), ('Phys:AT', 'Atomic, Molecular and Optical Physics - Theory'), ('Phys:BI', 'Biophysics'), ('Phys:CE', 'Condensed Matter Physics - Experiment'), ('Phys:CT', 'Condensed Matter Physics - Theory'), ('Phys:FD', 'Fluid Dynamics'), ('Phys:GR', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:HE', 'High-Energy Physics - Experiment'), ('Phys:HT', 'High-Energy Physics- Theory'), ('Phys:HP', 'High-Energy Physics - Phenomenology'), ('Phys:MP', 'Mathematical Physics'), ('Phys:NE', 'Nuclear Physics - Experiment'), ('Phys:NT', 'Nuclear Physics - Theory'), ('Phys:QP', 'Quantum Physics'), ('Phys:SM', 'Statistical and Soft Matter Physics'))), ('Astrophysics', (('Astro:GA', 'Astrophysics of Galaxies'), ('Astro:CO', 'Cosmology and Nongalactic Astrophysics'), ('Astro:EP', 'Earth and Planetary Astrophysics'), ('Astro:HE', 'High Energy Astrophysical Phenomena'), ('Astro:IM', 'Instrumentation and Methods for Astrophysics'), ('Astro:SR', 'Solar and Stellar Astrophysics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:AP', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:CA', 'Classical Analysis and ODEs'), ('Math:CO', 'Combinatorics'), ('Math:AC', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GN', 'General Topology'), ('Math:GT', 'Geometric Topology'), ('Math:GR', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:LO', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:PR', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SP', 'Spectral Theory'), ('Math:ST', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], max_length=10), blank=True, null=True, size=None), - ), - ] diff --git a/scipost/migrations/0016_remark.py b/scipost/migrations/0016_remark.py deleted file mode 100644 index 1bb698958ceb8c2a04b453c936d9b16b7acc9a45..0000000000000000000000000000000000000000 --- a/scipost/migrations/0016_remark.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-08-13 12:01 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0015_auto_20160811_1305'), - ] - - operations = [ - migrations.CreateModel( - name='Remark', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('date', models.DateTimeField()), - ('remark', models.TextField()), - ('contributor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor')), - ], - ), - ] diff --git a/scipost/migrations/0017_remark_recommendation.py b/scipost/migrations/0017_remark_recommendation.py deleted file mode 100644 index 5e6471f1e217ce26132c52957530fa4f30446134..0000000000000000000000000000000000000000 --- a/scipost/migrations/0017_remark_recommendation.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-08-13 13:27 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0021_remove_eicrecommendation_remarks_during_voting'), - ('scipost', '0016_remark'), - ] - - operations = [ - migrations.AddField( - model_name='remark', - name='recommendation', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='submissions.EICRecommendation'), - ), - ] diff --git a/scipost/migrations/0018_newsitem.py b/scipost/migrations/0018_newsitem.py deleted file mode 100644 index 771c1e4b27f72de02fcfba86aa67e2780b1e77a2..0000000000000000000000000000000000000000 --- a/scipost/migrations/0018_newsitem.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-09-16 07:03 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0017_remark_recommendation'), - ] - - operations = [ - migrations.CreateModel( - name='NewsItem', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('date', models.DateField()), - ('headline', models.CharField(max_length=300)), - ('blurb', models.TextField()), - ('followup_link', models.URLField(blank=True, null=True)), - ('followup_link_text', models.CharField(blank=True, max_length=300, null=True)), - ], - ), - ] diff --git a/scipost/migrations/0019_contributor_accepts_scipost_emails.py b/scipost/migrations/0019_contributor_accepts_scipost_emails.py deleted file mode 100644 index 8b291fe1669420397896ce508b3b766c332c0eb1..0000000000000000000000000000000000000000 --- a/scipost/migrations/0019_contributor_accepts_scipost_emails.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-09-17 06:19 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0018_newsitem'), - ] - - operations = [ - migrations.AddField( - model_name='contributor', - name='accepts_SciPost_emails', - field=models.BooleanField(default=True, verbose_name='I accept to receive SciPost emails'), - ), - ] diff --git a/scipost/migrations/0020_auto_20160920_0831.py b/scipost/migrations/0020_auto_20160920_0831.py deleted file mode 100644 index 2820e3da8ed5fb5c0fa3d3bbb2c9be3ea7d20b85..0000000000000000000000000000000000000000 --- a/scipost/migrations/0020_auto_20160920_0831.py +++ /dev/null @@ -1,37 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-09-20 06:31 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0001_initial'), - ('scipost', '0019_contributor_accepts_scipost_emails'), - ] - - operations = [ - migrations.AddField( - model_name='registrationinvitation', - name='cited_in_publication', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='journals.Publication'), - ), - migrations.AddField( - model_name='registrationinvitation', - name='date_last_reminded', - field=models.DateTimeField(blank=True, null=True), - ), - migrations.AddField( - model_name='registrationinvitation', - name='nr_reminders', - field=models.PositiveSmallIntegerField(default=0), - ), - migrations.AlterField( - model_name='registrationinvitation', - name='invitation_type', - field=models.CharField(choices=[('F', 'Editorial Fellow'), ('C', 'Contributor'), ('R', 'Refereeing'), ('ci', 'cited in submission'), ('cp', 'cited in publication')], default='C', max_length=2), - ), - ] diff --git a/scipost/migrations/0021_precookedemail.py b/scipost/migrations/0021_precookedemail.py deleted file mode 100644 index bb4639be04d2867a4c282493d8c3f5507cd69736..0000000000000000000000000000000000000000 --- a/scipost/migrations/0021_precookedemail.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-10-03 17:15 -from __future__ import unicode_literals - -import django.contrib.postgres.fields -from django.db import migrations, models -import django.utils.timezone - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0020_auto_20160920_0831'), - ] - - operations = [ - migrations.CreateModel( - name='PrecookedEmail', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('email_subject', models.CharField(max_length=300)), - ('email_text', models.TextField()), - ('email_text_html', models.TextField()), - ('date_created', models.DateField(default=django.utils.timezone.now)), - ('emailed_to', django.contrib.postgres.fields.ArrayField(base_field=models.EmailField(blank=True, max_length=254), blank=True, size=None)), - ('date_last_used', models.DateField(default=django.utils.timezone.now)), - ('deprecated', models.BooleanField(default=False)), - ], - ), - ] diff --git a/scipost/migrations/0022_registrationinvitation_declined.py b/scipost/migrations/0022_registrationinvitation_declined.py deleted file mode 100644 index 52d73978f7d7bc8309b2db3f7b05977a600e8808..0000000000000000000000000000000000000000 --- a/scipost/migrations/0022_registrationinvitation_declined.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-10-25 04:00 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0021_precookedemail'), - ] - - operations = [ - migrations.AddField( - model_name='registrationinvitation', - name='declined', - field=models.BooleanField(default=False), - ), - ] diff --git a/scipost/migrations/0023_auto_20161112_1049.py b/scipost/migrations/0023_auto_20161112_1049.py deleted file mode 100644 index 34e3acf8bb485138ff4471cb749c489638bcd0f3..0000000000000000000000000000000000000000 --- a/scipost/migrations/0023_auto_20161112_1049.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-11-12 09:49 -from __future__ import unicode_literals - -import datetime -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0022_registrationinvitation_declined'), - ] - - operations = [ - migrations.CreateModel( - name='SPBMembershipAgreement', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('status', models.CharField(choices=[('Submitted', 'Request submitted by Partner'), ('Pending', 'Sent to Partner, response pending'), ('Signed', 'Signed by Partner'), ('Honoured', 'Honoured: payment of Partner received')], max_length=16)), - ('date_requested', models.DateField()), - ('start_date', models.DateField()), - ('duration', models.DurationField(choices=[(datetime.timedelta(365), '1 year'), (datetime.timedelta(1095), '3 years'), (datetime.timedelta(1825), '5 years')])), - ], - ), - migrations.CreateModel( - name='SupportingPartner', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('partner_type', models.CharField(choices=[('Int. Fund. Agency', 'International Funding Agency'), ('Nat. Fund. Agency', 'National Funding Agency'), ('Univ. Library', 'University Library'), ('Univ. Library. Consortium', 'University Library Consortium'), ('Foundation', 'Foundation'), ('Individual', 'Individual')], max_length=32)), - ('status', models.CharField(choices=[('Prospective', 'Prospective'), ('Active', 'Active'), ('Inactive', 'Inactive')], max_length=16)), - ('institution', models.CharField(max_length=256)), - ('institution_acronym', models.CharField(max_length=10)), - ('institution_address', models.CharField(max_length=1000)), - ('contact_person', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor')), - ], - ), - migrations.AddField( - model_name='spbmembershipagreement', - name='partner', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='scipost.SupportingPartner'), - ), - ] diff --git a/scipost/migrations/0024_auto_20161117_0602.py b/scipost/migrations/0024_auto_20161117_0602.py deleted file mode 100644 index 412e0365eedb3155c4f1b26b17de4481ae59202d..0000000000000000000000000000000000000000 --- a/scipost/migrations/0024_auto_20161117_0602.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-11-17 05:02 -from __future__ import unicode_literals - -import datetime -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0023_auto_20161112_1049'), - ] - - operations = [ - migrations.AddField( - model_name='supportingpartner', - name='consortium_members', - field=models.TextField(blank=True, null=True), - ), - migrations.AlterField( - model_name='spbmembershipagreement', - name='duration', - field=models.DurationField(choices=[(datetime.timedelta(365), '1 year'), (datetime.timedelta(730), '2 years'), (datetime.timedelta(1095), '3 years'), (datetime.timedelta(1460), '4 years'), (datetime.timedelta(1825), '5 years')]), - ), - migrations.AlterField( - model_name='supportingpartner', - name='partner_type', - field=models.CharField(choices=[('Int. Fund. Agency', 'International Funding Agency'), ('Nat. Fund. Agency', 'National Funding Agency'), ('Nat. Library', 'National Library'), ('Univ. Library', 'University Library'), ('Res. Library', 'Research Library'), ('Consortium', 'Consortium'), ('Foundation', 'Foundation'), ('Individual', 'Individual')], max_length=32), - ), - ] diff --git a/scipost/migrations/0025_auto_20161118_0839.py b/scipost/migrations/0025_auto_20161118_0839.py deleted file mode 100644 index a922e4344f7d87eac9262366a4eb89a7874981cb..0000000000000000000000000000000000000000 --- a/scipost/migrations/0025_auto_20161118_0839.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-11-18 07:39 -from __future__ import unicode_literals - -from django.db import migrations, models -import django_countries.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0024_auto_20161117_0602'), - ] - - operations = [ - migrations.CreateModel( - name='AffiliationObject', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('country', django_countries.fields.CountryField(max_length=2)), - ('institution', models.CharField(max_length=128)), - ('subunit', models.CharField(max_length=128)), - ], - ), - migrations.AddField( - model_name='spbmembershipagreement', - name='offered_yearly_contribution', - field=models.SmallIntegerField(default=0), - ), - ] diff --git a/scipost/migrations/0026_draftinvitation.py b/scipost/migrations/0026_draftinvitation.py deleted file mode 100644 index db2dc27587e74c25d31c9d029247d64357a6d6ed..0000000000000000000000000000000000000000 --- a/scipost/migrations/0026_draftinvitation.py +++ /dev/null @@ -1,35 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2016-11-29 09:19 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import django.utils.timezone - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0006_publication_citedby'), - ('submissions', '0027_auto_20161019_2109'), - ('scipost', '0025_auto_20161118_0839'), - ] - - operations = [ - migrations.CreateModel( - name='DraftInvitation', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('title', models.CharField(choices=[('PR', 'Prof.'), ('DR', 'Dr'), ('MR', 'Mr'), ('MRS', 'Mrs')], max_length=4)), - ('first_name', models.CharField(default='', max_length=30)), - ('last_name', models.CharField(default='', max_length=30)), - ('email', models.EmailField(max_length=254)), - ('invitation_type', models.CharField(choices=[('F', 'Editorial Fellow'), ('C', 'Contributor'), ('R', 'Refereeing'), ('ci', 'cited in submission'), ('cp', 'cited in publication')], default='C', max_length=2)), - ('date_drafted', models.DateTimeField(default=django.utils.timezone.now)), - ('processed', models.BooleanField(default=False)), - ('cited_in_publication', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='journals.Publication')), - ('cited_in_submission', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='submissions.Submission')), - ('drafted_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor')), - ], - ), - ] diff --git a/scipost/migrations/0027_citationnotification.py b/scipost/migrations/0027_citationnotification.py deleted file mode 100644 index 1c0a8e27cf3204f382f2504c667599e81ee42309..0000000000000000000000000000000000000000 --- a/scipost/migrations/0027_citationnotification.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2016-12-29 09:47 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import django.utils.timezone - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0028_auto_20161212_1931'), - ('journals', '0006_publication_citedby'), - ('scipost', '0026_draftinvitation'), - ] - - operations = [ - migrations.CreateModel( - name='CitationNotification', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('date_drafted', models.DateTimeField(default=django.utils.timezone.now)), - ('processed', models.BooleanField(default=False)), - ('cited_in_publication', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='journals.Publication')), - ('cited_in_submission', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='submissions.Submission')), - ('contributor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor')), - ], - ), - ] diff --git a/scipost/migrations/0028_remove_citationnotification_date_drafted.py b/scipost/migrations/0028_remove_citationnotification_date_drafted.py deleted file mode 100644 index 79b4fa512e38c172a645cce0cdba293d74a6c31d..0000000000000000000000000000000000000000 --- a/scipost/migrations/0028_remove_citationnotification_date_drafted.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2016-12-29 09:47 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0027_citationnotification'), - ] - - operations = [ - migrations.RemoveField( - model_name='citationnotification', - name='date_drafted', - ), - ] diff --git a/scipost/migrations/0029_remark_submission.py b/scipost/migrations/0029_remark_submission.py deleted file mode 100644 index e07a0ad86d5d5f6e50b97c93b803cfd6403caace..0000000000000000000000000000000000000000 --- a/scipost/migrations/0029_remark_submission.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-01-17 16:45 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0028_auto_20161212_1931'), - ('scipost', '0028_remove_citationnotification_date_drafted'), - ] - - operations = [ - migrations.AddField( - model_name='remark', - name='submission', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='submissions.Submission'), - ), - ] diff --git a/scipost/migrations/0030_auto_20170118_1406.py b/scipost/migrations/0030_auto_20170118_1406.py deleted file mode 100644 index c938c3a399e751dec47bdabb829fed2c6a0cbc88..0000000000000000000000000000000000000000 --- a/scipost/migrations/0030_auto_20170118_1406.py +++ /dev/null @@ -1,64 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-01-18 13:06 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import django.utils.timezone - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0029_remark_submission'), - ] - - operations = [ - migrations.CreateModel( - name='Motion', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('background', models.TextField()), - ('motion', models.TextField()), - ('date', models.DateField()), - ('nr_A', models.PositiveIntegerField(default=0)), - ('nr_N', models.PositiveIntegerField(default=0)), - ('nr_D', models.PositiveIntegerField(default=0)), - ('voting_deadline', models.DateTimeField(default=django.utils.timezone.now, verbose_name='voting deadline')), - ('accepted', models.NullBooleanField()), - ], - ), - migrations.CreateModel( - name='VGM', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('start_date', models.DateField()), - ('end_date', models.DateField()), - ], - ), - migrations.AddField( - model_name='motion', - name='VGM', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='scipost.VGM'), - ), - migrations.AddField( - model_name='motion', - name='in_agreement', - field=models.ManyToManyField(blank=True, related_name='in_agreement_with_motion', to='scipost.Contributor'), - ), - migrations.AddField( - model_name='motion', - name='in_disagreement', - field=models.ManyToManyField(blank=True, related_name='in_disagreement_with_motion', to='scipost.Contributor'), - ), - migrations.AddField( - model_name='motion', - name='in_notsure', - field=models.ManyToManyField(blank=True, related_name='in_notsure_with_motion', to='scipost.Contributor'), - ), - migrations.AddField( - model_name='motion', - name='put_forward_by', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor'), - ), - ] diff --git a/scipost/migrations/0031_remark_motion.py b/scipost/migrations/0031_remark_motion.py deleted file mode 100644 index cd4f9fc8bc5659a59d3794d4031f3de1c31c76b3..0000000000000000000000000000000000000000 --- a/scipost/migrations/0031_remark_motion.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-01-18 16:45 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0030_auto_20170118_1406'), - ] - - operations = [ - migrations.AddField( - model_name='remark', - name='motion', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='scipost.Motion'), - ), - ] diff --git a/scipost/migrations/0032_auto_20170121_1032.py b/scipost/migrations/0032_auto_20170121_1032.py deleted file mode 100644 index 0e56271c226691e3a00debaaf504f5645c2c5d26..0000000000000000000000000000000000000000 --- a/scipost/migrations/0032_auto_20170121_1032.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-01-21 09:32 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import django.utils.timezone -import scipost.models -import scipost.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0031_remark_motion'), - ] - - operations = [ - migrations.CreateModel( - name='Nomination', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('date', models.DateField()), - ('first_name', models.CharField(default='', max_length=30)), - ('last_name', models.CharField(default='', max_length=30)), - ('discipline', models.CharField(choices=[('physics', 'Physics'), ('astrophysics', 'Astrophysics'), ('mathematics', 'Mathematics'), ('computerscience', 'Computer Science')], default='physics', max_length=20, verbose_name='Main discipline')), - ('expertises', scipost.fields.ChoiceArrayField(base_field=models.CharField(choices=[('Physics', (('Phys:AE', 'Atomic, Molecular and Optical Physics - Experiment'), ('Phys:AT', 'Atomic, Molecular and Optical Physics - Theory'), ('Phys:BI', 'Biophysics'), ('Phys:CE', 'Condensed Matter Physics - Experiment'), ('Phys:CT', 'Condensed Matter Physics - Theory'), ('Phys:FD', 'Fluid Dynamics'), ('Phys:GR', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:HE', 'High-Energy Physics - Experiment'), ('Phys:HT', 'High-Energy Physics- Theory'), ('Phys:HP', 'High-Energy Physics - Phenomenology'), ('Phys:MP', 'Mathematical Physics'), ('Phys:NE', 'Nuclear Physics - Experiment'), ('Phys:NT', 'Nuclear Physics - Theory'), ('Phys:QP', 'Quantum Physics'), ('Phys:SM', 'Statistical and Soft Matter Physics'))), ('Astrophysics', (('Astro:GA', 'Astrophysics of Galaxies'), ('Astro:CO', 'Cosmology and Nongalactic Astrophysics'), ('Astro:EP', 'Earth and Planetary Astrophysics'), ('Astro:HE', 'High Energy Astrophysical Phenomena'), ('Astro:IM', 'Instrumentation and Methods for Astrophysics'), ('Astro:SR', 'Solar and Stellar Astrophysics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:AP', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:CA', 'Classical Analysis and ODEs'), ('Math:CO', 'Combinatorics'), ('Math:AC', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GN', 'General Topology'), ('Math:GT', 'Geometric Topology'), ('Math:GR', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:LO', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:PR', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SP', 'Spectral Theory'), ('Math:ST', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], max_length=10), blank=True, null=True, size=None)), - ('nr_A', models.PositiveIntegerField(default=0)), - ('nr_N', models.PositiveIntegerField(default=0)), - ('nr_D', models.PositiveIntegerField(default=0)), - ('voting_deadline', models.DateTimeField(default=django.utils.timezone.now, verbose_name='voting deadline')), - ('accepted', models.NullBooleanField()), - ('by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor')), - ('in_agreement', models.ManyToManyField(blank=True, related_name='in_agreement_with_nomination', to='scipost.Contributor')), - ('in_disagreement', models.ManyToManyField(blank=True, related_name='in_disagreement_with_nomination', to='scipost.Contributor')), - ('in_notsure', models.ManyToManyField(blank=True, related_name='in_notsure_with_nomination', to='scipost.Contributor')), - ], - ), - migrations.AddField( - model_name='remark', - name='nomination', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='scipost.Nomination'), - ), - ] diff --git a/scipost/migrations/0033_nomination_vgm.py b/scipost/migrations/0033_nomination_vgm.py deleted file mode 100644 index ea1713d6ae70acbcc619b6140f7e8b12c2000168..0000000000000000000000000000000000000000 --- a/scipost/migrations/0033_nomination_vgm.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-01-21 09:53 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0032_auto_20170121_1032'), - ] - - operations = [ - migrations.AddField( - model_name='nomination', - name='VGM', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='scipost.VGM'), - ), - ] diff --git a/scipost/migrations/0034_motion_category.py b/scipost/migrations/0034_motion_category.py deleted file mode 100644 index 2f3ab3c6657ecc2fc6ecced854612b826fb79b74..0000000000000000000000000000000000000000 --- a/scipost/migrations/0034_motion_category.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-01-21 10:12 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0033_nomination_vgm'), - ] - - operations = [ - migrations.AddField( - model_name='motion', - name='category', - field=models.CharField(choices=[('ByLawAmend', 'Amendments to by-laws'), ('Workflow', 'Editorial workflow improvements'), ('General', 'General')], default='General', max_length=10), - ), - ] diff --git a/scipost/migrations/0035_vgm_information.py b/scipost/migrations/0035_vgm_information.py deleted file mode 100644 index 9037d41378cc0095783a212485b4700f42c8fb24..0000000000000000000000000000000000000000 --- a/scipost/migrations/0035_vgm_information.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-01-21 13:19 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0034_motion_category'), - ] - - operations = [ - migrations.AddField( - model_name='vgm', - name='information', - field=models.TextField(default=''), - ), - ] diff --git a/scipost/migrations/0036_feedback.py b/scipost/migrations/0036_feedback.py deleted file mode 100644 index ed0da2b20125fbfd2c9d6c083adcf7983e6db1b6..0000000000000000000000000000000000000000 --- a/scipost/migrations/0036_feedback.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-01-21 14:17 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0035_vgm_information'), - ] - - operations = [ - migrations.CreateModel( - name='Feedback', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('date', models.DateField()), - ('feedback', models.TextField()), - ('VGM', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='scipost.VGM')), - ('by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor')), - ], - ), - ] diff --git a/scipost/migrations/0037_remark_feedback.py b/scipost/migrations/0037_remark_feedback.py deleted file mode 100644 index 2c07b7f723a2b95fffed6f1d1903369939e56f0b..0000000000000000000000000000000000000000 --- a/scipost/migrations/0037_remark_feedback.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-01-21 18:22 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0036_feedback'), - ] - - operations = [ - migrations.AddField( - model_name='remark', - name='feedback', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='scipost.Feedback'), - ), - ] diff --git a/scipost/migrations/0038_nomination_webpage.py b/scipost/migrations/0038_nomination_webpage.py deleted file mode 100644 index f53718c7133b45b12ba7d8969630b31e5c6004ee..0000000000000000000000000000000000000000 --- a/scipost/migrations/0038_nomination_webpage.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-01-24 09:18 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0037_remark_feedback'), - ] - - operations = [ - migrations.AddField( - model_name='nomination', - name='webpage', - field=models.URLField(default=''), - ), - ] diff --git a/scipost/migrations/0039_auto_20170306_0804.py b/scipost/migrations/0039_auto_20170306_0804.py deleted file mode 100644 index 5be053234821f984b1ce69eb6092d7f2c324d784..0000000000000000000000000000000000000000 --- a/scipost/migrations/0039_auto_20170306_0804.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-03-06 07:04 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0038_nomination_webpage'), - ] - - operations = [ - # I'm in a vacuum state. - # Please don't remove me though... - ] diff --git a/scipost/migrations/0040_auto_20170317_1659.py b/scipost/migrations/0040_auto_20170317_1659.py deleted file mode 100644 index 69ce2c10f3d5e8411bc1311db64e802bd9a5b399..0000000000000000000000000000000000000000 --- a/scipost/migrations/0040_auto_20170317_1659.py +++ /dev/null @@ -1,106 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-03-17 15:59 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0039_auto_20170306_0804'), - ] - - operations = [ - migrations.RemoveField( - model_name='arc', - name='added_by', - ), - migrations.RemoveField( - model_name='arc', - name='graph', - ), - migrations.RemoveField( - model_name='arc', - name='source', - ), - migrations.RemoveField( - model_name='arc', - name='target', - ), - migrations.RemoveField( - model_name='graph', - name='owner', - ), - migrations.RemoveField( - model_name='graph', - name='teams_with_access', - ), - migrations.RemoveField( - model_name='list', - name='commentaries', - ), - migrations.RemoveField( - model_name='list', - name='comments', - ), - migrations.RemoveField( - model_name='list', - name='owner', - ), - migrations.RemoveField( - model_name='list', - name='submissions', - ), - migrations.RemoveField( - model_name='list', - name='teams_with_access', - ), - migrations.RemoveField( - model_name='list', - name='thesislinks', - ), - migrations.RemoveField( - model_name='node', - name='added_by', - ), - migrations.RemoveField( - model_name='node', - name='commentaries', - ), - migrations.RemoveField( - model_name='node', - name='graph', - ), - migrations.RemoveField( - model_name='node', - name='submissions', - ), - migrations.RemoveField( - model_name='node', - name='thesislinks', - ), - migrations.RemoveField( - model_name='team', - name='leader', - ), - migrations.RemoveField( - model_name='team', - name='members', - ), - migrations.DeleteModel( - name='Arc', - ), - migrations.DeleteModel( - name='Graph', - ), - migrations.DeleteModel( - name='List', - ), - migrations.DeleteModel( - name='Node', - ), - migrations.DeleteModel( - name='Team', - ), - ] diff --git a/scipost/migrations/0041_editorialcollege_editorialcollegemember.py b/scipost/migrations/0041_editorialcollege_editorialcollegemember.py deleted file mode 100644 index 8fd915aa3ac27a8311554631bbfb25a306338886..0000000000000000000000000000000000000000 --- a/scipost/migrations/0041_editorialcollege_editorialcollegemember.py +++ /dev/null @@ -1,33 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-03-18 20:08 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0040_auto_20170317_1659'), - ] - - operations = [ - migrations.CreateModel( - name='EditorialCollege', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('discipline', models.CharField(max_length=255)), - ], - ), - migrations.CreateModel( - name='EditorialCollegeMember', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('name', models.CharField(max_length=255)), - ('title', models.CharField(blank=True, max_length=10)), - ('link', models.URLField(blank=True)), - ('subtitle', models.CharField(blank=True, max_length=255)), - ('discipline', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='member', to='scipost.EditorialCollege')), - ], - ), - ] diff --git a/scipost/migrations/0042_auto_20170318_2119.py b/scipost/migrations/0042_auto_20170318_2119.py deleted file mode 100644 index faa0e56370414289d2a3988a3c3e166c5c2131d1..0000000000000000000000000000000000000000 --- a/scipost/migrations/0042_auto_20170318_2119.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-03-18 20:19 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0041_editorialcollege_editorialcollegemember'), - ] - - operations = [ - migrations.AlterField( - model_name='editorialcollege', - name='discipline', - field=models.CharField(max_length=255, unique=True), - ), - ] diff --git a/scipost/migrations/0043_auto_20170318_2237.py b/scipost/migrations/0043_auto_20170318_2237.py deleted file mode 100644 index 231b06e9922cb3800e82fa7f890217adce67d1d7..0000000000000000000000000000000000000000 --- a/scipost/migrations/0043_auto_20170318_2237.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-03-18 21:37 -from __future__ import unicode_literals - -from django.db import migrations - -# from ..db.constants_migration_0043 import collegeMembers - - -def fill_editorial_college(apps, schema_editor): - EditorialCollege = apps.get_model('scipost', 'EditorialCollege') - EditorialMember = apps.get_model('scipost', 'EditorialCollegeMember') - college, new = EditorialCollege.objects.get_or_create(discipline='Physics') - collegeMembers = [] - for member in collegeMembers: - EditorialMember.objects.get_or_create(discipline=college, **member) - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0042_auto_20170318_2119'), - ] - - operations = [ - migrations.RunPython(fill_editorial_college), - ] diff --git a/scipost/migrations/0044_auto_20170319_0940.py b/scipost/migrations/0044_auto_20170319_0940.py deleted file mode 100644 index 6a7dae3567634825d7841eb7b8ec774a27eafa1b..0000000000000000000000000000000000000000 --- a/scipost/migrations/0044_auto_20170319_0940.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-03-19 08:40 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0043_auto_20170318_2237'), - ] - - operations = [ - migrations.RenameField( - model_name='editorialcollegemember', - old_name='discipline', - new_name='college', - ), - ] diff --git a/scipost/migrations/0045_auto_20170319_2008.py b/scipost/migrations/0045_auto_20170319_2008.py deleted file mode 100644 index 0f3ef75bf489d60a9f2d01268f96ee1be59d963a..0000000000000000000000000000000000000000 --- a/scipost/migrations/0045_auto_20170319_2008.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-03-19 19:08 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import django.utils.timezone -import scipost.db.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0044_auto_20170319_0940'), - ] - - operations = [ - migrations.CreateModel( - name='EditorialCollegeFellow', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('created', models.DateTimeField(default=django.utils.timezone.now)), - ('latest_activity', scipost.db.fields.AutoDateTimeField(blank=True, default=django.utils.timezone.now, editable=False)), - ('college', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='fellows', to='scipost.EditorialCollege')), - ('contributor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='scipost.Contributor')), - ], - options={ - 'abstract': False, - }, - ), - migrations.RemoveField( - model_name='editorialcollegemember', - name='college', - ), - migrations.DeleteModel( - name='EditorialCollegeMember', - ), - ] diff --git a/scipost/migrations/0046_auto_20170319_2032.py b/scipost/migrations/0046_auto_20170319_2032.py deleted file mode 100644 index 2e15e2bf9227f7829767346cb859b22f916819d2..0000000000000000000000000000000000000000 --- a/scipost/migrations/0046_auto_20170319_2032.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-03-19 19:32 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0045_auto_20170319_2008'), - ] - - operations = [ - migrations.AddField( - model_name='editorialcollegefellow', - name='start_date', - field=models.DateField(blank=True, null=True), - ), - migrations.AddField( - model_name='editorialcollegefellow', - name='until_date', - field=models.DateField(blank=True, null=True), - ), - ] diff --git a/scipost/migrations/0047_auto_20170319_2110.py b/scipost/migrations/0047_auto_20170319_2110.py deleted file mode 100644 index 6f24286a6a95caf53970bf1af944d02067f2a526..0000000000000000000000000000000000000000 --- a/scipost/migrations/0047_auto_20170319_2110.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-03-19 20:10 -from __future__ import unicode_literals - -from django.db import migrations, models -import scipost.models - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0046_auto_20170319_2032'), - ] - - operations = [ - migrations.AlterField( - model_name='contributor', - name='vetted_by', - field=models.ForeignKey(blank=True, null=True, on_delete=models.SET(scipost.models.get_sentinel_user), related_name='contrib_vetted_by', to='scipost.Contributor'), - ), - migrations.AlterUniqueTogether( - name='editorialcollegefellow', - unique_together=set([('contributor', 'college', 'start_date', 'until_date')]), - ), - ] diff --git a/scipost/migrations/0048_auto_20170320_1934.py b/scipost/migrations/0048_auto_20170320_1934.py deleted file mode 100644 index 59d4ca6352d2cdd5d71dd37c3f90064da8755c15..0000000000000000000000000000000000000000 --- a/scipost/migrations/0048_auto_20170320_1934.py +++ /dev/null @@ -1,49 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-03-20 18:34 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import django.utils.timezone -import scipost.db.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0047_auto_20170319_2110'), - ] - - operations = [ - migrations.CreateModel( - name='EditorialCollegeFellowship', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('created', models.DateTimeField(default=django.utils.timezone.now)), - ('latest_activity', scipost.db.fields.AutoDateTimeField(blank=True, default=django.utils.timezone.now, editable=False)), - ('start_date', models.DateField(blank=True, null=True)), - ('until_date', models.DateField(blank=True, null=True)), - ('college', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='fellowships', to='scipost.EditorialCollege')), - ('contributor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='scipost.Contributor')), - ], - ), - migrations.AlterUniqueTogether( - name='editorialcollegefellow', - unique_together=set([]), - ), - migrations.RemoveField( - model_name='editorialcollegefellow', - name='college', - ), - migrations.RemoveField( - model_name='editorialcollegefellow', - name='contributor', - ), - migrations.DeleteModel( - name='EditorialCollegeFellow', - ), - migrations.AlterUniqueTogether( - name='editorialcollegefellowship', - unique_together=set([('contributor', 'college', 'start_date', 'until_date')]), - ), - ] diff --git a/scipost/migrations/0049_editorialcollegefellowship_affiliation.py b/scipost/migrations/0049_editorialcollegefellowship_affiliation.py deleted file mode 100644 index 860becf8106e4b7adb3764a29d8665acd45ad7d6..0000000000000000000000000000000000000000 --- a/scipost/migrations/0049_editorialcollegefellowship_affiliation.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-04-04 14:44 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0048_auto_20170320_1934'), - ] - - operations = [ - migrations.AddField( - model_name='editorialcollegefellowship', - name='affiliation', - field=models.CharField(blank=True, max_length=255), - ), - ] diff --git a/scipost/migrations/0050_auto_20170416_2152.py b/scipost/migrations/0050_auto_20170416_2152.py deleted file mode 100644 index b2eb21d5cd61d7582c9d0af0d8a604a5a89420f6..0000000000000000000000000000000000000000 --- a/scipost/migrations/0050_auto_20170416_2152.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-04-16 19:52 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0049_editorialcollegefellowship_affiliation'), - ] - - operations = [ - migrations.AlterField( - model_name='contributor', - name='activation_key', - field=models.CharField(blank=True, max_length=40), - ), - migrations.AlterField( - model_name='contributor', - name='invitation_key', - field=models.CharField(blank=True, default='', max_length=40), - preserve_default=False, - ), - migrations.AlterField( - model_name='registrationinvitation', - name='cited_in_submission', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='registration_invitations', to='submissions.Submission'), - ), - migrations.AlterField( - model_name='registrationinvitation', - name='invitation_key', - field=models.CharField(max_length=40, unique=True), - ), - migrations.AlterField( - model_name='registrationinvitation', - name='personal_message', - field=models.TextField(blank=True, default=''), - preserve_default=False, - ), - ] diff --git a/scipost/migrations/0051_auto_20170504_1359.py b/scipost/migrations/0051_auto_20170504_1359.py deleted file mode 100644 index 93ec6c4eec19c94aa37fb011b5ae9955b2a4a640..0000000000000000000000000000000000000000 --- a/scipost/migrations/0051_auto_20170504_1359.py +++ /dev/null @@ -1,55 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-05-04 11:59 -from __future__ import unicode_literals - -from django.db import migrations -from django.db.migrations.exceptions import InvalidMigrationPlan - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0050_auto_20170416_2152'), - ] - - operations = [ - migrations.AlterModelTable( - name='Feedback', - table='scipost_feedback', - ), - migrations.AlterModelTable( - name='Motion', - table='scipost_motion', - ), - migrations.AlterModelTable( - name='Nomination', - table='scipost_nomination', - ), - migrations.AlterModelTable( - name='VGM', - table='scipost_vgm', - ), - migrations.RemoveField( - model_name='remark', - name='feedback', - ), - migrations.RemoveField( - model_name='remark', - name='motion', - ), - migrations.RemoveField( - model_name='remark', - name='nomination', - ), - ] - - def apply(self, *args, **kwargs): - '''Forward apply the migration only if user explictly accepts the migration.''' - print('\n\nDue to earlier migration issues, this migration will remove the Remark foreignkey' - ' data to `Feedback`, `Motion` and `Nomination`. Please make a backup to' - ' be able to *manually* fix the relations afterwards.') - go_ahead = input(' Do you want to continue? [y/N] ') - if go_ahead == 'y': - return super().apply(*args, **kwargs) - else: - raise InvalidMigrationPlan diff --git a/scipost/migrations/0052_auto_20170504_1404.py b/scipost/migrations/0052_auto_20170504_1404.py deleted file mode 100644 index 26c68461e6c393076e79a580f481ec0d7395c420..0000000000000000000000000000000000000000 --- a/scipost/migrations/0052_auto_20170504_1404.py +++ /dev/null @@ -1,96 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-05-04 12:04 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0051_auto_20170504_1359'), - ] - - database_operations = [ - migrations.AlterModelTable('Motion', 'virtualmeetings_motion'), - migrations.AlterModelTable('Feedback', 'virtualmeetings_feedback'), - migrations.AlterModelTable('Nomination', 'virtualmeetings_nomination'), - migrations.AlterModelTable('VGM', 'virtualmeetings_vgm'), - migrations.AlterField( - model_name='motion', - name='VGM', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='virtualmeetings.VGM'), - ), - migrations.AlterField( - model_name='feedback', - name='VGM', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='virtualmeetings.VGM'), - ), - migrations.AlterField( - model_name='nomination', - name='VGM', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='virtualmeetings.VGM'), - ), - ] - - state_operations = [ - migrations.RemoveField( - model_name='feedback', - name='VGM', - ), - migrations.RemoveField( - model_name='feedback', - name='by', - ), - migrations.RemoveField( - model_name='motion', - name='VGM', - ), - migrations.RemoveField( - model_name='motion', - name='in_agreement', - ), - migrations.RemoveField( - model_name='motion', - name='in_disagreement', - ), - migrations.RemoveField( - model_name='motion', - name='in_notsure', - ), - migrations.RemoveField( - model_name='motion', - name='put_forward_by', - ), - migrations.RemoveField( - model_name='nomination', - name='VGM', - ), - migrations.RemoveField( - model_name='nomination', - name='by', - ), - migrations.RemoveField( - model_name='nomination', - name='in_agreement', - ), - migrations.RemoveField( - model_name='nomination', - name='in_disagreement', - ), - migrations.RemoveField( - model_name='nomination', - name='in_notsure', - ), - migrations.DeleteModel('Motion'), - migrations.DeleteModel('Feedback'), - migrations.DeleteModel('Nomination'), - migrations.DeleteModel('VGM') - ] - - operations = [ - migrations.SeparateDatabaseAndState( - database_operations=database_operations, - state_operations=state_operations) - ] diff --git a/scipost/migrations/0053_auto_20170504_1538.py b/scipost/migrations/0053_auto_20170504_1538.py deleted file mode 100644 index 91b9c57bbbc911cce5f2bb81ec9e8b7710e2cda9..0000000000000000000000000000000000000000 --- a/scipost/migrations/0053_auto_20170504_1538.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-05-04 13:38 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('virtualmeetings', '0001_initial'), - ('scipost', '0052_auto_20170504_1404'), - ] - - operations = [ - migrations.AddField( - model_name='remark', - name='feedback', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='virtualmeetings.Feedback'), - ), - migrations.AddField( - model_name='remark', - name='motion', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='virtualmeetings.Motion'), - ), - migrations.AddField( - model_name='remark', - name='nomination', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='virtualmeetings.Nomination'), - ), - ] diff --git a/scipost/migrations/0054_delete_newsitem.py b/scipost/migrations/0054_delete_newsitem.py deleted file mode 100644 index 83bd9bc583e54abc883795124ef5c8bb129a0a01..0000000000000000000000000000000000000000 --- a/scipost/migrations/0054_delete_newsitem.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-05-04 19:04 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0053_auto_20170504_1538'), - ] - - state_operations = [ - migrations.DeleteModel( - name='NewsItem', - ), - ] - - operations = [ - migrations.SeparateDatabaseAndState( - state_operations=state_operations) - ] diff --git a/scipost/migrations/0055_auto_20170519_0937.py b/scipost/migrations/0055_auto_20170519_0937.py deleted file mode 100644 index a3818779c198cd915fc642c64d90918024b12a9a..0000000000000000000000000000000000000000 --- a/scipost/migrations/0055_auto_20170519_0937.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-05-19 07:37 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0054_delete_newsitem'), - ] - - operations = [ - migrations.RemoveField( - model_name='spbmembershipagreement', - name='partner', - ), - migrations.RemoveField( - model_name='supportingpartner', - name='contact_person', - ), - migrations.DeleteModel( - name='SPBMembershipAgreement', - ), - migrations.DeleteModel( - name='SupportingPartner', - ), - ] diff --git a/scipost/migrations/0056_auto_20170618_2024.py b/scipost/migrations/0056_auto_20170618_2024.py deleted file mode 100644 index 42133a4d72948a7e09cf84cbf61ca52146e929a2..0000000000000000000000000000000000000000 --- a/scipost/migrations/0056_auto_20170618_2024.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-18 18:24 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0055_auto_20170519_0937'), - ] - - operations = [ - migrations.AlterModelOptions( - name='registrationinvitation', - options={'ordering': ['last_name']}, - ), - migrations.AlterField( - model_name='remark', - name='date', - field=models.DateTimeField(auto_now_add=True), - ), - ] diff --git a/scipost/migrations/0056_auto_20170619_2049.py b/scipost/migrations/0056_auto_20170619_2049.py deleted file mode 100644 index fff00ef763559a8050171f9ee584cd5d851d1ed7..0000000000000000000000000000000000000000 --- a/scipost/migrations/0056_auto_20170619_2049.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-19 18:49 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0055_auto_20170519_0937'), - ] - - operations = [ - migrations.AlterField( - model_name='draftinvitation', - name='date_drafted', - field=models.DateTimeField(auto_now_add=True), - ), - migrations.AlterField( - model_name='draftinvitation', - name='first_name', - field=models.CharField(max_length=30), - ), - migrations.AlterField( - model_name='draftinvitation', - name='last_name', - field=models.CharField(max_length=30), - ), - ] diff --git a/scipost/migrations/0056_auto_20170623_0806.py b/scipost/migrations/0056_auto_20170623_0806.py deleted file mode 100644 index ec3170909dac35018b943ce12cfb9de6d1da7301..0000000000000000000000000000000000000000 --- a/scipost/migrations/0056_auto_20170623_0806.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-23 06:06 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0055_auto_20170519_0937'), - ] - - operations = [ - migrations.AlterField( - model_name='contributor', - name='title', - field=models.CharField(choices=[('PR', 'Prof.'), ('DR', 'Dr'), ('MR', 'Mr'), ('MRS', 'Mrs'), ('MS', 'Ms')], max_length=4), - ), - migrations.AlterField( - model_name='draftinvitation', - name='title', - field=models.CharField(choices=[('PR', 'Prof.'), ('DR', 'Dr'), ('MR', 'Mr'), ('MRS', 'Mrs'), ('MS', 'Ms')], max_length=4), - ), - migrations.AlterField( - model_name='registrationinvitation', - name='title', - field=models.CharField(choices=[('PR', 'Prof.'), ('DR', 'Dr'), ('MR', 'Mr'), ('MRS', 'Mrs'), ('MS', 'Ms')], max_length=4), - ), - ] diff --git a/scipost/migrations/0057_merge_20170624_1943.py b/scipost/migrations/0057_merge_20170624_1943.py deleted file mode 100644 index bb2fb8d667353d8c91605f69c4d072e5cbd8060a..0000000000000000000000000000000000000000 --- a/scipost/migrations/0057_merge_20170624_1943.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-24 17:43 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0056_auto_20170623_0806'), - ('scipost', '0056_auto_20170619_2049'), - ] - - operations = [ - ] diff --git a/scipost/migrations/0058_auto_20170624_2003.py b/scipost/migrations/0058_auto_20170624_2003.py deleted file mode 100644 index cbd739d2d53765a419f67473fe8c9da61b4e00d5..0000000000000000000000000000000000000000 --- a/scipost/migrations/0058_auto_20170624_2003.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-24 18:03 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0057_merge_20170624_1943'), - ] - - operations = [ - migrations.AlterField( - model_name='contributor', - name='user', - field=models.OneToOneField(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL), - ), - ] diff --git a/scipost/migrations/0059_auto_20170701_1356.py b/scipost/migrations/0059_auto_20170701_1356.py deleted file mode 100644 index de6151cfd5103244b72b6b101fca52cfa1077d4d..0000000000000000000000000000000000000000 --- a/scipost/migrations/0059_auto_20170701_1356.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-01 11:56 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0058_auto_20170624_2003'), - ] - - operations = [ - migrations.AlterModelOptions( - name='unavailabilityperiod', - options={'ordering': ['-start']}, - ), - ] diff --git a/scipost/migrations/0060_auto_20170726_1612.py b/scipost/migrations/0060_auto_20170726_1612.py deleted file mode 100644 index 5faee7244032b1e0960daea7615c4adc1512b9d0..0000000000000000000000000000000000000000 --- a/scipost/migrations/0060_auto_20170726_1612.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-26 14:12 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0059_auto_20170701_1356'), - ] - - operations = [ - migrations.AlterField( - model_name='contributor', - name='address', - field=models.CharField(blank=True, max_length=1000, verbose_name='address'), - ), - ] diff --git a/scipost/migrations/0060_merge_20170708_0941.py b/scipost/migrations/0060_merge_20170708_0941.py deleted file mode 100644 index 3e51492281a5f3fe94df787ff4683e20d66e3f9a..0000000000000000000000000000000000000000 --- a/scipost/migrations/0060_merge_20170708_0941.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-08 07:41 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0056_auto_20170618_2024'), - ('scipost', '0059_auto_20170701_1356'), - ] - - operations = [ - ] diff --git a/scipost/migrations/0061_merge_20170730_0935.py b/scipost/migrations/0061_merge_20170730_0935.py deleted file mode 100644 index 2869252d98ca3ac9991106222b74948825845473..0000000000000000000000000000000000000000 --- a/scipost/migrations/0061_merge_20170730_0935.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-30 07:35 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0060_auto_20170726_1612'), - ('scipost', '0060_merge_20170708_0941'), - ] - - operations = [ - ] diff --git a/scipost/migrations/0062_auto_20170815_0857.py b/scipost/migrations/0062_auto_20170815_0857.py deleted file mode 100644 index 717bf96e25ef0fb65abc68ba6fe555cee31e2db3..0000000000000000000000000000000000000000 --- a/scipost/migrations/0062_auto_20170815_0857.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-08-15 06:57 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0061_merge_20170730_0935'), - ] - - operations = [ - migrations.RenameField( - model_name='contributor', - old_name='activation_key', - new_name='_activation_key', - ), - ] diff --git a/scipost/migrations/0063_auto_20170829_0727.py b/scipost/migrations/0063_auto_20170829_0727.py deleted file mode 100644 index aef6bd439b40ca1780a1c1944cd01bd26c5b43ea..0000000000000000000000000000000000000000 --- a/scipost/migrations/0063_auto_20170829_0727.py +++ /dev/null @@ -1,56 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-08-29 05:27 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0062_auto_20170815_0857'), - ] - - operations = [ - migrations.RenameField( - model_name='contributor', - old_name='_activation_key', - new_name='activation_key', - ), - migrations.AlterField( - model_name='remark', - name='contributor', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='remarks', to='scipost.Contributor'), - ), - migrations.AlterField( - model_name='remark', - name='feedback', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='remarks', to='virtualmeetings.Feedback'), - ), - migrations.AlterField( - model_name='remark', - name='motion', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='remarks', to='virtualmeetings.Motion'), - ), - migrations.AlterField( - model_name='remark', - name='nomination', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='remarks', to='virtualmeetings.Nomination'), - ), - migrations.AlterField( - model_name='remark', - name='recommendation', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='remarks', to='submissions.EICRecommendation'), - ), - migrations.AlterField( - model_name='remark', - name='submission', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='remarks', to='submissions.Submission'), - ), - migrations.AlterField( - model_name='unavailabilityperiod', - name='contributor', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='unavailability_periods', to='scipost.Contributor'), - ), - ] diff --git a/scipost/migrations/0064_auto_20170909_1649.py b/scipost/migrations/0064_auto_20170909_1649.py deleted file mode 100644 index 85e010563fd0504477e00784cbb8fab083a757fc..0000000000000000000000000000000000000000 --- a/scipost/migrations/0064_auto_20170909_1649.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-09 14:49 -from __future__ import unicode_literals - -from django.db import migrations, models -import scipost.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0063_auto_20170829_0727'), - ] - - operations = [ - migrations.AlterField( - model_name='contributor', - name='expertises', - field=scipost.fields.ChoiceArrayField(base_field=models.CharField(choices=[('Physics', (('Phys:AE', 'Atomic, Molecular and Optical Physics - Experiment'), ('Phys:AT', 'Atomic, Molecular and Optical Physics - Theory'), ('Phys:BI', 'Biophysics'), ('Phys:CE', 'Condensed Matter Physics - Experiment'), ('Phys:CT', 'Condensed Matter Physics - Theory'), ('Phys:FD', 'Fluid Dynamics'), ('Phys:GR', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:HE', 'High-Energy Physics - Experiment'), ('Phys:HT', 'High-Energy Physics - Theory'), ('Phys:HP', 'High-Energy Physics - Phenomenology'), ('Phys:MP', 'Mathematical Physics'), ('Phys:NE', 'Nuclear Physics - Experiment'), ('Phys:NT', 'Nuclear Physics - Theory'), ('Phys:QP', 'Quantum Physics'), ('Phys:SM', 'Statistical and Soft Matter Physics'))), ('Astrophysics', (('Astro:GA', 'Astrophysics of Galaxies'), ('Astro:CO', 'Cosmology and Nongalactic Astrophysics'), ('Astro:EP', 'Earth and Planetary Astrophysics'), ('Astro:HE', 'High Energy Astrophysical Phenomena'), ('Astro:IM', 'Instrumentation and Methods for Astrophysics'), ('Astro:SR', 'Solar and Stellar Astrophysics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:AP', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:CA', 'Classical Analysis and ODEs'), ('Math:CO', 'Combinatorics'), ('Math:AC', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GN', 'General Topology'), ('Math:GT', 'Geometric Topology'), ('Math:GR', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:LO', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:PR', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SP', 'Spectral Theory'), ('Math:ST', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], max_length=10), blank=True, null=True, size=None), - ), - ] diff --git a/scipost/migrations/0065_authorshipclaim_publication.py b/scipost/migrations/0065_authorshipclaim_publication.py deleted file mode 100644 index 086e6116addd08a9916f7e3dda269cd5866808c0..0000000000000000000000000000000000000000 --- a/scipost/migrations/0065_authorshipclaim_publication.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-10 13:46 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('journals', '0044_publication_doideposit_needs_updating'), - ('scipost', '0064_auto_20170909_1649'), - ] - - operations = [ - migrations.AddField( - model_name='authorshipclaim', - name='publication', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='journals.Publication'), - ), - ] diff --git a/scipost/migrations/0066_contributor__affiliation.py b/scipost/migrations/0066_contributor__affiliation.py deleted file mode 100644 index 734116ef9df0681a2e0c9a5cb52b7ae5aa8006d6..0000000000000000000000000000000000000000 --- a/scipost/migrations/0066_contributor__affiliation.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-01 19:28 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('affiliations', '0002_affiliation_acronym'), - ('scipost', '0065_authorshipclaim_publication'), - ] - - operations = [ - migrations.AddField( - model_name='contributor', - name='_affiliation', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='affiliations.Institution'), - ), - ] diff --git a/scipost/migrations/0067_auto_20171101_2132.py b/scipost/migrations/0067_auto_20171101_2132.py deleted file mode 100644 index 0df9c7605398e0c39d2bf9c08750cd3c7c13f0a7..0000000000000000000000000000000000000000 --- a/scipost/migrations/0067_auto_20171101_2132.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-01 20:32 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0066_contributor__affiliation'), - ('affiliations', '0003_auto_20171101_2022'), - ] - - operations = [ - migrations.RenameField( - model_name='contributor', - old_name='affiliation', - new_name='old_affiliation', - ), - migrations.RenameField( - model_name='contributor', - old_name='country_of_employment', - new_name='old_country_of_employment', - ), - migrations.AlterField( - model_name='contributor', - name='_affiliation', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='contributors', to='affiliations.Institution'), - ), - ] diff --git a/scipost/migrations/0068_auto_20171101_2132.py b/scipost/migrations/0068_auto_20171101_2132.py deleted file mode 100644 index f59223bee41208b98d73e363ccea8ab890db2be7..0000000000000000000000000000000000000000 --- a/scipost/migrations/0068_auto_20171101_2132.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-01 20:32 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0067_auto_20171101_2132'), - ] - - operations = [ - migrations.RenameField( - model_name='contributor', - old_name='_affiliation', - new_name='affiliation', - ), - ] diff --git a/scipost/migrations/0069_auto_20171102_0840.py b/scipost/migrations/0069_auto_20171102_0840.py deleted file mode 100644 index 1de2b91a9358bde40dc595dd50e8484e6f89841c..0000000000000000000000000000000000000000 --- a/scipost/migrations/0069_auto_20171102_0840.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-02 07:40 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0068_auto_20171101_2132'), - ] - - operations = [ - migrations.RenameField( - model_name='contributor', - old_name='affiliation', - new_name='old_affiliation_fk', - ), - ] diff --git a/scipost/migrations/0070_remove_contributor_old_affiliation_fk.py b/scipost/migrations/0070_remove_contributor_old_affiliation_fk.py deleted file mode 100644 index 01a7bf2698a49cb00331d27fb633a29c7301fcdb..0000000000000000000000000000000000000000 --- a/scipost/migrations/0070_remove_contributor_old_affiliation_fk.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-02 07:55 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('affiliations', '0006_auto_20171102_0843'), - ('scipost', '0069_auto_20171102_0840'), - ] - - operations = [ - migrations.RemoveField( - model_name='contributor', - name='old_affiliation_fk', - ), - ] diff --git a/scipost/migrations/0071_auto_20171102_0858.py b/scipost/migrations/0071_auto_20171102_0858.py deleted file mode 100644 index 2719f788adab65209a7313825393ea9c855d160d..0000000000000000000000000000000000000000 --- a/scipost/migrations/0071_auto_20171102_0858.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-02 07:58 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0070_remove_contributor_old_affiliation_fk'), - ] - - operations = [ - migrations.RemoveField( - model_name='contributor', - name='old_affiliation', - ), - migrations.RemoveField( - model_name='contributor', - name='old_country_of_employment', - ), - ] diff --git a/scipost/migrations/0072_delete_affiliationobject.py b/scipost/migrations/0072_delete_affiliationobject.py deleted file mode 100644 index 3f82fd9db28aa1045add819d8df6332c999b344c..0000000000000000000000000000000000000000 --- a/scipost/migrations/0072_delete_affiliationobject.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-02 11:56 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0071_auto_20171102_0858'), - ] - - operations = [ - migrations.DeleteModel( - name='AffiliationObject', - ), - ] diff --git a/submissions/migrations/0001_initial.py b/submissions/migrations/0001_initial.py index db3db6ce8a62336bbe59d5a566865ccb193c766f..acf0509a72add08b1519f843ebb0b865eb906f85 100644 --- a/submissions/migrations/0001_initial.py +++ b/submissions/migrations/0001_initial.py @@ -1,10 +1,15 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-03-29 20:25 +# Generated by Django 1.11.4 on 2017-12-29 13:35 from __future__ import unicode_literals +import datetime +import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion import django.utils.timezone +import scipost.db.fields +import scipost.fields +import submissions.behaviors class Migration(migrations.Migration): @@ -12,62 +17,242 @@ class Migration(migrations.Migration): initial = True dependencies = [ + ('proceedings', '0001_initial'), + ('colleges', '0001_initial'), ('scipost', '0001_initial'), ] operations = [ + migrations.CreateModel( + name='EditorialAssignment', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('accepted', models.NullBooleanField(choices=[(None, 'Response pending'), (True, 'Accept'), (False, 'Decline')], default=None)), + ('deprecated', models.BooleanField(default=False)), + ('completed', models.BooleanField(default=False)), + ('refusal_reason', models.CharField(blank=True, choices=[('BUS', 'Too busy'), ('VAC', 'Away on vacation'), ('COI', 'Conflict of interest: coauthor in last 5 years'), ('CCC', 'Conflict of interest: close colleague'), ('NIR', 'Cannot give an impartial assessment'), ('OFE', 'Outside of my field of expertise'), ('NIE', 'Not interested enough'), ('DNP', 'SciPost should not even consider this paper')], max_length=3, null=True)), + ('date_created', models.DateTimeField(default=django.utils.timezone.now)), + ('date_answered', models.DateTimeField(blank=True, null=True)), + ], + options={ + 'default_related_name': 'editorial_assignments', + 'ordering': ['-date_created'], + }, + bases=(submissions.behaviors.SubmissionRelatedObjectMixin, models.Model), + ), + migrations.CreateModel( + name='EditorialCommunication', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('comtype', models.CharField(choices=[('EtoA', 'Editor-in-charge to Author'), ('EtoR', 'Editor-in-charge to Referee'), ('EtoS', 'Editor-in-charge to SciPost Editorial Administration'), ('AtoE', 'Author to Editor-in-charge'), ('RtoE', 'Referee to Editor-in-Charge'), ('StoE', 'SciPost Editorial Administration to Editor-in-charge')], max_length=4)), + ('timestamp', models.DateTimeField(default=django.utils.timezone.now)), + ('text', models.TextField()), + ('referee', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='referee_in_correspondence', to='scipost.Contributor')), + ], + options={ + 'ordering': ['timestamp'], + }, + bases=(submissions.behaviors.SubmissionRelatedObjectMixin, models.Model), + ), + migrations.CreateModel( + name='EICRecommendation', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('date_submitted', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date submitted')), + ('remarks_for_authors', models.TextField(blank=True, null=True)), + ('requested_changes', models.TextField(blank=True, null=True, verbose_name='requested changes')), + ('remarks_for_editorial_college', models.TextField(blank=True, verbose_name='optional remarks for the Editorial College')), + ('recommendation', models.SmallIntegerField(choices=[(None, '-'), (1, 'Publish as Tier I (top 10% of papers in this journal, qualifies as Select) NOTE: SELECT NOT YET OPEN, STARTS EARLY 2017'), (2, 'Publish as Tier II (top 50% of papers in this journal)'), (3, 'Publish as Tier III (meets the criteria of this journal)'), (-1, 'Ask for minor revision'), (-2, 'Ask for major revision'), (-3, 'Reject')])), + ('voting_deadline', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date submitted')), + ('eligible_to_vote', models.ManyToManyField(blank=True, related_name='eligible_to_vote', to='scipost.Contributor')), + ], + bases=(submissions.behaviors.SubmissionRelatedObjectMixin, models.Model), + ), + migrations.CreateModel( + name='iThenticateReport', + fields=[ + ('created', models.DateTimeField(default=django.utils.timezone.now)), + ('latest_activity', scipost.db.fields.AutoDateTimeField(blank=True, default=django.utils.timezone.now, editable=False)), + ('uploaded_time', models.DateTimeField(blank=True, null=True)), + ('processed_time', models.DateTimeField(blank=True, null=True)), + ('doc_id', models.IntegerField(primary_key=True, serialize=False)), + ('part_id', models.IntegerField(blank=True, null=True)), + ('percent_match', models.IntegerField(blank=True, null=True)), + ], + options={ + 'verbose_name': 'iThenticate Report', + 'verbose_name_plural': 'iThenticate Reports', + }, + ), + migrations.CreateModel( + name='RefereeInvitation', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('title', models.CharField(choices=[('PR', 'Prof.'), ('DR', 'Dr'), ('MR', 'Mr'), ('MRS', 'Mrs'), ('MS', 'Ms')], max_length=4)), + ('first_name', models.CharField(default='', max_length=30)), + ('last_name', models.CharField(default='', max_length=30)), + ('email_address', models.EmailField(max_length=254)), + ('invitation_key', models.CharField(default='', max_length=40)), + ('date_invited', models.DateTimeField(default=django.utils.timezone.now)), + ('nr_reminders', models.PositiveSmallIntegerField(default=0)), + ('date_last_reminded', models.DateTimeField(blank=True, null=True)), + ('accepted', models.NullBooleanField(choices=[(None, 'Response pending'), (True, 'Accept'), (False, 'Decline')], default=None)), + ('date_responded', models.DateTimeField(blank=True, null=True)), + ('refusal_reason', models.CharField(blank=True, choices=[('BUS', 'Too busy'), ('VAC', 'Away on vacation'), ('COI', 'Conflict of interest: coauthor in last 5 years'), ('CCC', 'Conflict of interest: close colleague'), ('NIR', 'Cannot give an impartial assessment'), ('OFE', 'Outside of my field of expertise'), ('NIE', 'Not interested enough'), ('DNP', 'SciPost should not even consider this paper')], max_length=3, null=True)), + ('fulfilled', models.BooleanField(default=False)), + ('cancelled', models.BooleanField(default=False)), + ('invited_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='referee_invited_by', to='scipost.Contributor')), + ('referee', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='referee_invitations', to='scipost.Contributor')), + ], + bases=(submissions.behaviors.SubmissionRelatedObjectMixin, models.Model), + ), migrations.CreateModel( name='Report', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('status', models.SmallIntegerField(default=0)), - ('date_invited', models.DateTimeField(blank=True, null=True, verbose_name='date invited')), + ('status', models.CharField(choices=[('draft', 'Draft'), ('vetted', 'Vetted'), ('unvetted', 'Unvetted'), ('incorrect', 'Rejected (incorrect)'), ('unclear', 'Rejected (unclear)'), ('notuseful', 'Rejected (not useful)'), ('notacademic', 'Rejected (not academic in style)')], default='unvetted', max_length=16)), + ('report_nr', models.PositiveSmallIntegerField(default=0, help_text='This number is a unique number refeering to the Report nr. of the Submission')), + ('invited', models.BooleanField(default=False)), + ('flagged', models.BooleanField(default=False)), ('date_submitted', models.DateTimeField(verbose_name='date submitted')), - ('qualification', models.PositiveSmallIntegerField(choices=[(4, 'expert in this subject'), (3, 'very knowledgeable in this subject'), (2, 'knowledgeable in this subject'), (1, 'generally qualified'), (0, 'not qualified')], verbose_name='Qualification to referee this: I am ')), - ('strengths', models.TextField()), - ('weaknesses', models.TextField()), + ('qualification', models.PositiveSmallIntegerField(choices=[(None, '-'), (4, 'expert in this subject'), (3, 'very knowledgeable in this subject'), (2, 'knowledgeable in this subject'), (1, 'generally qualified'), (0, 'not qualified')], verbose_name='Qualification to referee this: I am')), + ('strengths', models.TextField(blank=True)), + ('weaknesses', models.TextField(blank=True)), ('report', models.TextField()), - ('requested_changes', models.TextField(verbose_name='requested changes')), - ('validity', models.PositiveSmallIntegerField(choices=[(101, '-'), (100, 'top'), (80, 'high'), (60, 'good'), (40, 'ok'), (20, 'low'), (0, 'poor')], default=101)), - ('significance', models.PositiveSmallIntegerField(choices=[(101, '-'), (100, 'top'), (80, 'high'), (60, 'good'), (40, 'ok'), (20, 'low'), (0, 'poor')], default=101)), - ('originality', models.PositiveSmallIntegerField(choices=[(101, '-'), (100, 'top'), (80, 'high'), (60, 'good'), (40, 'ok'), (20, 'low'), (0, 'poor')], default=101)), - ('clarity', models.PositiveSmallIntegerField(choices=[(101, '-'), (100, 'top'), (80, 'high'), (60, 'good'), (40, 'ok'), (20, 'low'), (0, 'poor')], default=101)), - ('formatting', models.SmallIntegerField(blank=True, choices=[(6, 'perfect'), (5, 'excellent'), (4, 'good'), (3, 'reasonable'), (2, 'acceptable'), (1, 'below threshold'), (0, 'mediocre')], verbose_name='Quality of paper formatting')), - ('grammar', models.SmallIntegerField(blank=True, choices=[(6, 'perfect'), (5, 'excellent'), (4, 'good'), (3, 'reasonable'), (2, 'acceptable'), (1, 'below threshold'), (0, 'mediocre')], verbose_name='Quality of English grammar')), - ('recommendation', models.SmallIntegerField(choices=[(1, 'Publish as Tier I (top 10% of papers in this journal)'), (2, 'Publish as Tier II (top 50% of papers in this journal)'), (3, 'Publish as Tier III (meets the criteria of this journal)'), (-1, 'Ask for minor revision'), (-2, 'Ask for major revision'), (-3, 'Reject')])), + ('requested_changes', models.TextField(blank=True, verbose_name='requested changes')), + ('validity', models.PositiveSmallIntegerField(blank=True, choices=[(None, '-'), (100, 'top'), (80, 'high'), (60, 'good'), (40, 'ok'), (20, 'low'), (0, 'poor')], null=True)), + ('significance', models.PositiveSmallIntegerField(blank=True, choices=[(None, '-'), (100, 'top'), (80, 'high'), (60, 'good'), (40, 'ok'), (20, 'low'), (0, 'poor')], null=True)), + ('originality', models.PositiveSmallIntegerField(blank=True, choices=[(None, '-'), (100, 'top'), (80, 'high'), (60, 'good'), (40, 'ok'), (20, 'low'), (0, 'poor')], null=True)), + ('clarity', models.PositiveSmallIntegerField(blank=True, choices=[(None, '-'), (100, 'top'), (80, 'high'), (60, 'good'), (40, 'ok'), (20, 'low'), (0, 'poor')], null=True)), + ('formatting', models.SmallIntegerField(blank=True, choices=[(None, '-'), (6, 'perfect'), (5, 'excellent'), (4, 'good'), (3, 'reasonable'), (2, 'acceptable'), (1, 'below threshold'), (0, 'mediocre')], null=True, verbose_name='Quality of paper formatting')), + ('grammar', models.SmallIntegerField(blank=True, choices=[(None, '-'), (6, 'perfect'), (5, 'excellent'), (4, 'good'), (3, 'reasonable'), (2, 'acceptable'), (1, 'below threshold'), (0, 'mediocre')], null=True, verbose_name='Quality of English grammar')), + ('recommendation', models.SmallIntegerField(choices=[(None, '-'), (1, 'Publish as Tier I (top 10% of papers in this journal, qualifies as Select) NOTE: SELECT NOT YET OPEN, STARTS EARLY 2017'), (2, 'Publish as Tier II (top 50% of papers in this journal)'), (3, 'Publish as Tier III (meets the criteria of this journal)'), (-1, 'Ask for minor revision'), (-2, 'Ask for major revision'), (-3, 'Reject')])), + ('remarks_for_editors', models.TextField(blank=True, verbose_name='optional remarks for the Editors only')), + ('needs_doi', models.NullBooleanField(default=None)), + ('doideposit_needs_updating', models.BooleanField(default=False)), + ('doi_label', models.CharField(blank=True, max_length=200)), ('anonymous', models.BooleanField(default=True, verbose_name='Publish anonymously')), - ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor')), - ('invited_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='invited_by', to='scipost.Contributor')), + ('pdf_report', models.FileField(blank=True, max_length=200, upload_to='UPLOADS/REPORTS/%Y/%m/')), + ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reports', to='scipost.Contributor')), ], + options={ + 'default_related_name': 'reports', + 'ordering': ['-date_submitted'], + }, + bases=(submissions.behaviors.SubmissionRelatedObjectMixin, models.Model), ), migrations.CreateModel( name='Submission', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('vetted', models.BooleanField(default=False)), - ('submitted_to_journal', models.CharField(choices=[('SciPost Physics', 'SciPost Physics'), ('SciPost Physics Lecture Notes', 'SciPost Physics Lecture Notes')], max_length=30, verbose_name='Journal to be submitted to')), - ('discipline', models.CharField(choices=[('physics', 'Physics')], default='physics', max_length=20)), + ('author_comments', models.TextField(blank=True)), + ('author_list', models.CharField(max_length=1000, verbose_name='author list')), + ('discipline', models.CharField(choices=[('physics', 'Physics'), ('astrophysics', 'Astrophysics'), ('mathematics', 'Mathematics'), ('computerscience', 'Computer Science')], default='physics', max_length=20)), ('domain', models.CharField(choices=[('E', 'Experimental'), ('T', 'Theoretical'), ('C', 'Computational'), ('ET', 'Exp. & Theor.'), ('EC', 'Exp. & Comp.'), ('TC', 'Theor. & Comp.'), ('ETC', 'Exp., Theor. & Comp.')], max_length=3)), - ('specialization', models.CharField(choices=[('A', 'Atomic, Molecular and Optical Physics'), ('B', 'Biophysics'), ('C', 'Condensed Matter Physics'), ('F', 'Fluid Dynamics'), ('G', 'Gravitation, Cosmology and Astroparticle Physics'), ('H', 'High-Energy Physics'), ('M', 'Mathematical Physics'), ('N', 'Nuclear Physics'), ('Q', 'Quantum Statistical Mechanics'), ('S', 'Statistical and Soft Matter Physics')], max_length=1)), - ('status', models.CharField(choices=[('unassigned', 'unassigned'), ('forwarded', 'forwarded to a specialty editor'), ('SEICassigned', 'specialty editor-in-charge assigned'), ('under_review', 'under review'), ('review_completed', 'review period closed, editorial recommendation pending'), ('SEIC_has_recommended', 'specialty editor-in-charge has provided recommendation'), ('decided', 'journal editor-in-chief has fixed decision')], max_length=30)), - ('open_for_reporting', models.BooleanField(default=True)), - ('open_for_commenting', models.BooleanField(default=True)), + ('is_current', models.BooleanField(default=True)), + ('is_resubmission', models.BooleanField(default=False)), + ('list_of_changes', models.TextField(blank=True)), + ('open_for_commenting', models.BooleanField(default=False)), + ('open_for_reporting', models.BooleanField(default=False)), + ('referees_flagged', models.TextField(blank=True)), + ('referees_suggested', models.TextField(blank=True)), + ('remarks_for_editors', models.TextField(blank=True)), + ('reporting_deadline', models.DateTimeField(default=django.utils.timezone.now)), + ('secondary_areas', scipost.fields.ChoiceArrayField(base_field=models.CharField(choices=[('Physics', (('Phys:AE', 'Atomic, Molecular and Optical Physics - Experiment'), ('Phys:AT', 'Atomic, Molecular and Optical Physics - Theory'), ('Phys:BI', 'Biophysics'), ('Phys:CE', 'Condensed Matter Physics - Experiment'), ('Phys:CT', 'Condensed Matter Physics - Theory'), ('Phys:FD', 'Fluid Dynamics'), ('Phys:GR', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:HE', 'High-Energy Physics - Experiment'), ('Phys:HT', 'High-Energy Physics - Theory'), ('Phys:HP', 'High-Energy Physics - Phenomenology'), ('Phys:MP', 'Mathematical Physics'), ('Phys:NE', 'Nuclear Physics - Experiment'), ('Phys:NT', 'Nuclear Physics - Theory'), ('Phys:QP', 'Quantum Physics'), ('Phys:SM', 'Statistical and Soft Matter Physics'))), ('Astrophysics', (('Astro:GA', 'Astrophysics of Galaxies'), ('Astro:CO', 'Cosmology and Nongalactic Astrophysics'), ('Astro:EP', 'Earth and Planetary Astrophysics'), ('Astro:HE', 'High Energy Astrophysical Phenomena'), ('Astro:IM', 'Instrumentation and Methods for Astrophysics'), ('Astro:SR', 'Solar and Stellar Astrophysics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:AP', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:CA', 'Classical Analysis and ODEs'), ('Math:CO', 'Combinatorics'), ('Math:AC', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GN', 'General Topology'), ('Math:GT', 'Geometric Topology'), ('Math:GR', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:LO', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:PR', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SP', 'Spectral Theory'), ('Math:ST', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], max_length=10), blank=True, null=True, size=None)), + ('status', models.CharField(choices=[('unassigned', 'Unassigned, undergoing pre-screening'), ('resubmitted_incoming', 'Resubmission incoming'), ('assignment_failed', 'Failed to assign Editor-in-charge; manuscript rejected'), ('EICassigned', 'Editor-in-charge assigned, manuscript under review'), ('review_closed', 'Review period closed, editorial recommendation pending'), ('revision_requested', 'Editor-in-charge has requested revision'), ('resubmitted', 'Has been resubmitted'), ('resubmitted_and_rejected', 'Has been resubmitted and subsequently rejected'), ('resubmitted_and_rejected_visible', 'Has been resubmitted and subsequently rejected (still publicly visible)'), ('voting_in_preparation', 'Voting in preparation (eligible Fellows being selected)'), ('put_to_EC_voting', 'Undergoing voting at the Editorial College'), ('awaiting_ed_rec', 'Awaiting Editorial Recommendation'), ('EC_vote_completed', 'Editorial College voting rounded up'), ('accepted', 'Publication decision taken: accept'), ('rejected', 'Publication decision taken: reject'), ('rejected_visible', 'Publication decision taken: reject (still publicly visible)'), ('published', 'Published'), ('withdrawn', 'Withdrawn by the Authors')], default='unassigned', max_length=30)), + ('refereeing_cycle', models.CharField(choices=[('default', 'Default cycle'), ('short', 'Short cycle'), ('direct_rec', 'Direct editorial recommendation')], default='default', max_length=30)), + ('subject_area', models.CharField(choices=[('Physics', (('Phys:AE', 'Atomic, Molecular and Optical Physics - Experiment'), ('Phys:AT', 'Atomic, Molecular and Optical Physics - Theory'), ('Phys:BI', 'Biophysics'), ('Phys:CE', 'Condensed Matter Physics - Experiment'), ('Phys:CT', 'Condensed Matter Physics - Theory'), ('Phys:FD', 'Fluid Dynamics'), ('Phys:GR', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:HE', 'High-Energy Physics - Experiment'), ('Phys:HT', 'High-Energy Physics - Theory'), ('Phys:HP', 'High-Energy Physics - Phenomenology'), ('Phys:MP', 'Mathematical Physics'), ('Phys:NE', 'Nuclear Physics - Experiment'), ('Phys:NT', 'Nuclear Physics - Theory'), ('Phys:QP', 'Quantum Physics'), ('Phys:SM', 'Statistical and Soft Matter Physics'))), ('Astrophysics', (('Astro:GA', 'Astrophysics of Galaxies'), ('Astro:CO', 'Cosmology and Nongalactic Astrophysics'), ('Astro:EP', 'Earth and Planetary Astrophysics'), ('Astro:HE', 'High Energy Astrophysical Phenomena'), ('Astro:IM', 'Instrumentation and Methods for Astrophysics'), ('Astro:SR', 'Solar and Stellar Astrophysics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:AP', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:CA', 'Classical Analysis and ODEs'), ('Math:CO', 'Combinatorics'), ('Math:AC', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GN', 'General Topology'), ('Math:GT', 'Geometric Topology'), ('Math:GR', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:LO', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:PR', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SP', 'Spectral Theory'), ('Math:ST', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], default='Phys:QP', max_length=10, verbose_name='Primary subject area')), + ('submission_type', models.CharField(blank=True, choices=[('Letter', 'Letter (broad-interest breakthrough results)'), ('Article', 'Article (in-depth reports on specialized research)'), ('Review', 'Review (candid snapshot of current research in a given area)')], default=None, max_length=10, null=True)), + ('submitted_to_journal', models.CharField(choices=[('SciPostPhys', 'SciPost Physics'), ('SciPostPhysLectNotes', 'SciPost Physics Lecture Notes'), ('SciPostPhysProc', 'SciPost Physics Proceedings')], max_length=30, verbose_name='Journal to be submitted to')), ('title', models.CharField(max_length=300)), - ('author_list', models.CharField(max_length=1000, verbose_name='author list')), ('abstract', models.TextField()), + ('arxiv_identifier_w_vn_nr', models.CharField(default='0000.00000v0', max_length=15)), + ('arxiv_identifier_wo_vn_nr', models.CharField(default='0000.00000', max_length=10)), + ('arxiv_vn_nr', models.PositiveSmallIntegerField(default=1)), ('arxiv_link', models.URLField(verbose_name='arXiv link (including version nr)')), - ('submission_date', models.DateField(verbose_name='submission date')), - ('latest_activity', models.DateTimeField(default=django.utils.timezone.now)), - ('authors', models.ManyToManyField(blank=True, related_name='authors_sub', to='scipost.Contributor')), - ('authors_claims', models.ManyToManyField(blank=True, related_name='authors_sub_claims', to='scipost.Contributor')), - ('authors_false_claims', models.ManyToManyField(blank=True, related_name='authors_sub_false_claims', to='scipost.Contributor')), - ('editor_in_charge', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='editor_in_charge', to='scipost.Contributor')), - ('submitted_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor')), + ('pdf_refereeing_pack', models.FileField(blank=True, max_length=200, upload_to='UPLOADS/REFEREE/%Y/%m/')), + ('metadata', django.contrib.postgres.fields.jsonb.JSONField(blank=True, default={}, null=True)), + ('submission_date', models.DateField(default=datetime.date.today, verbose_name='submission date')), + ('acceptance_date', models.DateField(blank=True, null=True, verbose_name='acceptance date')), + ('latest_activity', models.DateTimeField(auto_now=True)), + ('authors', models.ManyToManyField(blank=True, related_name='submissions', to='scipost.Contributor')), + ('authors_claims', models.ManyToManyField(blank=True, related_name='claimed_submissions', to='scipost.Contributor')), + ('authors_false_claims', models.ManyToManyField(blank=True, related_name='false_claimed_submissions', to='scipost.Contributor')), + ('editor_in_charge', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='EIC', to='scipost.Contributor')), + ('fellows', models.ManyToManyField(blank=True, related_name='pool', to='colleges.Fellowship')), + ('plagiarism_report', models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='to_submission', to='submissions.iThenticateReport')), + ('proceedings', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='submissions', to='proceedings.Proceedings')), + ('submitted_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='submitted_submissions', to='scipost.Contributor')), + ('voting_fellows', models.ManyToManyField(blank=True, related_name='voting_pool', to='colleges.Fellowship')), ], ), + migrations.CreateModel( + name='SubmissionEvent', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(default=django.utils.timezone.now)), + ('latest_activity', scipost.db.fields.AutoDateTimeField(blank=True, default=django.utils.timezone.now, editable=False)), + ('event', models.CharField(choices=[('gen', 'General comment'), ('eic', 'Comment for Editor-in-charge'), ('auth', 'Comment for author')], default='gen', max_length=4)), + ('text', models.TextField()), + ('submission', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='events', to='submissions.Submission')), + ], + options={ + 'ordering': ['-created'], + }, + bases=(submissions.behaviors.SubmissionRelatedObjectMixin, models.Model), + ), + migrations.AddField( + model_name='report', + name='submission', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reports', to='submissions.Submission'), + ), migrations.AddField( model_name='report', + name='vetted_by', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='report_vetted_by', to='scipost.Contributor'), + ), + migrations.AddField( + model_name='refereeinvitation', name='submission', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='submissions.Submission'), + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='referee_invitations', to='submissions.Submission'), + ), + migrations.AddField( + model_name='eicrecommendation', + name='submission', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='eicrecommendations', to='submissions.Submission'), + ), + migrations.AddField( + model_name='eicrecommendation', + name='voted_abstain', + field=models.ManyToManyField(blank=True, related_name='voted_abstain', to='scipost.Contributor'), + ), + migrations.AddField( + model_name='eicrecommendation', + name='voted_against', + field=models.ManyToManyField(blank=True, related_name='voted_against', to='scipost.Contributor'), + ), + migrations.AddField( + model_name='eicrecommendation', + name='voted_for', + field=models.ManyToManyField(blank=True, related_name='voted_for', to='scipost.Contributor'), + ), + migrations.AddField( + model_name='editorialcommunication', + name='submission', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='editorial_communications', to='submissions.Submission'), + ), + migrations.AddField( + model_name='editorialassignment', + name='submission', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='editorial_assignments', to='submissions.Submission'), + ), + migrations.AddField( + model_name='editorialassignment', + name='to', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='editorial_assignments', to='scipost.Contributor'), + ), + migrations.AlterUniqueTogether( + name='report', + unique_together=set([('submission', 'report_nr')]), ), ] diff --git a/submissions/migrations/0002_auto_20160415_1952.py b/submissions/migrations/0002_auto_20160415_1952.py deleted file mode 100644 index 65a8fad83767044d83c40fc3bac28d0264793d47..0000000000000000000000000000000000000000 --- a/submissions/migrations/0002_auto_20160415_1952.py +++ /dev/null @@ -1,152 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-04-15 17:52 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import django.utils.timezone - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0004_auto_20160415_1952'), - ('submissions', '0001_initial'), - ] - - operations = [ - migrations.CreateModel( - name='EditorialAssignment', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('accepted', models.NullBooleanField(choices=[(None, 'Response pending'), (True, 'Accept'), (False, 'Decline')], default=None)), - ('completed', models.BooleanField(default=False)), - ('refusal_reason', models.CharField(blank=True, choices=[('BUS', 'Too busy'), ('COI', 'Conflict of interest: coauthor in last 5 years'), ('CCC', 'Conflict of interest: close colleague'), ('NIR', 'Cannot give an impartial assessment'), ('NIE', 'Not interested enough'), ('DNP', 'SciPost should not even consider this paper')], max_length=3, null=True)), - ('date_created', models.DateTimeField(default=django.utils.timezone.now)), - ('date_answered', models.DateTimeField(blank=True, null=True)), - ], - ), - migrations.CreateModel( - name='EditorialCommunication', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('type', models.CharField(choices=[('EtoA', 'Editor-in-charge to Author'), ('AtoE', 'Author to Editor-in-charge'), ('EtoR', 'Editor-in-charge to Referee'), ('RtoE', 'Referee to Editor-in-Charge'), ('EtoS', 'Editor-in-charge to SciPost Editorial Administration'), ('StoE', 'SciPost Editorial Administration to Editor-in-charge')], max_length=4)), - ('timestamp', models.DateTimeField(default=django.utils.timezone.now)), - ('text', models.TextField()), - ('referee', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='referee_in_correspondence', to='scipost.Contributor')), - ], - ), - migrations.CreateModel( - name='EICRecommendation', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('date_submitted', models.DateTimeField(verbose_name='date submitted')), - ('remarks_for_authors', models.TextField(blank=True, null=True)), - ('requested_changes', models.TextField(blank=True, null=True, verbose_name='requested changes')), - ('remarks_for_editorial_college', models.TextField(blank=True, default='', null=True, verbose_name='optional remarks for the Editorial College')), - ('recommendation', models.SmallIntegerField(choices=[(1, 'Publish as Tier I (top 10% of papers in this journal)'), (2, 'Publish as Tier II (top 50% of papers in this journal)'), (3, 'Publish as Tier III (meets the criteria of this journal)'), (-1, 'Ask for minor revision'), (-2, 'Ask for major revision'), (-3, 'Reject')])), - ('voting_deadline', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date submitted')), - ], - ), - migrations.CreateModel( - name='RefereeInvitation', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('title', models.CharField(choices=[('PR', 'Prof.'), ('DR', 'Dr'), ('MR', 'Mr'), ('MRS', 'Mrs')], max_length=4)), - ('first_name', models.CharField(default='', max_length=30)), - ('last_name', models.CharField(default='', max_length=30)), - ('email_address', models.EmailField(max_length=254)), - ('invitation_key', models.CharField(default='', max_length=40)), - ('date_invited', models.DateTimeField(default=django.utils.timezone.now)), - ('accepted', models.NullBooleanField(choices=[(None, 'Response pending'), (True, 'Accept'), (False, 'Decline')], default=None)), - ('date_responded', models.DateTimeField(blank=True, null=True)), - ('refusal_reason', models.CharField(blank=True, choices=[('BUS', 'Too busy'), ('COI', 'Conflict of interest: coauthor in last 5 years'), ('CCC', 'Conflict of interest: close colleague'), ('NIR', 'Cannot give an impartial assessment'), ('NIE', 'Not interested enough'), ('DNP', 'SciPost should not even consider this paper')], max_length=3, null=True)), - ('fulfilled', models.BooleanField(default=False)), - ('invited_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='referee_invited_by', to='scipost.Contributor')), - ('referee', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='referee', to='scipost.Contributor')), - ], - ), - migrations.RenameField( - model_name='submission', - old_name='vetted', - new_name='assigned', - ), - migrations.RemoveField( - model_name='report', - name='date_invited', - ), - migrations.RemoveField( - model_name='report', - name='invited_by', - ), - migrations.AddField( - model_name='report', - name='invited', - field=models.BooleanField(default=False), - ), - migrations.AddField( - model_name='report', - name='remarks_for_editors', - field=models.TextField(blank=True, default='', verbose_name='optional remarks for the Editors only'), - ), - migrations.AddField( - model_name='submission', - name='reporting_deadline', - field=models.DateTimeField(default=django.utils.timezone.now), - ), - migrations.AlterField( - model_name='report', - name='formatting', - field=models.SmallIntegerField(choices=[(6, 'perfect'), (5, 'excellent'), (4, 'good'), (3, 'reasonable'), (2, 'acceptable'), (1, 'below threshold'), (0, 'mediocre')], verbose_name='Quality of paper formatting'), - ), - migrations.AlterField( - model_name='report', - name='grammar', - field=models.SmallIntegerField(choices=[(6, 'perfect'), (5, 'excellent'), (4, 'good'), (3, 'reasonable'), (2, 'acceptable'), (1, 'below threshold'), (0, 'mediocre')], verbose_name='Quality of English grammar'), - ), - migrations.AlterField( - model_name='submission', - name='editor_in_charge', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='EIC', to='scipost.Contributor'), - ), - migrations.AlterField( - model_name='submission', - name='status', - field=models.CharField(choices=[('unassigned', 'Unassigned'), ('assigned', 'Assigned to a specialty editor (response pending)'), ('EICassigned', 'Editor-in-charge assigned, manuscript under review'), ('review_closed', 'Review period closed, editorial recommendation pending'), ('EIC_has_recommended', 'Editor-in-charge has provided recommendation'), ('put_to_EC_voting', 'Undergoing voting at the Editorial College'), ('EC_vote_completed', 'Editorial College voting rounded up'), ('decided', 'Publication decision taken')], max_length=30), - ), - migrations.AddField( - model_name='refereeinvitation', - name='submission', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='submissions.Submission'), - ), - migrations.AddField( - model_name='eicrecommendation', - name='submission', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='submissions.Submission'), - ), - migrations.AddField( - model_name='eicrecommendation', - name='voted_against', - field=models.ManyToManyField(blank=True, related_name='voted_against', to='scipost.Contributor'), - ), - migrations.AddField( - model_name='eicrecommendation', - name='voted_for', - field=models.ManyToManyField(blank=True, related_name='voted_for', to='scipost.Contributor'), - ), - migrations.AddField( - model_name='editorialcommunication', - name='submission', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='submissions.Submission'), - ), - migrations.AddField( - model_name='editorialassignment', - name='submission', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='submissions.Submission'), - ), - migrations.AddField( - model_name='editorialassignment', - name='to', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor'), - ), - ] diff --git a/submissions/migrations/0003_auto_20160515_0550.py b/submissions/migrations/0003_auto_20160515_0550.py deleted file mode 100644 index c7ae2702c17db733db6af1bc36ea015d88ef697a..0000000000000000000000000000000000000000 --- a/submissions/migrations/0003_auto_20160515_0550.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-05-15 03:50 -from __future__ import unicode_literals - -import django.contrib.postgres.fields.jsonb -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0002_auto_20160415_1952'), - ] - - operations = [ - migrations.AddField( - model_name='report', - name='flagged', - field=models.BooleanField(default=False), - ), - migrations.AddField( - model_name='submission', - name='metadata', - field=django.contrib.postgres.fields.jsonb.JSONField(blank=True, default={}, null=True), - ), - migrations.AddField( - model_name='submission', - name='referees_flagged', - field=models.TextField(blank=True, null=True), - ), - ] diff --git a/submissions/migrations/0004_auto_20160516_1600.py b/submissions/migrations/0004_auto_20160516_1600.py deleted file mode 100644 index 454500f0a17a4a06af47a92d93ce670ed494c854..0000000000000000000000000000000000000000 --- a/submissions/migrations/0004_auto_20160516_1600.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-05-16 14:00 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0003_auto_20160515_0550'), - ] - - operations = [ - migrations.RenameField( - model_name='editorialcommunication', - old_name='type', - new_name='comtype', - ), - migrations.RemoveField( - model_name='submission', - name='assigned', - ), - migrations.AlterField( - model_name='submission', - name='open_for_commenting', - field=models.BooleanField(default=False), - ), - migrations.AlterField( - model_name='submission', - name='open_for_reporting', - field=models.BooleanField(default=False), - ), - migrations.AlterField( - model_name='submission', - name='status', - field=models.CharField(choices=[('unassigned', 'Unassigned'), ('assigned', 'Assigned to a specialty editor (response pending)'), ('assignment_failed', 'Failed to assign Editor-in-charge; manuscript rejected'), ('EICassigned', 'Editor-in-charge assigned, manuscript under review'), ('review_closed', 'Review period closed, editorial recommendation pending'), ('EIC_has_recommended', 'Editor-in-charge has provided recommendation'), ('put_to_EC_voting', 'Undergoing voting at the Editorial College'), ('EC_vote_completed', 'Editorial College voting rounded up'), ('decided', 'Publication decision taken')], max_length=30), - ), - ] diff --git a/submissions/migrations/0005_auto_20160517_1914.py b/submissions/migrations/0005_auto_20160517_1914.py deleted file mode 100644 index dd27b4199a47db72756a8df3ab6b862c8ea548bd..0000000000000000000000000000000000000000 --- a/submissions/migrations/0005_auto_20160517_1914.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-05-17 17:14 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0004_auto_20160516_1600'), - ] - - operations = [ - migrations.AddField( - model_name='editorialassignment', - name='deprecated', - field=models.BooleanField(default=False), - ), - migrations.AlterField( - model_name='submission', - name='status', - field=models.CharField(choices=[('unassigned', 'Unassigned'), ('assignment_failed', 'Failed to assign Editor-in-charge; manuscript rejected'), ('EICassigned', 'Editor-in-charge assigned, manuscript under review'), ('review_closed', 'Review period closed, editorial recommendation pending'), ('EIC_has_recommended', 'Editor-in-charge has provided recommendation'), ('put_to_EC_voting', 'Undergoing voting at the Editorial College'), ('EC_vote_completed', 'Editorial College voting rounded up'), ('decided', 'Publication decision taken')], max_length=30), - ), - ] diff --git a/submissions/migrations/0006_auto_20160521_1523.py b/submissions/migrations/0006_auto_20160521_1523.py deleted file mode 100644 index 1684512dc23e8f3b70b9544e5f2b0064aee31b88..0000000000000000000000000000000000000000 --- a/submissions/migrations/0006_auto_20160521_1523.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-05-21 13:23 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0005_auto_20160517_1914'), - ] - - operations = [ - migrations.AlterModelOptions( - name='submission', - options={'permissions': (('can_take_editorial_actions', 'Can take editorial actions'),)}, - ), - ] diff --git a/submissions/migrations/0007_auto_20160527_2215.py b/submissions/migrations/0007_auto_20160527_2215.py deleted file mode 100644 index de77bbfb6f3172edfd207bc1e2925ec53e0a3346..0000000000000000000000000000000000000000 --- a/submissions/migrations/0007_auto_20160527_2215.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-05-27 20:15 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0006_auto_20160521_1523'), - ] - - operations = [ - migrations.AddField( - model_name='refereeinvitation', - name='date_last_reminded', - field=models.DateTimeField(blank=True, null=True), - ), - migrations.AddField( - model_name='refereeinvitation', - name='nr_reminders', - field=models.PositiveSmallIntegerField(default=0), - ), - migrations.AlterField( - model_name='editorialcommunication', - name='comtype', - field=models.CharField(choices=[('EtoA', 'Editor-in-charge to Author'), ('EtoR', 'Editor-in-charge to Referee'), ('EtoS', 'Editor-in-charge to SciPost Editorial Administration'), ('AtoE', 'Author to Editor-in-charge'), ('RtoE', 'Referee to Editor-in-Charge'), ('StoE', 'SciPost Editorial Administration to Editor-in-charge')], max_length=4), - ), - ] diff --git a/submissions/migrations/0008_auto_20160610_1220.py b/submissions/migrations/0008_auto_20160610_1220.py deleted file mode 100644 index abbca05948f9e56c74513d0668253f7f4271a4c3..0000000000000000000000000000000000000000 --- a/submissions/migrations/0008_auto_20160610_1220.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-06-10 10:20 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0009_auto_20160604_0706'), - ('submissions', '0007_auto_20160527_2215'), - ] - - operations = [ - migrations.AddField( - model_name='report', - name='vetted_by', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='report_vetted_by', to='scipost.Contributor'), - ), - migrations.AlterField( - model_name='submission', - name='status', - field=models.CharField(choices=[('unassigned', 'Unassigned'), ('assignment_failed', 'Failed to assign Editor-in-charge; manuscript rejected'), ('EICassigned', 'Editor-in-charge assigned, manuscript under review'), ('review_closed', 'Review period closed, editorial recommendation pending'), ('revision_requested', 'Editor-in-charge has requested revision'), ('put_to_EC_voting', 'Undergoing voting at the Editorial College'), ('EC_vote_completed', 'Editorial College voting rounded up'), ('accepted', 'Publication decision taken: accept'), ('rejected', 'Publication decision taken: reject')], max_length=30), - ), - ] diff --git a/submissions/migrations/0009_auto_20160704_2111.py b/submissions/migrations/0009_auto_20160704_2111.py deleted file mode 100644 index 2be752ed343a623f3b1a6cccde77eb3f06cfae14..0000000000000000000000000000000000000000 --- a/submissions/migrations/0009_auto_20160704_2111.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-07-04 19:11 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.utils.timezone - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0008_auto_20160610_1220'), - ] - - operations = [ - migrations.AddField( - model_name='submission', - name='submission_type', - field=models.CharField(blank=True, choices=[('Letter', 'Letter (broad-interest breakthrough results)'), ('Article', 'Article (in-depth reports on specialized research)'), ('Review', 'Review (candid snapshot of current research area)')], default=None, max_length=10, null=True), - ), - migrations.AlterField( - model_name='eicrecommendation', - name='date_submitted', - field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='date submitted'), - ), - migrations.AlterField( - model_name='submission', - name='status', - field=models.CharField(choices=[('unassigned', 'Unassigned'), ('assignment_failed', 'Failed to assign Editor-in-charge; manuscript rejected'), ('EICassigned', 'Editor-in-charge assigned, manuscript under review'), ('review_closed', 'Review period closed, editorial recommendation pending'), ('revision_requested', 'Editor-in-charge has requested revision'), ('put_to_EC_voting', 'Undergoing voting at the Editorial College'), ('EC_vote_completed', 'Editorial College voting rounded up'), ('accepted', 'Publication decision taken: accept'), ('rejected', 'Publication decision taken: reject'), ('withdrawn', 'Withdrawn by the Authors')], max_length=30), - ), - ] diff --git a/submissions/migrations/0010_auto_20160706_1154.py b/submissions/migrations/0010_auto_20160706_1154.py deleted file mode 100644 index aee997d0bb539968c7903c535f7aaf83cac23c12..0000000000000000000000000000000000000000 --- a/submissions/migrations/0010_auto_20160706_1154.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-07-06 09:54 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0009_auto_20160704_2111'), - ] - - operations = [ - migrations.AlterField( - model_name='submission', - name='status', - field=models.CharField(choices=[('unassigned', 'Unassigned, undergoing pre-screening'), ('assignment_failed', 'Failed to assign Editor-in-charge; manuscript rejected'), ('EICassigned', 'Editor-in-charge assigned, manuscript under review'), ('review_closed', 'Review period closed, editorial recommendation pending'), ('revision_requested', 'Editor-in-charge has requested revision'), ('put_to_EC_voting', 'Undergoing voting at the Editorial College'), ('EC_vote_completed', 'Editorial College voting rounded up'), ('accepted', 'Publication decision taken: accept'), ('rejected', 'Publication decision taken: reject'), ('withdrawn', 'Withdrawn by the Authors')], max_length=30), - ), - ] diff --git a/submissions/migrations/0011_auto_20160712_1437.py b/submissions/migrations/0011_auto_20160712_1437.py deleted file mode 100644 index 43e445ed548976ff47b112291b441d27d85d1b3c..0000000000000000000000000000000000000000 --- a/submissions/migrations/0011_auto_20160712_1437.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-07-12 12:37 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0010_auto_20160706_1154'), - ] - - operations = [ - migrations.AlterField( - model_name='submission', - name='submission_type', - field=models.CharField(blank=True, choices=[('Letter', 'Letter (broad-interest breakthrough results)'), ('Article', 'Article (in-depth reports on specialized research)'), ('Review', 'Review (candid snapshot of current research in a given area)')], default=None, max_length=10, null=True), - ), - ] diff --git a/submissions/migrations/0012_auto_20160720_1722.py b/submissions/migrations/0012_auto_20160720_1722.py deleted file mode 100644 index 9975694be30251ce97f30150b9b988fc96355325..0000000000000000000000000000000000000000 --- a/submissions/migrations/0012_auto_20160720_1722.py +++ /dev/null @@ -1,55 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-07-20 15:22 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0011_auto_20160712_1437'), - ] - - operations = [ - migrations.AddField( - model_name='submission', - name='arxiv_identifier_w_vn_nr', - field=models.CharField(default='0000.00000v0', max_length=15), - ), - migrations.AddField( - model_name='submission', - name='arxiv_identifier_wo_vn_nr', - field=models.CharField(default='0000.00000', max_length=10), - ), - migrations.AddField( - model_name='submission', - name='arxiv_vn_nr', - field=models.PositiveSmallIntegerField(default=1), - ), - migrations.AddField( - model_name='submission', - name='author_comments', - field=models.TextField(blank=True, null=True), - ), - migrations.AddField( - model_name='submission', - name='is_current', - field=models.BooleanField(default=True), - ), - migrations.AddField( - model_name='submission', - name='is_resubmission', - field=models.BooleanField(default=False), - ), - migrations.AddField( - model_name='submission', - name='list_of_changes', - field=models.TextField(blank=True, null=True), - ), - migrations.AlterField( - model_name='submission', - name='status', - field=models.CharField(choices=[('unassigned', 'Unassigned, undergoing pre-screening'), ('assignment_failed', 'Failed to assign Editor-in-charge; manuscript rejected'), ('EICassigned', 'Editor-in-charge assigned, manuscript under review'), ('review_closed', 'Review period closed, editorial recommendation pending'), ('revision_requested', 'Editor-in-charge has requested revision'), ('resubmitted', 'Has been resubmitted'), ('put_to_EC_voting', 'Undergoing voting at the Editorial College'), ('EC_vote_completed', 'Editorial College voting rounded up'), ('accepted', 'Publication decision taken: accept'), ('rejected', 'Publication decision taken: reject'), ('withdrawn', 'Withdrawn by the Authors')], max_length=30), - ), - ] diff --git a/submissions/migrations/0013_auto_20160802_0534.py b/submissions/migrations/0013_auto_20160802_0534.py deleted file mode 100644 index c3f36b877f79e731327d1f9f8f364e23bb3928d2..0000000000000000000000000000000000000000 --- a/submissions/migrations/0013_auto_20160802_0534.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-08-02 03:34 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0012_auto_20160720_1722'), - ] - - operations = [ - migrations.AlterField( - model_name='submission', - name='status', - field=models.CharField(choices=[('unassigned', 'Unassigned, undergoing pre-screening'), ('assignment_failed', 'Failed to assign Editor-in-charge; manuscript rejected'), ('EICassigned', 'Editor-in-charge assigned, manuscript under review'), ('review_closed', 'Review period closed, editorial recommendation pending'), ('revision_requested', 'Editor-in-charge has requested revision'), ('resubmitted', 'Has been resubmitted'), ('put_to_EC_voting', 'Undergoing voting at the Editorial College'), ('EC_vote_completed', 'Editorial College voting rounded up'), ('accepted', 'Publication decision taken: accept'), ('rejected', 'Publication decision taken: reject'), ('published', 'Published'), ('withdrawn', 'Withdrawn by the Authors')], max_length=30), - ), - ] diff --git a/submissions/migrations/0014_auto_20160802_1541.py b/submissions/migrations/0014_auto_20160802_1541.py deleted file mode 100644 index ccb04fb0f1966301fb9308687ee8402e39dfbfac..0000000000000000000000000000000000000000 --- a/submissions/migrations/0014_auto_20160802_1541.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-08-02 13:41 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0013_auto_20160802_0534'), - ] - - operations = [ - migrations.AlterField( - model_name='editorialassignment', - name='refusal_reason', - field=models.CharField(blank=True, choices=[('BUS', 'Too busy'), ('VAC', 'Away on vacation'), ('COI', 'Conflict of interest: coauthor in last 5 years'), ('CCC', 'Conflict of interest: close colleague'), ('NIR', 'Cannot give an impartial assessment'), ('NIE', 'Not interested enough'), ('DNP', 'SciPost should not even consider this paper')], max_length=3, null=True), - ), - migrations.AlterField( - model_name='refereeinvitation', - name='refusal_reason', - field=models.CharField(blank=True, choices=[('BUS', 'Too busy'), ('VAC', 'Away on vacation'), ('COI', 'Conflict of interest: coauthor in last 5 years'), ('CCC', 'Conflict of interest: close colleague'), ('NIR', 'Cannot give an impartial assessment'), ('NIE', 'Not interested enough'), ('DNP', 'SciPost should not even consider this paper')], max_length=3, null=True), - ), - ] diff --git a/submissions/migrations/0015_eicrecommendation_voted_abstain.py b/submissions/migrations/0015_eicrecommendation_voted_abstain.py deleted file mode 100644 index f8e7e374168e871da2da7f15127c9eefe75ef4b8..0000000000000000000000000000000000000000 --- a/submissions/migrations/0015_eicrecommendation_voted_abstain.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-08-09 05:37 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0011_unavailabilityperiod'), - ('submissions', '0014_auto_20160802_1541'), - ] - - operations = [ - migrations.AddField( - model_name='eicrecommendation', - name='voted_abstain', - field=models.ManyToManyField(blank=True, related_name='voted_abstain', to='scipost.Contributor'), - ), - ] diff --git a/submissions/migrations/0016_auto_20160810_1608.py b/submissions/migrations/0016_auto_20160810_1608.py deleted file mode 100644 index 92e355880537ef639f63fcf8e1e484eed9996f91..0000000000000000000000000000000000000000 --- a/submissions/migrations/0016_auto_20160810_1608.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-08-10 14:08 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0015_eicrecommendation_voted_abstain'), - ] - - operations = [ - migrations.AlterField( - model_name='submission', - name='discipline', - field=models.CharField(choices=[('physics', 'Physics'), ('mathematics', 'Mathematics'), ('computerscience', 'Computer Science')], default='physics', max_length=20), - ), - ] diff --git a/submissions/migrations/0017_auto_20160811_1057.py b/submissions/migrations/0017_auto_20160811_1057.py deleted file mode 100644 index 7777a861825c9afc446ca96350ba3cf1e02ee01d..0000000000000000000000000000000000000000 --- a/submissions/migrations/0017_auto_20160811_1057.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-08-11 08:57 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0016_auto_20160810_1608'), - ] - - operations = [ - migrations.AddField( - model_name='submission', - name='referees_suggested', - field=models.TextField(blank=True, null=True), - ), - migrations.AlterField( - model_name='submission', - name='discipline', - field=models.CharField(choices=[('physics', 'Physics'), ('astrophysics', 'Astrophysics'), ('mathematics', 'Mathematics'), ('computerscience', 'Computer Science')], default='physics', max_length=20), - ), - ] diff --git a/submissions/migrations/0018_auto_20160811_1442.py b/submissions/migrations/0018_auto_20160811_1442.py deleted file mode 100644 index bbba364f3f4bad3d5104637e882b37b2d14beff4..0000000000000000000000000000000000000000 --- a/submissions/migrations/0018_auto_20160811_1442.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-08-11 12:42 -from __future__ import unicode_literals - -import django.contrib.postgres.fields -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0017_auto_20160811_1057'), - ] - - operations = [ - migrations.AddField( - model_name='submission', - name='secondary_areas', - field=django.contrib.postgres.fields.ArrayField(base_field=models.CharField(choices=[('Physics', (('Phys:AE', 'Atomic, Molecular and Optical Physics - Experiment'), ('Phys:AT', 'Atomic, Molecular and Optical Physics - Theory'), ('Phys:BI', 'Biophysics'), ('Phys:CE', 'Condensed Matter Physics - Experiment'), ('Phys:CT', 'Condensed Matter Physics - Theory'), ('Phys:FD', 'Fluid Dynamics'), ('Phys:GR', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:HE', 'High-Energy Physics - Experiment'), ('Phys:HT', 'High-Energy Physics- Theory'), ('Phys:HP', 'High-Energy Physics - Phenomenology'), ('Phys:MP', 'Mathematical Physics'), ('Phys:NE', 'Nuclear Physics - Experiment'), ('Phys:NT', 'Nuclear Physics - Theory'), ('Phys:QP', 'Quantum Physics'), ('Phys:SM', 'Statistical and Soft Matter Physics'))), ('Astrophysics', (('Astro:GA', 'Astrophysics of Galaxies'), ('Astro:CO', 'Cosmology and Nongalactic Astrophysics'), ('Astro:EP', 'Earth and Planetary Astrophysics'), ('Astro:HE', 'High Energy Astrophysical Phenomena'), ('Astro:IM', 'Instrumentation and Methods for Astrophysics'), ('Astro:SR', 'Solar and Stellar Astrophysics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:AP', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:CA', 'Classical Analysis and ODEs'), ('Math:CO', 'Combinatorics'), ('Math:AC', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GN', 'General Topology'), ('Math:GT', 'Geometric Topology'), ('Math:GR', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:LO', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:PR', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SP', 'Spectral Theory'), ('Math:ST', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], max_length=10), blank=True, null=True, size=None), - ), - migrations.AddField( - model_name='submission', - name='subject_area', - field=models.CharField(choices=[('Physics', (('Phys:AE', 'Atomic, Molecular and Optical Physics - Experiment'), ('Phys:AT', 'Atomic, Molecular and Optical Physics - Theory'), ('Phys:BI', 'Biophysics'), ('Phys:CE', 'Condensed Matter Physics - Experiment'), ('Phys:CT', 'Condensed Matter Physics - Theory'), ('Phys:FD', 'Fluid Dynamics'), ('Phys:GR', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:HE', 'High-Energy Physics - Experiment'), ('Phys:HT', 'High-Energy Physics- Theory'), ('Phys:HP', 'High-Energy Physics - Phenomenology'), ('Phys:MP', 'Mathematical Physics'), ('Phys:NE', 'Nuclear Physics - Experiment'), ('Phys:NT', 'Nuclear Physics - Theory'), ('Phys:QP', 'Quantum Physics'), ('Phys:SM', 'Statistical and Soft Matter Physics'))), ('Astrophysics', (('Astro:GA', 'Astrophysics of Galaxies'), ('Astro:CO', 'Cosmology and Nongalactic Astrophysics'), ('Astro:EP', 'Earth and Planetary Astrophysics'), ('Astro:HE', 'High Energy Astrophysical Phenomena'), ('Astro:IM', 'Instrumentation and Methods for Astrophysics'), ('Astro:SR', 'Solar and Stellar Astrophysics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:AP', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:CA', 'Classical Analysis and ODEs'), ('Math:CO', 'Combinatorics'), ('Math:AC', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GN', 'General Topology'), ('Math:GT', 'Geometric Topology'), ('Math:GR', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:LO', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:PR', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SP', 'Spectral Theory'), ('Math:ST', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], default='Phys:QP', max_length=10, verbose_name='Primary subject area'), - ), - ] diff --git a/submissions/migrations/0019_remove_submission_specialization.py b/submissions/migrations/0019_remove_submission_specialization.py deleted file mode 100644 index 524d5b9c0c4ac172ee8e2c565a9f734cd62f465b..0000000000000000000000000000000000000000 --- a/submissions/migrations/0019_remove_submission_specialization.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-08-11 13:39 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0018_auto_20160811_1442'), - ] - - operations = [ - migrations.RemoveField( - model_name='submission', - name='specialization', - ), - ] diff --git a/submissions/migrations/0020_auto_20160813_1401.py b/submissions/migrations/0020_auto_20160813_1401.py deleted file mode 100644 index 72de92aae6270db6f9e117b10f06882d5e700181..0000000000000000000000000000000000000000 --- a/submissions/migrations/0020_auto_20160813_1401.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-08-13 12:01 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('scipost', '0016_remark'), - ('submissions', '0019_remove_submission_specialization'), - ] - - operations = [ - migrations.AddField( - model_name='eicrecommendation', - name='eligible_to_vote', - field=models.ManyToManyField(blank=True, related_name='eligible_to_vote', to='scipost.Contributor'), - ), - migrations.AddField( - model_name='eicrecommendation', - name='remarks_during_voting', - field=models.ManyToManyField(blank=True, to='scipost.Remark'), - ), - migrations.AlterField( - model_name='submission', - name='status', - field=models.CharField(choices=[('unassigned', 'Unassigned, undergoing pre-screening'), ('assignment_failed', 'Failed to assign Editor-in-charge; manuscript rejected'), ('EICassigned', 'Editor-in-charge assigned, manuscript under review'), ('review_closed', 'Review period closed, editorial recommendation pending'), ('revision_requested', 'Editor-in-charge has requested revision'), ('resubmitted', 'Has been resubmitted'), ('voting_in_preparation', 'Voting in preparation (eligible Fellows being selected)'), ('put_to_EC_voting', 'Undergoing voting at the Editorial College'), ('EC_vote_completed', 'Editorial College voting rounded up'), ('accepted', 'Publication decision taken: accept'), ('rejected', 'Publication decision taken: reject'), ('published', 'Published'), ('withdrawn', 'Withdrawn by the Authors')], max_length=30), - ), - ] diff --git a/submissions/migrations/0021_remove_eicrecommendation_remarks_during_voting.py b/submissions/migrations/0021_remove_eicrecommendation_remarks_during_voting.py deleted file mode 100644 index d0d1a6fbe7044115e821cb5b5a5112327d346885..0000000000000000000000000000000000000000 --- a/submissions/migrations/0021_remove_eicrecommendation_remarks_during_voting.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-08-13 13:27 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0020_auto_20160813_1401'), - ] - - operations = [ - migrations.RemoveField( - model_name='eicrecommendation', - name='remarks_during_voting', - ), - ] diff --git a/submissions/migrations/0022_auto_20160822_1934.py b/submissions/migrations/0022_auto_20160822_1934.py deleted file mode 100644 index 00d0d0d90d1d500fcd4a310bce8ba5254d7b287a..0000000000000000000000000000000000000000 --- a/submissions/migrations/0022_auto_20160822_1934.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-08-22 17:34 -from __future__ import unicode_literals - -from django.db import migrations, models -import scipost.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0021_remove_eicrecommendation_remarks_during_voting'), - ] - - operations = [ - migrations.AlterField( - model_name='submission', - name='secondary_areas', - field=scipost.fields.ChoiceArrayField(base_field=models.CharField(choices=[('Physics', (('Phys:AE', 'Atomic, Molecular and Optical Physics - Experiment'), ('Phys:AT', 'Atomic, Molecular and Optical Physics - Theory'), ('Phys:BI', 'Biophysics'), ('Phys:CE', 'Condensed Matter Physics - Experiment'), ('Phys:CT', 'Condensed Matter Physics - Theory'), ('Phys:FD', 'Fluid Dynamics'), ('Phys:GR', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:HE', 'High-Energy Physics - Experiment'), ('Phys:HT', 'High-Energy Physics- Theory'), ('Phys:HP', 'High-Energy Physics - Phenomenology'), ('Phys:MP', 'Mathematical Physics'), ('Phys:NE', 'Nuclear Physics - Experiment'), ('Phys:NT', 'Nuclear Physics - Theory'), ('Phys:QP', 'Quantum Physics'), ('Phys:SM', 'Statistical and Soft Matter Physics'))), ('Astrophysics', (('Astro:GA', 'Astrophysics of Galaxies'), ('Astro:CO', 'Cosmology and Nongalactic Astrophysics'), ('Astro:EP', 'Earth and Planetary Astrophysics'), ('Astro:HE', 'High Energy Astrophysical Phenomena'), ('Astro:IM', 'Instrumentation and Methods for Astrophysics'), ('Astro:SR', 'Solar and Stellar Astrophysics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:AP', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:CA', 'Classical Analysis and ODEs'), ('Math:CO', 'Combinatorics'), ('Math:AC', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GN', 'General Topology'), ('Math:GT', 'Geometric Topology'), ('Math:GR', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:LO', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:PR', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SP', 'Spectral Theory'), ('Math:ST', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], max_length=10), blank=True, null=True, size=None), - ), - ] diff --git a/submissions/migrations/0023_auto_20160914_0612.py b/submissions/migrations/0023_auto_20160914_0612.py deleted file mode 100644 index fffaf495c0d9134292b69c1481aedbbc9ead9e7a..0000000000000000000000000000000000000000 --- a/submissions/migrations/0023_auto_20160914_0612.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-09-14 04:12 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0022_auto_20160822_1934'), - ] - - operations = [ - migrations.AlterField( - model_name='submission', - name='status', - field=models.CharField(choices=[('unassigned', 'Unassigned, undergoing pre-screening'), ('assignment_failed', 'Failed to assign Editor-in-charge; manuscript rejected'), ('EICassigned', 'Editor-in-charge assigned, manuscript under review'), ('review_closed', 'Review period closed, editorial recommendation pending'), ('revision_requested', 'Editor-in-charge has requested revision'), ('resubmitted', 'Has been resubmitted'), ('voting_in_preparation', 'Voting in preparation (eligible Fellows being selected)'), ('put_to_EC_voting', 'Undergoing voting at the Editorial College'), ('EC_vote_completed', 'Editorial College voting rounded up'), ('accepted', 'Publication decision taken: accept'), ('rejected', 'Publication decision taken: reject'), ('rejected_visible', 'Publication decision taken: reject (still publicly visible)'), ('published', 'Published'), ('withdrawn', 'Withdrawn by the Authors')], max_length=30), - ), - ] diff --git a/submissions/migrations/0024_refereeinvitation_cancelled.py b/submissions/migrations/0024_refereeinvitation_cancelled.py deleted file mode 100644 index dfef91b539330a2dc276964bdba5b9304997a58f..0000000000000000000000000000000000000000 --- a/submissions/migrations/0024_refereeinvitation_cancelled.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-09-16 07:03 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0023_auto_20160914_0612'), - ] - - operations = [ - migrations.AddField( - model_name='refereeinvitation', - name='cancelled', - field=models.BooleanField(default=False), - ), - ] diff --git a/submissions/migrations/0025_submission_remarks_for_editors.py b/submissions/migrations/0025_submission_remarks_for_editors.py deleted file mode 100644 index a4ae560dbe7457d638d68655bacf53e93dacd853..0000000000000000000000000000000000000000 --- a/submissions/migrations/0025_submission_remarks_for_editors.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-09-30 08:09 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0024_refereeinvitation_cancelled'), - ] - - operations = [ - migrations.AddField( - model_name='submission', - name='remarks_for_editors', - field=models.TextField(blank=True, null=True), - ), - ] diff --git a/submissions/migrations/0026_auto_20161019_0938.py b/submissions/migrations/0026_auto_20161019_0938.py deleted file mode 100644 index a8b90e8f82a62eb5bcf8247f752b3615f7194b55..0000000000000000000000000000000000000000 --- a/submissions/migrations/0026_auto_20161019_0938.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-10-19 07:38 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0025_submission_remarks_for_editors'), - ] - - operations = [ - migrations.AlterField( - model_name='eicrecommendation', - name='recommendation', - field=models.SmallIntegerField(choices=[(1, 'Publish as Tier I (top 10% of papers in this journal) NOTE: NOT YET OPEN, WAIT FOR EARLY 2017'), (2, 'Publish as Tier II (top 50% of papers in this journal)'), (3, 'Publish as Tier III (meets the criteria of this journal)'), (-1, 'Ask for minor revision'), (-2, 'Ask for major revision'), (-3, 'Reject')]), - ), - migrations.AlterField( - model_name='report', - name='recommendation', - field=models.SmallIntegerField(choices=[(1, 'Publish as Tier I (top 10% of papers in this journal) NOTE: NOT YET OPEN, WAIT FOR EARLY 2017'), (2, 'Publish as Tier II (top 50% of papers in this journal)'), (3, 'Publish as Tier III (meets the criteria of this journal)'), (-1, 'Ask for minor revision'), (-2, 'Ask for major revision'), (-3, 'Reject')]), - ), - ] diff --git a/submissions/migrations/0027_auto_20161019_2109.py b/submissions/migrations/0027_auto_20161019_2109.py deleted file mode 100644 index f6f13f7a46881954f936b6206c85122365d3a9c5..0000000000000000000000000000000000000000 --- a/submissions/migrations/0027_auto_20161019_2109.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-10-19 19:09 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0026_auto_20161019_0938'), - ] - - operations = [ - migrations.AlterField( - model_name='eicrecommendation', - name='recommendation', - field=models.SmallIntegerField(choices=[(1, 'Publish as Tier I (top 10% of papers in this journal, qualifies as Select) NOTE: SELECT NOT YET OPEN, STARTS EARLY 2017'), (2, 'Publish as Tier II (top 50% of papers in this journal)'), (3, 'Publish as Tier III (meets the criteria of this journal)'), (-1, 'Ask for minor revision'), (-2, 'Ask for major revision'), (-3, 'Reject')]), - ), - migrations.AlterField( - model_name='report', - name='recommendation', - field=models.SmallIntegerField(choices=[(1, 'Publish as Tier I (top 10% of papers in this journal, qualifies as Select) NOTE: SELECT NOT YET OPEN, STARTS EARLY 2017'), (2, 'Publish as Tier II (top 50% of papers in this journal)'), (3, 'Publish as Tier III (meets the criteria of this journal)'), (-1, 'Ask for minor revision'), (-2, 'Ask for major revision'), (-3, 'Reject')]), - ), - ] diff --git a/submissions/migrations/0028_auto_20161212_1931.py b/submissions/migrations/0028_auto_20161212_1931.py deleted file mode 100644 index 0bd683ef41ac6dcf29ab4cb8b93b860310523b8f..0000000000000000000000000000000000000000 --- a/submissions/migrations/0028_auto_20161212_1931.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2016-12-12 18:31 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0027_auto_20161019_2109'), - ] - - operations = [ - migrations.AlterField( - model_name='submission', - name='status', - field=models.CharField(choices=[('unassigned', 'Unassigned, undergoing pre-screening'), ('assignment_failed', 'Failed to assign Editor-in-charge; manuscript rejected'), ('EICassigned', 'Editor-in-charge assigned, manuscript under review'), ('review_closed', 'Review period closed, editorial recommendation pending'), ('revision_requested', 'Editor-in-charge has requested revision'), ('resubmitted', 'Has been resubmitted'), ('resubmitted_and_rejected', 'Has been resubmitted and subsequently rejected'), ('resubmitted_and_rejected_visible', 'Has been resubmitted and subsequently rejected (still publicly visible)'), ('voting_in_preparation', 'Voting in preparation (eligible Fellows being selected)'), ('put_to_EC_voting', 'Undergoing voting at the Editorial College'), ('EC_vote_completed', 'Editorial College voting rounded up'), ('accepted', 'Publication decision taken: accept'), ('rejected', 'Publication decision taken: reject'), ('rejected_visible', 'Publication decision taken: reject (still publicly visible)'), ('published', 'Published'), ('withdrawn', 'Withdrawn by the Authors')], max_length=30), - ), - ] diff --git a/submissions/migrations/0029_auto_20170131_1425.py b/submissions/migrations/0029_auto_20170131_1425.py deleted file mode 100644 index 5127b51d766b76880a954447ea02af0a45e513f0..0000000000000000000000000000000000000000 --- a/submissions/migrations/0029_auto_20170131_1425.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-01-31 13:25 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.utils.timezone - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0028_auto_20161212_1931'), - ] - - operations = [ - migrations.AlterField( - model_name='submission', - name='status', - field=models.CharField(choices=[('unassigned', 'Unassigned, undergoing pre-screening'), ('assignment_failed', 'Failed to assign Editor-in-charge; manuscript rejected'), ('EICassigned', 'Editor-in-charge assigned, manuscript under review'), ('review_closed', 'Review period closed, editorial recommendation pending'), ('revision_requested', 'Editor-in-charge has requested revision'), ('resubmitted', 'Has been resubmitted'), ('resubmitted_and_rejected', 'Has been resubmitted and subsequently rejected'), ('resubmitted_and_rejected_visible', 'Has been resubmitted and subsequently rejected (still publicly visible)'), ('voting_in_preparation', 'Voting in preparation (eligible Fellows being selected)'), ('put_to_EC_voting', 'Undergoing voting at the Editorial College'), ('EC_vote_completed', 'Editorial College voting rounded up'), ('accepted', 'Publication decision taken: accept'), ('rejected', 'Publication decision taken: reject'), ('rejected_visible', 'Publication decision taken: reject (still publicly visible)'), ('published', 'Published'), ('withdrawn', 'Withdrawn by the Authors')], default='unassigned', max_length=30), - ), - migrations.AlterField( - model_name='submission', - name='submission_date', - field=models.DateField(default=django.utils.timezone.now, verbose_name='submission date'), - ), - ] diff --git a/submissions/migrations/0030_auto_20170313_1643.py b/submissions/migrations/0030_auto_20170313_1643.py deleted file mode 100644 index efe09bb63ba9a8c5faada45bf663b180cd5b0b02..0000000000000000000000000000000000000000 --- a/submissions/migrations/0030_auto_20170313_1643.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-03-13 15:43 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0029_auto_20170131_1425'), - ] - - operations = [ - migrations.AlterField( - model_name='report', - name='submission', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reports', to='submissions.Submission'), - ), - ] diff --git a/submissions/migrations/0030_auto_20170313_1646.py b/submissions/migrations/0030_auto_20170313_1646.py deleted file mode 100644 index baa2c224766c6fe75d871445dd435995e9e9c470..0000000000000000000000000000000000000000 --- a/submissions/migrations/0030_auto_20170313_1646.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-03-13 15:46 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0029_auto_20170131_1425'), - ] - - operations = [ - migrations.AlterField( - model_name='report', - name='submission', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reports', to='submissions.Submission'), - ), - ] diff --git a/submissions/migrations/0031_merge_20170325_1028.py b/submissions/migrations/0031_merge_20170325_1028.py deleted file mode 100644 index f693ca0305a2b96c0a26f2f159835c3a1df13259..0000000000000000000000000000000000000000 --- a/submissions/migrations/0031_merge_20170325_1028.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-03-25 09:28 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0030_auto_20170313_1646'), - ('submissions', '0030_auto_20170313_1643'), - ] - - operations = [ - ] diff --git a/submissions/migrations/0032_auto_20170404_1644.py b/submissions/migrations/0032_auto_20170404_1644.py deleted file mode 100644 index 7c1e7d4994b50803d63ca996e473a96805bae938..0000000000000000000000000000000000000000 --- a/submissions/migrations/0032_auto_20170404_1644.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-04-04 14:44 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0031_merge_20170325_1028'), - ] - - operations = [ - migrations.AlterField( - model_name='report', - name='status', - field=models.SmallIntegerField(choices=[(1, 'Vetted'), (0, 'Unvetted'), (-2, 'Rejected (incorrect)'), (-1, 'Rejected (unclear)'), (-3, 'Rejected (not useful)'), (-4, 'Rejected (not academic in style)')], default=0), - ), - ] diff --git a/submissions/migrations/0033_auto_20170407_0922.py b/submissions/migrations/0033_auto_20170407_0922.py deleted file mode 100644 index 3e441f40ac5dc8a2e39c3dc1ca6be05907484376..0000000000000000000000000000000000000000 --- a/submissions/migrations/0033_auto_20170407_0922.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-04-07 07:22 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0032_auto_20170404_1644'), - ] - - operations = [ - migrations.AlterField( - model_name='submission', - name='submitted_to_journal', - field=models.CharField(choices=[('SciPost Physics', 'SciPost Physics'), ('SciPostPhysLecture', 'SciPost Physics Lecture Notes')], max_length=30, verbose_name='Journal to be submitted to'), - ), - ] diff --git a/submissions/migrations/0034_auto_20170407_0936.py b/submissions/migrations/0034_auto_20170407_0936.py deleted file mode 100644 index 5d7ab532eef7d0c0f628619c6f5c9971f7c7c4ad..0000000000000000000000000000000000000000 --- a/submissions/migrations/0034_auto_20170407_0936.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-04-07 07:36 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0033_auto_20170407_0922'), - ] - - operations = [ - migrations.AlterField( - model_name='submission', - name='submitted_to_journal', - field=models.CharField(choices=[('SciPostPhys', 'SciPost Physics'), ('SciPostPhysLecture', 'SciPost Physics Lecture Notes')], max_length=30, verbose_name='Journal to be submitted to'), - ), - ] diff --git a/submissions/migrations/0035_auto_20170407_0954.py b/submissions/migrations/0035_auto_20170407_0954.py deleted file mode 100644 index d4782ecd3c87cc2320f419ff9c8aca0be2205315..0000000000000000000000000000000000000000 --- a/submissions/migrations/0035_auto_20170407_0954.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-04-07 07:54 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0034_auto_20170407_0936'), - ] - - operations = [ - migrations.AlterField( - model_name='submission', - name='submitted_to_journal', - field=models.CharField(choices=[('SciPostPhys', 'SciPost Physics'), ('SciPostPhysLectNotes', 'SciPost Physics Lecture Notes')], max_length=30, verbose_name='Journal to be submitted to'), - ), - ] diff --git a/submissions/migrations/0036_auto_20170415_1055.py b/submissions/migrations/0036_auto_20170415_1055.py deleted file mode 100644 index f2835bce0ec4f7fb1c3ec46e609bda7bfea953cd..0000000000000000000000000000000000000000 --- a/submissions/migrations/0036_auto_20170415_1055.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-04-15 08:55 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0035_auto_20170407_0954'), - ] - - operations = [ - migrations.AddField( - model_name='submission', - name='refereeing_cycle', - field=models.CharField(choices=[('default', 'Default cycle'), ('short', 'Short cycle'), ('direct_rec', 'Direct editorial recommendation')], default='default', max_length=30), - ), - migrations.AlterField( - model_name='submission', - name='status', - field=models.CharField(choices=[('unassigned', 'Unassigned, undergoing pre-screening'), ('resubmitted_incomin', 'Resubmission incoming, undergoing pre-screening'), ('assignment_failed', 'Failed to assign Editor-in-charge; manuscript rejected'), ('EICassigned', 'Editor-in-charge assigned, manuscript under review'), ('review_closed', 'Review period closed, editorial recommendation pending'), ('revision_requested', 'Editor-in-charge has requested revision'), ('resubmitted', 'Has been resubmitted'), ('resubmitted_and_rejected', 'Has been resubmitted and subsequently rejected'), ('resubmitted_and_rejected_visible', 'Has been resubmitted and subsequently rejected (still publicly visible)'), ('voting_in_preparation', 'Voting in preparation (eligible Fellows being selected)'), ('put_to_EC_voting', 'Undergoing voting at the Editorial College'), ('EC_vote_completed', 'Editorial College voting rounded up'), ('accepted', 'Publication decision taken: accept'), ('rejected', 'Publication decision taken: reject'), ('rejected_visible', 'Publication decision taken: reject (still publicly visible)'), ('published', 'Published'), ('withdrawn', 'Withdrawn by the Authors')], default='unassigned', max_length=30), - ), - ] diff --git a/submissions/migrations/0037_auto_20170415_1659.py b/submissions/migrations/0037_auto_20170415_1659.py deleted file mode 100644 index 4cdd6ab53537eea8f3884876bb7e4f3907a4b98c..0000000000000000000000000000000000000000 --- a/submissions/migrations/0037_auto_20170415_1659.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-04-15 14:59 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0036_auto_20170415_1055'), - ] - - operations = [ - migrations.AlterField( - model_name='refereeinvitation', - name='submission', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='referee_invitations', to='submissions.Submission'), - ), - migrations.AlterField( - model_name='submission', - name='status', - field=models.CharField(choices=[('unassigned', 'Unassigned, undergoing pre-screening'), ('resubmitted_incomin', 'Resubmission incoming, undergoing pre-screening'), ('assignment_failed', 'Failed to assign Editor-in-charge; manuscript rejected'), ('EICassigned', 'Editor-in-charge assigned, manuscript under review'), ('review_closed', 'Review period closed, editorial recommendation pending'), ('revision_requested', 'Editor-in-charge has requested revision'), ('resubmitted', 'Has been resubmitted'), ('resubmitted_and_rejected', 'Has been resubmitted and subsequently rejected'), ('resubmitted_and_rejected_visible', 'Has been resubmitted and subsequently rejected (still publicly visible)'), ('voting_in_preparation', 'Voting in preparation (eligible Fellows being selected)'), ('put_to_EC_voting', 'Undergoing voting at the Editorial College'), ('awaiting_editorial_recommendation', 'Awaiting Editorial Recommendation'), ('EC_vote_completed', 'Editorial College voting rounded up'), ('accepted', 'Publication decision taken: accept'), ('rejected', 'Publication decision taken: reject'), ('rejected_visible', 'Publication decision taken: reject (still publicly visible)'), ('published', 'Published'), ('withdrawn', 'Withdrawn by the Authors')], default='unassigned', max_length=30), - ), - ] diff --git a/submissions/migrations/0038_auto_20170415_1701.py b/submissions/migrations/0038_auto_20170415_1701.py deleted file mode 100644 index 9c05245587c16cd1071a262df440a0e725bedeff..0000000000000000000000000000000000000000 --- a/submissions/migrations/0038_auto_20170415_1701.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-04-15 15:01 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0037_auto_20170415_1659'), - ] - - operations = [ - migrations.AlterField( - model_name='submission', - name='status', - field=models.CharField(choices=[('unassigned', 'Unassigned, undergoing pre-screening'), ('resubmitted_incomin', 'Resubmission incoming, undergoing pre-screening'), ('assignment_failed', 'Failed to assign Editor-in-charge; manuscript rejected'), ('EICassigned', 'Editor-in-charge assigned, manuscript under review'), ('review_closed', 'Review period closed, editorial recommendation pending'), ('revision_requested', 'Editor-in-charge has requested revision'), ('resubmitted', 'Has been resubmitted'), ('resubmitted_and_rejected', 'Has been resubmitted and subsequently rejected'), ('resubmitted_and_rejected_visible', 'Has been resubmitted and subsequently rejected (still publicly visible)'), ('voting_in_preparation', 'Voting in preparation (eligible Fellows being selected)'), ('put_to_EC_voting', 'Undergoing voting at the Editorial College'), ('awaiting_ed_rec', 'Awaiting Editorial Recommendation'), ('EC_vote_completed', 'Editorial College voting rounded up'), ('accepted', 'Publication decision taken: accept'), ('rejected', 'Publication decision taken: reject'), ('rejected_visible', 'Publication decision taken: reject (still publicly visible)'), ('published', 'Published'), ('withdrawn', 'Withdrawn by the Authors')], default='unassigned', max_length=30), - ), - ] diff --git a/submissions/migrations/0039_auto_20170416_0948.py b/submissions/migrations/0039_auto_20170416_0948.py deleted file mode 100644 index 8a00e0853e02543954eacc23a1a0f8a3e0e92436..0000000000000000000000000000000000000000 --- a/submissions/migrations/0039_auto_20170416_0948.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-04-16 07:48 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0038_auto_20170415_1701'), - ] - - operations = [ - migrations.AlterField( - model_name='eicrecommendation', - name='submission', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='eicrecommendations', to='submissions.Submission'), - ), - ] diff --git a/submissions/migrations/0040_auto_20170416_2152.py b/submissions/migrations/0040_auto_20170416_2152.py deleted file mode 100644 index e8064dfabea16dc62fe3f69e35dd4f5d988a3f0e..0000000000000000000000000000000000000000 --- a/submissions/migrations/0040_auto_20170416_2152.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-04-16 19:52 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0039_auto_20170416_0948'), - ] - - operations = [ - migrations.AlterField( - model_name='submission', - name='status', - field=models.CharField(choices=[('unassigned', 'Unassigned, undergoing pre-screening'), ('resubmitted_incomin', 'Resubmission incoming'), ('assignment_failed', 'Failed to assign Editor-in-charge; manuscript rejected'), ('EICassigned', 'Editor-in-charge assigned, manuscript under review'), ('review_closed', 'Review period closed, editorial recommendation pending'), ('revision_requested', 'Editor-in-charge has requested revision'), ('resubmitted', 'Has been resubmitted'), ('resubmitted_and_rejected', 'Has been resubmitted and subsequently rejected'), ('resubmitted_and_rejected_visible', 'Has been resubmitted and subsequently rejected (still publicly visible)'), ('voting_in_preparation', 'Voting in preparation (eligible Fellows being selected)'), ('put_to_EC_voting', 'Undergoing voting at the Editorial College'), ('awaiting_ed_rec', 'Awaiting Editorial Recommendation'), ('EC_vote_completed', 'Editorial College voting rounded up'), ('accepted', 'Publication decision taken: accept'), ('rejected', 'Publication decision taken: reject'), ('rejected_visible', 'Publication decision taken: reject (still publicly visible)'), ('published', 'Published'), ('withdrawn', 'Withdrawn by the Authors')], default='unassigned', max_length=30), - ), - ] diff --git a/submissions/migrations/0041_auto_20170418_1022.py b/submissions/migrations/0041_auto_20170418_1022.py deleted file mode 100644 index ab707138a9dde9e2331b3e297af47c442a009e10..0000000000000000000000000000000000000000 --- a/submissions/migrations/0041_auto_20170418_1022.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-04-18 08:22 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0040_auto_20170416_2152'), - ] - - operations = [ - migrations.AlterField( - model_name='submission', - name='status', - field=models.CharField(choices=[('unassigned', 'Unassigned, undergoing pre-screening'), ('resubmitted_incoming', 'Resubmission incoming'), ('assignment_failed', 'Failed to assign Editor-in-charge; manuscript rejected'), ('EICassigned', 'Editor-in-charge assigned, manuscript under review'), ('review_closed', 'Review period closed, editorial recommendation pending'), ('revision_requested', 'Editor-in-charge has requested revision'), ('resubmitted', 'Has been resubmitted'), ('resubmitted_and_rejected', 'Has been resubmitted and subsequently rejected'), ('resubmitted_and_rejected_visible', 'Has been resubmitted and subsequently rejected (still publicly visible)'), ('voting_in_preparation', 'Voting in preparation (eligible Fellows being selected)'), ('put_to_EC_voting', 'Undergoing voting at the Editorial College'), ('awaiting_ed_rec', 'Awaiting Editorial Recommendation'), ('EC_vote_completed', 'Editorial College voting rounded up'), ('accepted', 'Publication decision taken: accept'), ('rejected', 'Publication decision taken: reject'), ('rejected_visible', 'Publication decision taken: reject (still publicly visible)'), ('published', 'Published'), ('withdrawn', 'Withdrawn by the Authors')], default='unassigned', max_length=30), - ), - ] diff --git a/submissions/migrations/0042_auto_20170511_2321.py b/submissions/migrations/0042_auto_20170511_2321.py deleted file mode 100644 index 20b3a653e5fc906c41d3159a46c85278dba8b182..0000000000000000000000000000000000000000 --- a/submissions/migrations/0042_auto_20170511_2321.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-05-11 21:21 -from __future__ import unicode_literals - -import datetime -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0041_auto_20170418_1022'), - ] - - operations = [ - migrations.AlterField( - model_name='submission', - name='submission_date', - field=models.DateField(default=datetime.date.today, verbose_name='submission date'), - ), - ] diff --git a/submissions/migrations/0043_auto_20170512_0836.py b/submissions/migrations/0043_auto_20170512_0836.py deleted file mode 100644 index badd52ad60321186d16f52a6cb4ba9922e5cbb20..0000000000000000000000000000000000000000 --- a/submissions/migrations/0043_auto_20170512_0836.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-05-12 06:36 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0042_auto_20170511_2321'), - ] - - operations = [ - migrations.AlterField( - model_name='submission', - name='latest_activity', - field=models.DateTimeField(auto_now=True), - ), - ] diff --git a/submissions/migrations/0044_auto_20170602_1836.py b/submissions/migrations/0044_auto_20170602_1836.py deleted file mode 100644 index 329d7db77ef5620d4a4bc4ecb7c07d12d685660c..0000000000000000000000000000000000000000 --- a/submissions/migrations/0044_auto_20170602_1836.py +++ /dev/null @@ -1,58 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-02 16:36 -from __future__ import unicode_literals - -from django.db import migrations, models - - -status_map_to_new = { - '1': 'vetted', - '0': 'unvetted', - '-1': 'unclear', - '-2': 'incorrect', - '-3': 'notuseful', - '-4': 'notacademic' -} -status_map_to_old = dict((v, int(k)) for k, v in status_map_to_new.items()) - - -def map_reports_to_new_status_codes(apps, schema_editor): - Report = apps.get_model('submissions', 'Report') - reports = Report.objects.all() - for report in reports: - try: - new_status = status_map_to_new[report.status] - except KeyError: - new_status = 'unvetted' - report.status = new_status - report.save() - print('\nUpdated %i reports.' % len(reports)) - - -def map_reports_to_old_status_codes(apps, schema_editor): - Report = apps.get_model('submissions', 'Report') - reports = Report.objects.all() - for report in reports: - try: - new_status = status_map_to_old[report.status] - except KeyError: - new_status = 0 - report.status = new_status - report.save() - print('\nUpdated %i reports.' % len(reports)) - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0043_auto_20170512_0836'), - ] - - operations = [ - migrations.AlterField( - model_name='report', - name='status', - field=models.CharField(choices=[('vetted', 'Vetted'), ('unvetted', 'Unvetted'), ('incorrect', 'Rejected (incorrect)'), ('unclear', 'Rejected (unclear)'), ('notuseful', 'Rejected (not useful)'), ('notacademic', 'Rejected (not academic in style)')], default='unvetted', max_length=16), - ), - migrations.RunPython(map_reports_to_new_status_codes, map_reports_to_old_status_codes), - ] diff --git a/submissions/migrations/0045_auto_20170608_1710.py b/submissions/migrations/0045_auto_20170608_1710.py deleted file mode 100644 index d21f01c8963888c5630e3965bca0403a6e0f0125..0000000000000000000000000000000000000000 --- a/submissions/migrations/0045_auto_20170608_1710.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-08 15:10 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0044_auto_20170602_1836'), - ] - - operations = [ - migrations.AlterField( - model_name='report', - name='status', - field=models.CharField(choices=[('draft', 'Draft'), ('vetted', 'Vetted'), ('unvetted', 'Unvetted'), ('incorrect', 'Rejected (incorrect)'), ('unclear', 'Rejected (unclear)'), ('notuseful', 'Rejected (not useful)'), ('notacademic', 'Rejected (not academic in style)')], default='unvetted', max_length=16), - ), - ] diff --git a/submissions/migrations/0046_auto_20170623_0806.py b/submissions/migrations/0046_auto_20170623_0806.py deleted file mode 100644 index a0249efe9ae3f066ccb08d5b9e30cde68bdd74fb..0000000000000000000000000000000000000000 --- a/submissions/migrations/0046_auto_20170623_0806.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-23 06:06 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0045_auto_20170608_1710'), - ] - - operations = [ - migrations.AlterField( - model_name='refereeinvitation', - name='title', - field=models.CharField(choices=[('PR', 'Prof.'), ('DR', 'Dr'), ('MR', 'Mr'), ('MRS', 'Mrs'), ('MS', 'Ms')], max_length=4), - ), - ] diff --git a/submissions/migrations/0046_auto_20170625_1311.py b/submissions/migrations/0046_auto_20170625_1311.py deleted file mode 100644 index d33f029e92a097989c4398e3319df4cb57609b32..0000000000000000000000000000000000000000 --- a/submissions/migrations/0046_auto_20170625_1311.py +++ /dev/null @@ -1,34 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-25 11:11 -from __future__ import unicode_literals - -from django.db import migrations, models - - -def set_report_counters(apps, schema_editor): - Report = apps.get_model('submissions', 'Report') - for report in Report.objects.order_by('date_submitted'): - if not report.report_nr: - report.report_nr = report.submission.reports.filter(report_nr__gte=1).count() + 1 - report.save() - print('Updated all Report counters.') - - -def do_nothing(*args): - pass - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0045_auto_20170608_1710'), - ] - - operations = [ - migrations.AddField( - model_name='report', - name='report_nr', - field=models.PositiveSmallIntegerField(default=0), - ), - migrations.RunPython(set_report_counters, do_nothing) - ] diff --git a/submissions/migrations/0047_auto_20170625_1331.py b/submissions/migrations/0047_auto_20170625_1331.py deleted file mode 100644 index 151166d05dd98ce29eef6b9b44b137516fe1b4bb..0000000000000000000000000000000000000000 --- a/submissions/migrations/0047_auto_20170625_1331.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-25 11:31 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0046_auto_20170625_1311'), - ] - - operations = [ - migrations.AddField( - model_name='report', - name='pdf_report', - field=models.FileField(blank=True, max_length=200, upload_to='UPLOADS/REPORTS/%Y/%m/'), - ), - migrations.AlterField( - model_name='report', - name='report_nr', - field=models.PositiveSmallIntegerField(default=0, help_text='This number is a unique number refeering to the Report nr. of the Submission'), - ), - migrations.AlterUniqueTogether( - name='report', - unique_together=set([('submission', 'report_nr')]), - ), - ] diff --git a/submissions/migrations/0047_submission_acceptance_date.py b/submissions/migrations/0047_submission_acceptance_date.py deleted file mode 100644 index ec64c3acddce25595b8b1ea7b84440e9849447a3..0000000000000000000000000000000000000000 --- a/submissions/migrations/0047_submission_acceptance_date.py +++ /dev/null @@ -1,34 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-26 19:38 -from __future__ import unicode_literals - -from django.db import migrations, models - - -def do_nothing(apps, schema_editor): - pass - - -def auto_fill_acceptance_dates(apps, schema_editor): - Publication = apps.get_model('journals', 'Publication') - for pub in Publication.objects.all(): - submission = pub.accepted_submission - submission.acceptance_date = pub.acceptance_date - submission.save() - print("Auto-filled Acceptance dates for accepted Submissions") - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0046_auto_20170623_0806'), - ] - - operations = [ - migrations.AddField( - model_name='submission', - name='acceptance_date', - field=models.DateField(blank=True, null=True, verbose_name='acceptance date'), - ), - migrations.RunPython(auto_fill_acceptance_dates, do_nothing), - ] diff --git a/submissions/migrations/0048_auto_20170721_0931.py b/submissions/migrations/0048_auto_20170721_0931.py deleted file mode 100644 index 3f0a084e264d15c611c97fe05ec58596f3769f18..0000000000000000000000000000000000000000 --- a/submissions/migrations/0048_auto_20170721_0931.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-21 07:31 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0047_submission_acceptance_date'), - ] - - operations = [ - migrations.AlterField( - model_name='report', - name='requested_changes', - field=models.TextField(blank=True, verbose_name='requested changes'), - ), - migrations.AlterField( - model_name='report', - name='strengths', - field=models.TextField(blank=True), - ), - migrations.AlterField( - model_name='report', - name='weaknesses', - field=models.TextField(blank=True), - ), - ] diff --git a/submissions/migrations/0048_auto_20170721_0936.py b/submissions/migrations/0048_auto_20170721_0936.py deleted file mode 100644 index 657a049399d2aadca650ebbc94e78fbd0b70712d..0000000000000000000000000000000000000000 --- a/submissions/migrations/0048_auto_20170721_0936.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-21 07:36 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0047_submission_acceptance_date'), - ] - - operations = [ - migrations.AlterField( - model_name='report', - name='requested_changes', - field=models.TextField(blank=True, verbose_name='requested changes'), - ), - migrations.AlterField( - model_name='report', - name='strengths', - field=models.TextField(blank=True), - ), - migrations.AlterField( - model_name='report', - name='weaknesses', - field=models.TextField(blank=True), - ), - ] diff --git a/submissions/migrations/0048_merge_20170707_1857.py b/submissions/migrations/0048_merge_20170707_1857.py deleted file mode 100644 index e0b38b3d8fe4c76efb193145855351d562885c9b..0000000000000000000000000000000000000000 --- a/submissions/migrations/0048_merge_20170707_1857.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-07 16:57 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0047_auto_20170625_1331'), - ('submissions', '0047_submission_acceptance_date'), - ] - - operations = [ - ] diff --git a/submissions/migrations/0049_auto_20170721_1010.py b/submissions/migrations/0049_auto_20170721_1010.py deleted file mode 100644 index 4627f2592d5f4a8d77755911038deb9dc7fe64a1..0000000000000000000000000000000000000000 --- a/submissions/migrations/0049_auto_20170721_1010.py +++ /dev/null @@ -1,35 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-21 08:10 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0048_auto_20170721_0936'), - ] - - operations = [ - migrations.AlterField( - model_name='report', - name='formatting', - field=models.SmallIntegerField(blank=True, choices=[(6, 'perfect'), (5, 'excellent'), (4, 'good'), (3, 'reasonable'), (2, 'acceptable'), (1, 'below threshold'), (0, 'mediocre')], null=True, verbose_name='Quality of paper formatting'), - ), - migrations.AlterField( - model_name='report', - name='grammar', - field=models.SmallIntegerField(blank=True, choices=[(6, 'perfect'), (5, 'excellent'), (4, 'good'), (3, 'reasonable'), (2, 'acceptable'), (1, 'below threshold'), (0, 'mediocre')], null=True, verbose_name='Quality of English grammar'), - ), - migrations.AlterField( - model_name='report', - name='qualification', - field=models.PositiveSmallIntegerField(choices=[(4, 'expert in this subject'), (3, 'very knowledgeable in this subject'), (2, 'knowledgeable in this subject'), (1, 'generally qualified'), (0, 'not qualified')], verbose_name='Qualification to referee this: I am'), - ), - migrations.AlterField( - model_name='report', - name='remarks_for_editors', - field=models.TextField(blank=True, verbose_name='optional remarks for the Editors only'), - ), - ] diff --git a/submissions/migrations/0049_submission_pdf_refereeing_pack.py b/submissions/migrations/0049_submission_pdf_refereeing_pack.py deleted file mode 100644 index 32166d197857ea1466eae54f2008776c5d3499f3..0000000000000000000000000000000000000000 --- a/submissions/migrations/0049_submission_pdf_refereeing_pack.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-07 16:59 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0048_merge_20170707_1857'), - ] - - operations = [ - migrations.AddField( - model_name='submission', - name='pdf_refereeing_pack', - field=models.FileField(blank=True, max_length=200, upload_to='UPLOADS/REFEREE/%Y/%m/'), - ), - ] diff --git a/submissions/migrations/0050_auto_20170707_2126.py b/submissions/migrations/0050_auto_20170707_2126.py deleted file mode 100644 index 6a454b3e19e435c2e0ac9c57536c3faccc598db8..0000000000000000000000000000000000000000 --- a/submissions/migrations/0050_auto_20170707_2126.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-07 19:26 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0049_submission_pdf_refereeing_pack'), - ] - - operations = [ - migrations.AlterModelOptions( - name='report', - options={'ordering': ['report_nr']}, - ), - migrations.AddField( - model_name='report', - name='doi_label', - field=models.CharField(blank=True, max_length=200), - ), - ] diff --git a/submissions/migrations/0050_auto_20170721_1042.py b/submissions/migrations/0050_auto_20170721_1042.py deleted file mode 100644 index f81add96676950e1daed51e7c308e02dc48f82d2..0000000000000000000000000000000000000000 --- a/submissions/migrations/0050_auto_20170721_1042.py +++ /dev/null @@ -1,68 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-21 08:42 -from __future__ import unicode_literals - -from django.db import migrations, models - - -def report_101_to_none(apps, schema_editor): - Report = apps.get_model('submissions', 'Report') - for rep in Report.objects.all(): - if rep.clarity == 101: - rep.clarity = None - if rep.originality == 101: - rep.originality = None - if rep.significance == 101: - rep.significance = None - if rep.validity == 101: - rep.validity = None - rep.save() - print('\nChanged all Report fields: {clarites,originality,significance,validity} with value' - ' `101` to `None`.') - - -def report_none_to_101(apps, schema_editor): - Report = apps.get_model('submissions', 'Report') - for rep in Report.objects.all(): - if not rep.clarity: - rep.clarity = 101 - if not rep.originality: - rep.originality = 101 - if not rep.significance: - rep.significance = 101 - if not rep.validity: - rep.validity = 101 - rep.save() - print('\nChanged all Report fields: {clarites,originality,significance,validity} with value' - ' `None` to `101`.') - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0049_auto_20170721_1010'), - ] - - operations = [ - migrations.AlterField( - model_name='report', - name='clarity', - field=models.PositiveSmallIntegerField(blank=True, choices=[(None, '-'), (100, 'top'), (80, 'high'), (60, 'good'), (40, 'ok'), (20, 'low'), (0, 'poor')], null=True), - ), - migrations.AlterField( - model_name='report', - name='originality', - field=models.PositiveSmallIntegerField(blank=True, choices=[(None, '-'), (100, 'top'), (80, 'high'), (60, 'good'), (40, 'ok'), (20, 'low'), (0, 'poor')], null=True), - ), - migrations.AlterField( - model_name='report', - name='significance', - field=models.PositiveSmallIntegerField(blank=True, choices=[(None, '-'), (100, 'top'), (80, 'high'), (60, 'good'), (40, 'ok'), (20, 'low'), (0, 'poor')], null=True), - ), - migrations.AlterField( - model_name='report', - name='validity', - field=models.PositiveSmallIntegerField(blank=True, choices=[(None, '-'), (100, 'top'), (80, 'high'), (60, 'good'), (40, 'ok'), (20, 'low'), (0, 'poor')], null=True), - ), - migrations.RunPython(report_101_to_none, report_none_to_101), - ] diff --git a/submissions/migrations/0051_auto_20170721_1049.py b/submissions/migrations/0051_auto_20170721_1049.py deleted file mode 100644 index 5ccf06a410f6f585b3f2ce23faecf963d0a88af6..0000000000000000000000000000000000000000 --- a/submissions/migrations/0051_auto_20170721_1049.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-21 08:49 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0050_auto_20170721_1042'), - ] - - operations = [ - migrations.AlterField( - model_name='report', - name='formatting', - field=models.SmallIntegerField(blank=True, choices=[(None, '-'), (6, 'perfect'), (5, 'excellent'), (4, 'good'), (3, 'reasonable'), (2, 'acceptable'), (1, 'below threshold'), (0, 'mediocre')], null=True, verbose_name='Quality of paper formatting'), - ), - migrations.AlterField( - model_name='report', - name='grammar', - field=models.SmallIntegerField(blank=True, choices=[(None, '-'), (6, 'perfect'), (5, 'excellent'), (4, 'good'), (3, 'reasonable'), (2, 'acceptable'), (1, 'below threshold'), (0, 'mediocre')], null=True, verbose_name='Quality of English grammar'), - ), - ] diff --git a/submissions/migrations/0051_merge_20170721_0934.py b/submissions/migrations/0051_merge_20170721_0934.py deleted file mode 100644 index 2f8075edd4eaf34bd361875a9bf701fd761d7b83..0000000000000000000000000000000000000000 --- a/submissions/migrations/0051_merge_20170721_0934.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-21 07:34 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0050_auto_20170707_2126'), - ('submissions', '0048_auto_20170721_0931'), - ] - - operations = [ - ] diff --git a/submissions/migrations/0052_auto_20170721_1057.py b/submissions/migrations/0052_auto_20170721_1057.py deleted file mode 100644 index c89df6fc0f4aba11de3118a756d79c46e47f29d5..0000000000000000000000000000000000000000 --- a/submissions/migrations/0052_auto_20170721_1057.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-21 08:57 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0051_auto_20170721_1049'), - ] - - operations = [ - migrations.AlterField( - model_name='eicrecommendation', - name='recommendation', - field=models.SmallIntegerField(choices=[(None, '-'), (1, 'Publish as Tier I (top 10% of papers in this journal, qualifies as Select) NOTE: SELECT NOT YET OPEN, STARTS EARLY 2017'), (2, 'Publish as Tier II (top 50% of papers in this journal)'), (3, 'Publish as Tier III (meets the criteria of this journal)'), (-1, 'Ask for minor revision'), (-2, 'Ask for major revision'), (-3, 'Reject')]), - ), - migrations.AlterField( - model_name='report', - name='qualification', - field=models.PositiveSmallIntegerField(choices=[(None, '-'), (4, 'expert in this subject'), (3, 'very knowledgeable in this subject'), (2, 'knowledgeable in this subject'), (1, 'generally qualified'), (0, 'not qualified')], verbose_name='Qualification to referee this: I am'), - ), - migrations.AlterField( - model_name='report', - name='recommendation', - field=models.SmallIntegerField(choices=[(None, '-'), (1, 'Publish as Tier I (top 10% of papers in this journal, qualifies as Select) NOTE: SELECT NOT YET OPEN, STARTS EARLY 2017'), (2, 'Publish as Tier II (top 50% of papers in this journal)'), (3, 'Publish as Tier III (meets the criteria of this journal)'), (-1, 'Ask for minor revision'), (-2, 'Ask for major revision'), (-3, 'Reject')]), - ), - ] diff --git a/submissions/migrations/0053_auto_20170721_1100.py b/submissions/migrations/0053_auto_20170721_1100.py deleted file mode 100644 index ebb3fc0bfb4327f4c5a8ed239a130468efd4eae1..0000000000000000000000000000000000000000 --- a/submissions/migrations/0053_auto_20170721_1100.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-21 09:00 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0052_auto_20170721_1057'), - ] - - operations = [ - migrations.AlterField( - model_name='report', - name='author', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reports', to='scipost.Contributor'), - ), - ] diff --git a/submissions/migrations/0054_auto_20170721_1148.py b/submissions/migrations/0054_auto_20170721_1148.py deleted file mode 100644 index 983b6b8409fd3f8249dac03b25e01f8eef31e516..0000000000000000000000000000000000000000 --- a/submissions/migrations/0054_auto_20170721_1148.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-21 09:48 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0053_auto_20170721_1100'), - ] - - operations = [ - migrations.AlterModelOptions( - name='report', - options={'ordering': ['-date_submitted']}, - ), - ] diff --git a/submissions/migrations/0055_auto_20170724_1734.py b/submissions/migrations/0055_auto_20170724_1734.py deleted file mode 100644 index aeab30e64171c0ae2c5b0c3247c932b218882b80..0000000000000000000000000000000000000000 --- a/submissions/migrations/0055_auto_20170724_1734.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-24 15:34 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import django.utils.timezone -import scipost.db.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0054_auto_20170721_1148'), - ] - - operations = [ - migrations.CreateModel( - name='SubmissionEvent', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('created', models.DateTimeField(default=django.utils.timezone.now)), - ('latest_activity', scipost.db.fields.AutoDateTimeField(blank=True, default=django.utils.timezone.now, editable=False)), - ('event', models.CharField(choices=[('gen', 'General comment'), ('eic', 'Comment for Editor-in-charge'), ('auth', 'Comment for author')], default='gen', max_length=4)), - ('blub', models.TextField()), - ('submission', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='events', to='submissions.Submission')), - ], - options={ - 'abstract': False, - }, - ), - migrations.AlterModelOptions( - name='editorialcommunication', - options={'ordering': ['timestamp']}, - ), - migrations.AlterField( - model_name='editorialcommunication', - name='submission', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='editorial_communications', to='submissions.Submission'), - ), - ] diff --git a/submissions/migrations/0055_merge_20170724_1958.py b/submissions/migrations/0055_merge_20170724_1958.py deleted file mode 100644 index 54ca985482cecb5aa225e844789ea2733674e3fc..0000000000000000000000000000000000000000 --- a/submissions/migrations/0055_merge_20170724_1958.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-24 17:58 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0051_merge_20170721_0934'), - ('submissions', '0054_auto_20170721_1148'), - ] - - operations = [ - ] diff --git a/submissions/migrations/0056_auto_20170724_1818.py b/submissions/migrations/0056_auto_20170724_1818.py deleted file mode 100644 index aa28c521016056f66eca92029c5996d37d01eb35..0000000000000000000000000000000000000000 --- a/submissions/migrations/0056_auto_20170724_1818.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-24 16:18 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0055_auto_20170724_1734'), - ] - - operations = [ - migrations.RenameField( - model_name='submissionevent', - old_name='blub', - new_name='text', - ), - ] diff --git a/submissions/migrations/0057_merge_20170724_1840.py b/submissions/migrations/0057_merge_20170724_1840.py deleted file mode 100644 index 4aadf6b7eb41e6a1e83106facef409d5b80a739e..0000000000000000000000000000000000000000 --- a/submissions/migrations/0057_merge_20170724_1840.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-24 16:40 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0056_auto_20170724_1818'), - ('submissions', '0051_merge_20170721_0934'), - ] - - operations = [ - ] diff --git a/submissions/migrations/0058_auto_20170724_1857.py b/submissions/migrations/0058_auto_20170724_1857.py deleted file mode 100644 index 788449d8efc8b6e3819f5f81fd765c5041f56791..0000000000000000000000000000000000000000 --- a/submissions/migrations/0058_auto_20170724_1857.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-24 16:57 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0057_merge_20170724_1840'), - ] - - operations = [ - migrations.AlterModelOptions( - name='report', - options={'ordering': ['-date_submitted']}, - ), - ] diff --git a/submissions/migrations/0059_auto_20170725_2048.py b/submissions/migrations/0059_auto_20170725_2048.py deleted file mode 100644 index 292342c7362a11dccd2e418283798f970769fca8..0000000000000000000000000000000000000000 --- a/submissions/migrations/0059_auto_20170725_2048.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-25 18:48 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0058_auto_20170724_1857'), - ] - - operations = [ - migrations.AlterModelOptions( - name='submissionevent', - options={'ordering': ['-created']}, - ), - migrations.AlterField( - model_name='eicrecommendation', - name='remarks_for_editorial_college', - field=models.TextField(blank=True, default='', verbose_name='optional remarks for the Editorial College'), - preserve_default=False, - ), - ] diff --git a/submissions/migrations/0060_merge_20170726_0945.py b/submissions/migrations/0060_merge_20170726_0945.py deleted file mode 100644 index c48723096d587337ff501c4aef5f3885769a7edd..0000000000000000000000000000000000000000 --- a/submissions/migrations/0060_merge_20170726_0945.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-26 07:45 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0055_merge_20170724_1958'), - ('submissions', '0059_auto_20170725_2048'), - ] - - operations = [ - ] diff --git a/submissions/migrations/0061_auto_20170727_1012.py b/submissions/migrations/0061_auto_20170727_1012.py deleted file mode 100644 index 68ee18e4cbec33f3ad1ac06f40af4c36c704bbe9..0000000000000000000000000000000000000000 --- a/submissions/migrations/0061_auto_20170727_1012.py +++ /dev/null @@ -1,36 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-27 08:12 -from __future__ import unicode_literals - -from django.db import migrations - -from guardian.shortcuts import assign_perm - - -def do_nothing(apps, schema_editor): - return - - -def update_eic_permissions(apps, schema_editor): - """ - Grant EIC of submission related to unvetted Reports - permission to vet his submission's Report. - """ - Report = apps.get_model('submissions', 'Report') - count = 0 - for rep in Report.objects.filter(status='unvetted'): - eic_user = rep.submission.editor_in_charge - assign_perm('submissions.can_vet_submitted_reports', eic_user.user, rep) - count += 1 - print('\nGranted permission to %i Editor(s)-in-charge to vet related Reports.' % count) - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0060_merge_20170726_0945'), - ] - - operations = [ - migrations.RunPython(update_eic_permissions, do_nothing), - ] diff --git a/submissions/migrations/0062_auto_20170727_1032.py b/submissions/migrations/0062_auto_20170727_1032.py deleted file mode 100644 index c2f7ac53fdc2513e16c8322d11200e03bfd8a062..0000000000000000000000000000000000000000 --- a/submissions/migrations/0062_auto_20170727_1032.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-07-27 08:32 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0061_auto_20170727_1012'), - ] - - operations = [ - migrations.AlterModelOptions( - name='report', - options={'ordering': ['-date_submitted'], 'permissions': (('can_vet_submitted_reports', 'Can vet submitted Reports'),)}, - ), - ] diff --git a/submissions/migrations/0063_auto_20170812_0043.py b/submissions/migrations/0063_auto_20170812_0043.py deleted file mode 100644 index 682e01411afa60859b995bb8565f80f893484ea0..0000000000000000000000000000000000000000 --- a/submissions/migrations/0063_auto_20170812_0043.py +++ /dev/null @@ -1,37 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-08-11 22:43 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion -import django.utils.timezone -import scipost.db.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0062_auto_20170727_1032'), - ] - - operations = [ - migrations.CreateModel( - name='iThenticateReport', - fields=[ - ('created', models.DateTimeField(default=django.utils.timezone.now)), - ('latest_activity', scipost.db.fields.AutoDateTimeField(blank=True, default=django.utils.timezone.now, editable=False)), - ('uploaded_time', models.DateTimeField(blank=True, null=True)), - ('processed_time', models.DateTimeField(blank=True, null=True)), - ('doc_id', models.IntegerField(primary_key=True, serialize=False)), - ('percent_match', models.IntegerField(blank=True, null=True)), - ], - options={ - 'abstract': False, - }, - ), - migrations.AddField( - model_name='submission', - name='plagiarism_report', - field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='to_submission', to='submissions.iThenticateReport'), - ), - ] diff --git a/submissions/migrations/0064_auto_20170815_0826.py b/submissions/migrations/0064_auto_20170815_0826.py deleted file mode 100644 index 3c6df9ec0b123970fd183c3b996acb1c49771eaf..0000000000000000000000000000000000000000 --- a/submissions/migrations/0064_auto_20170815_0826.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-08-15 06:26 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0063_auto_20170812_0043'), - ] - - operations = [ - migrations.AlterModelOptions( - name='ithenticatereport', - options={'verbose_name': 'iThenticate Report', 'verbose_name_plural': 'iThenticate Reports'}, - ), - ] diff --git a/submissions/migrations/0065_auto_20170829_0727.py b/submissions/migrations/0065_auto_20170829_0727.py deleted file mode 100644 index f185ec8b7990c1c9def136b892b772391bb4e31a..0000000000000000000000000000000000000000 --- a/submissions/migrations/0065_auto_20170829_0727.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-08-29 05:27 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0064_auto_20170815_0826'), - ] - - operations = [ - migrations.AlterModelOptions( - name='editorialassignment', - options={'ordering': ['-date_created']}, - ), - migrations.AlterField( - model_name='editorialassignment', - name='submission', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='editorial_assignments', to='submissions.Submission'), - ), - migrations.AlterField( - model_name='editorialassignment', - name='to', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='editorial_assignments', to='scipost.Contributor'), - ), - ] diff --git a/submissions/migrations/0066_ithenticatereport_part_id.py b/submissions/migrations/0066_ithenticatereport_part_id.py deleted file mode 100644 index 1b5975d46de49751e8f574e041e33690ad447382..0000000000000000000000000000000000000000 --- a/submissions/migrations/0066_ithenticatereport_part_id.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-01 09:02 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0065_auto_20170829_0727'), - ] - - operations = [ - migrations.AddField( - model_name='ithenticatereport', - name='part_id', - field=models.IntegerField(blank=True, null=True), - ), - ] diff --git a/submissions/migrations/0067_auto_20170907_1209.py b/submissions/migrations/0067_auto_20170907_1209.py deleted file mode 100644 index e15bb1ae0938e84d578a57184f154bbaa4179282..0000000000000000000000000000000000000000 --- a/submissions/migrations/0067_auto_20170907_1209.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-07 10:09 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0066_ithenticatereport_part_id'), - ] - - operations = [ - migrations.AlterField( - model_name='editorialassignment', - name='refusal_reason', - field=models.CharField(blank=True, choices=[('BUS', 'Too busy'), ('VAC', 'Away on vacation'), ('COI', 'Conflict of interest: coauthor in last 5 years'), ('CCC', 'Conflict of interest: close colleague'), ('NIR', 'Cannot give an impartial assessment'), ('OFE', 'Outside of my field of expertise'), ('NIE', 'Not interested enough'), ('DNP', 'SciPost should not even consider this paper')], max_length=3, null=True), - ), - migrations.AlterField( - model_name='refereeinvitation', - name='refusal_reason', - field=models.CharField(blank=True, choices=[('BUS', 'Too busy'), ('VAC', 'Away on vacation'), ('COI', 'Conflict of interest: coauthor in last 5 years'), ('CCC', 'Conflict of interest: close colleague'), ('NIR', 'Cannot give an impartial assessment'), ('OFE', 'Outside of my field of expertise'), ('NIE', 'Not interested enough'), ('DNP', 'SciPost should not even consider this paper')], max_length=3, null=True), - ), - ] diff --git a/submissions/migrations/0068_auto_20170909_1649.py b/submissions/migrations/0068_auto_20170909_1649.py deleted file mode 100644 index 5244c8c97e3400f040f39d5098ec3fca7dc48898..0000000000000000000000000000000000000000 --- a/submissions/migrations/0068_auto_20170909_1649.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-09 14:49 -from __future__ import unicode_literals - -from django.db import migrations, models -import scipost.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0067_auto_20170907_1209'), - ] - - operations = [ - migrations.AddField( - model_name='report', - name='needs_doi', - field=models.NullBooleanField(default=None), - ), - migrations.AlterField( - model_name='submission', - name='secondary_areas', - field=scipost.fields.ChoiceArrayField(base_field=models.CharField(choices=[('Physics', (('Phys:AE', 'Atomic, Molecular and Optical Physics - Experiment'), ('Phys:AT', 'Atomic, Molecular and Optical Physics - Theory'), ('Phys:BI', 'Biophysics'), ('Phys:CE', 'Condensed Matter Physics - Experiment'), ('Phys:CT', 'Condensed Matter Physics - Theory'), ('Phys:FD', 'Fluid Dynamics'), ('Phys:GR', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:HE', 'High-Energy Physics - Experiment'), ('Phys:HT', 'High-Energy Physics - Theory'), ('Phys:HP', 'High-Energy Physics - Phenomenology'), ('Phys:MP', 'Mathematical Physics'), ('Phys:NE', 'Nuclear Physics - Experiment'), ('Phys:NT', 'Nuclear Physics - Theory'), ('Phys:QP', 'Quantum Physics'), ('Phys:SM', 'Statistical and Soft Matter Physics'))), ('Astrophysics', (('Astro:GA', 'Astrophysics of Galaxies'), ('Astro:CO', 'Cosmology and Nongalactic Astrophysics'), ('Astro:EP', 'Earth and Planetary Astrophysics'), ('Astro:HE', 'High Energy Astrophysical Phenomena'), ('Astro:IM', 'Instrumentation and Methods for Astrophysics'), ('Astro:SR', 'Solar and Stellar Astrophysics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:AP', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:CA', 'Classical Analysis and ODEs'), ('Math:CO', 'Combinatorics'), ('Math:AC', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GN', 'General Topology'), ('Math:GT', 'Geometric Topology'), ('Math:GR', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:LO', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:PR', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SP', 'Spectral Theory'), ('Math:ST', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], max_length=10), blank=True, null=True, size=None), - ), - migrations.AlterField( - model_name='submission', - name='subject_area', - field=models.CharField(choices=[('Physics', (('Phys:AE', 'Atomic, Molecular and Optical Physics - Experiment'), ('Phys:AT', 'Atomic, Molecular and Optical Physics - Theory'), ('Phys:BI', 'Biophysics'), ('Phys:CE', 'Condensed Matter Physics - Experiment'), ('Phys:CT', 'Condensed Matter Physics - Theory'), ('Phys:FD', 'Fluid Dynamics'), ('Phys:GR', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:HE', 'High-Energy Physics - Experiment'), ('Phys:HT', 'High-Energy Physics - Theory'), ('Phys:HP', 'High-Energy Physics - Phenomenology'), ('Phys:MP', 'Mathematical Physics'), ('Phys:NE', 'Nuclear Physics - Experiment'), ('Phys:NT', 'Nuclear Physics - Theory'), ('Phys:QP', 'Quantum Physics'), ('Phys:SM', 'Statistical and Soft Matter Physics'))), ('Astrophysics', (('Astro:GA', 'Astrophysics of Galaxies'), ('Astro:CO', 'Cosmology and Nongalactic Astrophysics'), ('Astro:EP', 'Earth and Planetary Astrophysics'), ('Astro:HE', 'High Energy Astrophysical Phenomena'), ('Astro:IM', 'Instrumentation and Methods for Astrophysics'), ('Astro:SR', 'Solar and Stellar Astrophysics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:AP', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:CA', 'Classical Analysis and ODEs'), ('Math:CO', 'Combinatorics'), ('Math:AC', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GN', 'General Topology'), ('Math:GT', 'Geometric Topology'), ('Math:GR', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:LO', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:PR', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SP', 'Spectral Theory'), ('Math:ST', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], default='Phys:QP', max_length=10, verbose_name='Primary subject area'), - ), - ] diff --git a/submissions/migrations/0069_report_doideposit_needs_updating.py b/submissions/migrations/0069_report_doideposit_needs_updating.py deleted file mode 100644 index 9d6b987794cae2f9ab974268211092cbefe438b8..0000000000000000000000000000000000000000 --- a/submissions/migrations/0069_report_doideposit_needs_updating.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-10 12:15 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0068_auto_20170909_1649'), - ] - - operations = [ - migrations.AddField( - model_name='report', - name='doideposit_needs_updating', - field=models.BooleanField(default=False), - ), - ] diff --git a/submissions/migrations/0070_auto_20170925_2124.py b/submissions/migrations/0070_auto_20170925_2124.py deleted file mode 100644 index 05381bc93ffe513e901c2074ad32db6938b26b58..0000000000000000000000000000000000000000 --- a/submissions/migrations/0070_auto_20170925_2124.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-25 19:24 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0069_report_doideposit_needs_updating'), - ] - - operations = [ - migrations.AlterField( - model_name='submission', - name='author_comments', - field=models.TextField(blank=True, default=''), - preserve_default=False, - ), - ] diff --git a/submissions/migrations/0071_auto_20170928_2022.py b/submissions/migrations/0071_auto_20170928_2022.py deleted file mode 100644 index 9cd9b9535cf0885adcbb6ada625ad17a5e19be0b..0000000000000000000000000000000000000000 --- a/submissions/migrations/0071_auto_20170928_2022.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-28 18:22 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0070_auto_20170925_2124'), - ] - - operations = [ - migrations.AlterField( - model_name='refereeinvitation', - name='referee', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='referee_invitations', to='scipost.Contributor'), - ), - migrations.AlterField( - model_name='submission', - name='submitted_by', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='submitted_submissions', to='scipost.Contributor'), - ), - ] diff --git a/submissions/migrations/0072_auto_20170928_2022.py b/submissions/migrations/0072_auto_20170928_2022.py deleted file mode 100644 index e3b3b36fe8a4731e2fe187e8455c65a1c6fe799c..0000000000000000000000000000000000000000 --- a/submissions/migrations/0072_auto_20170928_2022.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-28 18:22 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0071_auto_20170928_2022'), - ] - - operations = [ - migrations.AlterField( - model_name='submission', - name='list_of_changes', - field=models.TextField(blank=True, default=''), - preserve_default=False, - ), - ] diff --git a/submissions/migrations/0073_auto_20170928_2023.py b/submissions/migrations/0073_auto_20170928_2023.py deleted file mode 100644 index bae204d2343331a0bc0b0cd8358dc6ed97f98064..0000000000000000000000000000000000000000 --- a/submissions/migrations/0073_auto_20170928_2023.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-28 18:23 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0072_auto_20170928_2022'), - ] - - operations = [ - migrations.AlterField( - model_name='submission', - name='authors', - field=models.ManyToManyField(blank=True, related_name='submissions', to='scipost.Contributor'), - ), - migrations.AlterField( - model_name='submission', - name='authors_claims', - field=models.ManyToManyField(blank=True, related_name='claimed_submissions', to='scipost.Contributor'), - ), - migrations.AlterField( - model_name='submission', - name='authors_false_claims', - field=models.ManyToManyField(blank=True, related_name='false_claimed_submissions', to='scipost.Contributor'), - ), - ] diff --git a/submissions/migrations/0074_auto_20170928_2024.py b/submissions/migrations/0074_auto_20170928_2024.py deleted file mode 100644 index 8c958fd639af3c8254b039c7a60b50a6da95e2c1..0000000000000000000000000000000000000000 --- a/submissions/migrations/0074_auto_20170928_2024.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-28 18:24 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0073_auto_20170928_2023'), - ] - - operations = [ - migrations.AlterField( - model_name='submission', - name='referees_flagged', - field=models.TextField(blank=True, default=''), - preserve_default=False, - ), - ] diff --git a/submissions/migrations/0075_auto_20170928_2024.py b/submissions/migrations/0075_auto_20170928_2024.py deleted file mode 100644 index 235763bdb328990da21bad47c2ae879ce9a44288..0000000000000000000000000000000000000000 --- a/submissions/migrations/0075_auto_20170928_2024.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-28 18:24 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0074_auto_20170928_2024'), - ] - - operations = [ - migrations.AlterField( - model_name='submission', - name='referees_suggested', - field=models.TextField(blank=True, default=''), - preserve_default=False, - ), - ] diff --git a/submissions/migrations/0076_auto_20170928_2024.py b/submissions/migrations/0076_auto_20170928_2024.py deleted file mode 100644 index 4ea15d274d0a9188c99c4668a754956d9abaf65b..0000000000000000000000000000000000000000 --- a/submissions/migrations/0076_auto_20170928_2024.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-28 18:24 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0075_auto_20170928_2024'), - ] - - operations = [ - migrations.AlterField( - model_name='submission', - name='remarks_for_editors', - field=models.TextField(blank=True, default=''), - preserve_default=False, - ), - ] diff --git a/submissions/migrations/0077_auto_20171020_0900.py b/submissions/migrations/0077_auto_20171020_0900.py deleted file mode 100644 index 26df6de6233dff92c7a78e96c63a55ecf981c55c..0000000000000000000000000000000000000000 --- a/submissions/migrations/0077_auto_20171020_0900.py +++ /dev/null @@ -1,33 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-20 07:00 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('colleges', '0001_initial'), - ('proceedings', '0001_initial'), - ('submissions', '0076_auto_20170928_2024'), - ] - - operations = [ - migrations.AddField( - model_name='submission', - name='fellows', - field=models.ManyToManyField(blank=True, related_name='pool', to='colleges.Fellowship'), - ), - migrations.AddField( - model_name='submission', - name='proceedings', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='submissions', to='proceedings.Proceedings'), - ), - migrations.AlterField( - model_name='submission', - name='submitted_to_journal', - field=models.CharField(choices=[('SciPostPhys', 'SciPost Physics'), ('SciPostPhysLectNotes', 'SciPost Physics Lecture Notes'), ('SciPostPhysProc', 'SciPost Proceedings')], max_length=30, verbose_name='Journal to be submitted to'), - ), - ] diff --git a/submissions/migrations/0078_auto_20171020_1054.py b/submissions/migrations/0078_auto_20171020_1054.py deleted file mode 100644 index 703f779660ac65d2c5a636484175960f8ac08134..0000000000000000000000000000000000000000 --- a/submissions/migrations/0078_auto_20171020_1054.py +++ /dev/null @@ -1,34 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-20 08:54 -from __future__ import unicode_literals - -from django.db import migrations -from django.db.models import Q - - -def fill_pools(apps, schema_editor): - Fellowship = apps.get_model('colleges', 'Fellowship') - Submission = apps.get_model('submissions', 'Submission') - for fellowship in Fellowship.objects.all(): - # Fellowship.objects.get_or_create(contributor=contributor) - contributor = fellowship.contributor - submissions = Submission.objects.exclude(authors=contributor).exclude( - Q(author_list__icontains=contributor.user.last_name), - ~Q(authors_false_claims=contributor)) - fellowship.pool.add(*submissions) - - -def return_empty(*args, **kwargs): - return - - -class Migration(migrations.Migration): - - dependencies = [ - ('colleges', '0002_auto_20171020_0931'), - ('submissions', '0077_auto_20171020_0900'), - ] - - operations = [ - migrations.RunPython(fill_pools, return_empty), - ] diff --git a/submissions/migrations/0079_auto_20171021_1456.py b/submissions/migrations/0079_auto_20171021_1456.py deleted file mode 100644 index a9f4d043d2750ff0b5afcbb95cedf99c14e98f73..0000000000000000000000000000000000000000 --- a/submissions/migrations/0079_auto_20171021_1456.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-10-21 12:56 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0078_auto_20171020_1054'), - ] - - operations = [ - migrations.AlterModelOptions( - name='report', - options={'ordering': ['-date_submitted']}, - ), - migrations.AlterModelOptions( - name='submission', - options={}, - ), - ] diff --git a/submissions/migrations/0080_auto_20171101_0944.py b/submissions/migrations/0080_auto_20171101_0944.py deleted file mode 100644 index 3091fb09b6fac14a9a50fb64ad25f25a1b9a8039..0000000000000000000000000000000000000000 --- a/submissions/migrations/0080_auto_20171101_0944.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-01 08:44 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('submissions', '0079_auto_20171021_1456'), - ] - - operations = [ - migrations.AlterField( - model_name='submission', - name='submitted_to_journal', - field=models.CharField(choices=[('SciPostPhys', 'SciPost Physics'), ('SciPostPhysLectNotes', 'SciPost Physics Lecture Notes'), ('SciPostPhysProc', 'SciPost Physics Proceedings')], max_length=30, verbose_name='Journal to be submitted to'), - ), - ] diff --git a/submissions/migrations/0081_submission_voting_fellows.py b/submissions/migrations/0081_submission_voting_fellows.py deleted file mode 100644 index 32e51c4615181f9fe216109f1f48b74baf7e219e..0000000000000000000000000000000000000000 --- a/submissions/migrations/0081_submission_voting_fellows.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-11-05 13:21 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('colleges', '0002_auto_20171020_0931'), - ('submissions', '0080_auto_20171101_0944'), - ] - - operations = [ - migrations.AddField( - model_name='submission', - name='voting_fellows', - field=models.ManyToManyField(blank=True, related_name='voting_pool', to='colleges.Fellowship'), - ), - ] diff --git a/theses/migrations/0001_initial.py b/theses/migrations/0001_initial.py index 7ed3f4458b2b021e94d175bb11da307644c300c5..630d06747268bc20be7bc22a239b830a4a692fd1 100644 --- a/theses/migrations/0001_initial.py +++ b/theses/migrations/0001_initial.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-03-29 20:25 +# Generated by Django 1.11.4 on 2017-12-29 13:35 from __future__ import unicode_literals from django.db import migrations, models @@ -22,23 +22,23 @@ class Migration(migrations.Migration): ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('vetted', models.BooleanField(default=False)), ('type', models.CharField(choices=[('MA', "Master's"), ('PhD', 'Ph.D.'), ('Hab', 'Habilitation')], max_length=3)), - ('discipline', models.CharField(choices=[('physics', 'Physics')], default='physics', max_length=20)), - ('domain', models.CharField(blank=True, choices=[('E', 'Experimental'), ('T', 'Theoretical'), ('C', 'Computational'), ('ET', 'Exp. & Theor.'), ('EC', 'Exp. & Comp.'), ('TC', 'Theor. & Comp.'), ('ETC', 'Exp., Theor. & Comp.')], max_length=3)), - ('specialization', models.CharField(blank=True, choices=[('A', 'Atomic, Molecular and Optical Physics'), ('B', 'Biophysics'), ('C', 'Condensed Matter Physics'), ('F', 'Fluid Dynamics'), ('G', 'Gravitation, Cosmology and Astroparticle Physics'), ('H', 'High-Energy Physics'), ('M', 'Mathematical Physics'), ('N', 'Nuclear Physics'), ('Q', 'Quantum Statistical Mechanics'), ('S', 'Statistical and Soft Matter Physics')], max_length=1)), + ('discipline', models.CharField(choices=[('physics', 'Physics'), ('astrophysics', 'Astrophysics'), ('mathematics', 'Mathematics'), ('computerscience', 'Computer Science')], default='physics', max_length=20)), + ('domain', models.CharField(choices=[('E', 'Experimental'), ('T', 'Theoretical'), ('C', 'Computational'), ('ET', 'Exp. & Theor.'), ('EC', 'Exp. & Comp.'), ('TC', 'Theor. & Comp.'), ('ETC', 'Exp., Theor. & Comp.')], max_length=3)), + ('subject_area', models.CharField(choices=[('Physics', (('Phys:AE', 'Atomic, Molecular and Optical Physics - Experiment'), ('Phys:AT', 'Atomic, Molecular and Optical Physics - Theory'), ('Phys:BI', 'Biophysics'), ('Phys:CE', 'Condensed Matter Physics - Experiment'), ('Phys:CT', 'Condensed Matter Physics - Theory'), ('Phys:FD', 'Fluid Dynamics'), ('Phys:GR', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:HE', 'High-Energy Physics - Experiment'), ('Phys:HT', 'High-Energy Physics - Theory'), ('Phys:HP', 'High-Energy Physics - Phenomenology'), ('Phys:MP', 'Mathematical Physics'), ('Phys:NE', 'Nuclear Physics - Experiment'), ('Phys:NT', 'Nuclear Physics - Theory'), ('Phys:QP', 'Quantum Physics'), ('Phys:SM', 'Statistical and Soft Matter Physics'))), ('Astrophysics', (('Astro:GA', 'Astrophysics of Galaxies'), ('Astro:CO', 'Cosmology and Nongalactic Astrophysics'), ('Astro:EP', 'Earth and Planetary Astrophysics'), ('Astro:HE', 'High Energy Astrophysical Phenomena'), ('Astro:IM', 'Instrumentation and Methods for Astrophysics'), ('Astro:SR', 'Solar and Stellar Astrophysics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:AP', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:CA', 'Classical Analysis and ODEs'), ('Math:CO', 'Combinatorics'), ('Math:AC', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GN', 'General Topology'), ('Math:GT', 'Geometric Topology'), ('Math:GR', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:LO', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:PR', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SP', 'Spectral Theory'), ('Math:ST', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], default='Phys:QP', max_length=10)), ('open_for_commenting', models.BooleanField(default=True)), ('title', models.CharField(max_length=300, verbose_name='title')), ('pub_link', models.URLField(verbose_name='URL (external repository)')), ('author', models.CharField(max_length=1000)), - ('supervisor', models.CharField(default='', max_length=1000)), + ('supervisor', models.CharField(max_length=1000)), ('institution', models.CharField(max_length=300, verbose_name='degree granting institution')), ('defense_date', models.DateField(verbose_name='date of thesis defense')), ('abstract', models.TextField(verbose_name='abstract, outline or summary')), ('latest_activity', models.DateTimeField(default=django.utils.timezone.now)), - ('author_as_cont', models.ManyToManyField(blank=True, related_name='author_cont', to='scipost.Contributor')), - ('author_claims', models.ManyToManyField(blank=True, related_name='authors_thesis_claims', to='scipost.Contributor')), - ('author_false_claims', models.ManyToManyField(blank=True, related_name='authors_thesis_false_claims', to='scipost.Contributor')), - ('requested_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='thesislink_requested_by', to='scipost.Contributor')), - ('supervisor_as_cont', models.ManyToManyField(blank=True, related_name='supervisor_cont', to='scipost.Contributor', verbose_name='supervisor(s)')), + ('author_as_cont', models.ManyToManyField(blank=True, related_name='theses', to='scipost.Contributor')), + ('author_claims', models.ManyToManyField(blank=True, related_name='claimed_theses', to='scipost.Contributor')), + ('author_false_claims', models.ManyToManyField(blank=True, related_name='false_claimed_theses', to='scipost.Contributor')), + ('requested_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='requested_theses', to='scipost.Contributor')), + ('supervisor_as_cont', models.ManyToManyField(blank=True, related_name='supervised_theses', to='scipost.Contributor', verbose_name='supervisor(s)')), ('vetted_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor')), ], ), diff --git a/theses/migrations/0002_auto_20160810_1608.py b/theses/migrations/0002_auto_20160810_1608.py deleted file mode 100644 index a7ca41ab40598e3f637eba3d7d4ccefe3d55f328..0000000000000000000000000000000000000000 --- a/theses/migrations/0002_auto_20160810_1608.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-08-10 14:08 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('theses', '0001_initial'), - ] - - operations = [ - migrations.AlterField( - model_name='thesislink', - name='discipline', - field=models.CharField(choices=[('physics', 'Physics'), ('mathematics', 'Mathematics'), ('computerscience', 'Computer Science')], default='physics', max_length=20), - ), - ] diff --git a/theses/migrations/0003_auto_20160811_1057.py b/theses/migrations/0003_auto_20160811_1057.py deleted file mode 100644 index 4a0e6911e8535256246ca85c4f9ce067fe794806..0000000000000000000000000000000000000000 --- a/theses/migrations/0003_auto_20160811_1057.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-08-11 08:57 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('theses', '0002_auto_20160810_1608'), - ] - - operations = [ - migrations.AlterField( - model_name='thesislink', - name='discipline', - field=models.CharField(choices=[('physics', 'Physics'), ('astrophysics', 'Astrophysics'), ('mathematics', 'Mathematics'), ('computerscience', 'Computer Science')], default='physics', max_length=20), - ), - ] diff --git a/theses/migrations/0004_thesislink_subject_area.py b/theses/migrations/0004_thesislink_subject_area.py deleted file mode 100644 index 628ec96e03db9fdabaef21f894f4ed95af1bdec5..0000000000000000000000000000000000000000 --- a/theses/migrations/0004_thesislink_subject_area.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-08-11 12:42 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('theses', '0003_auto_20160811_1057'), - ] - - operations = [ - migrations.AddField( - model_name='thesislink', - name='subject_area', - field=models.CharField(choices=[('Physics', (('Phys:AE', 'Atomic, Molecular and Optical Physics - Experiment'), ('Phys:AT', 'Atomic, Molecular and Optical Physics - Theory'), ('Phys:BI', 'Biophysics'), ('Phys:CE', 'Condensed Matter Physics - Experiment'), ('Phys:CT', 'Condensed Matter Physics - Theory'), ('Phys:FD', 'Fluid Dynamics'), ('Phys:GR', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:HE', 'High-Energy Physics - Experiment'), ('Phys:HT', 'High-Energy Physics- Theory'), ('Phys:HP', 'High-Energy Physics - Phenomenology'), ('Phys:MP', 'Mathematical Physics'), ('Phys:NE', 'Nuclear Physics - Experiment'), ('Phys:NT', 'Nuclear Physics - Theory'), ('Phys:QP', 'Quantum Physics'), ('Phys:SM', 'Statistical and Soft Matter Physics'))), ('Astrophysics', (('Astro:GA', 'Astrophysics of Galaxies'), ('Astro:CO', 'Cosmology and Nongalactic Astrophysics'), ('Astro:EP', 'Earth and Planetary Astrophysics'), ('Astro:HE', 'High Energy Astrophysical Phenomena'), ('Astro:IM', 'Instrumentation and Methods for Astrophysics'), ('Astro:SR', 'Solar and Stellar Astrophysics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:AP', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:CA', 'Classical Analysis and ODEs'), ('Math:CO', 'Combinatorics'), ('Math:AC', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GN', 'General Topology'), ('Math:GT', 'Geometric Topology'), ('Math:GR', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:LO', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:PR', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SP', 'Spectral Theory'), ('Math:ST', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], default='Phys:QP', max_length=10), - ), - ] diff --git a/theses/migrations/0005_remove_thesislink_specialization.py b/theses/migrations/0005_remove_thesislink_specialization.py deleted file mode 100644 index ce13ef13a43b5a5b66df35ee1b5c4ac73b7da8fc..0000000000000000000000000000000000000000 --- a/theses/migrations/0005_remove_thesislink_specialization.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9.1 on 2016-08-11 13:39 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('theses', '0004_thesislink_subject_area'), - ] - - operations = [ - migrations.RemoveField( - model_name='thesislink', - name='specialization', - ), - ] diff --git a/theses/migrations/0006_auto_20161219_2012.py b/theses/migrations/0006_auto_20161219_2012.py deleted file mode 100644 index 935f906aacc44850699e1d60558ba9c3fd845f31..0000000000000000000000000000000000000000 --- a/theses/migrations/0006_auto_20161219_2012.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2016-12-19 19:12 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('theses', '0005_remove_thesislink_specialization'), - ] - - operations = [ - migrations.AlterField( - model_name='thesislink', - name='domain', - field=models.CharField(choices=[('E', 'Experimental'), ('T', 'Theoretical'), ('C', 'Computational'), ('ET', 'Exp. & Theor.'), ('EC', 'Exp. & Comp.'), ('TC', 'Theor. & Comp.'), ('ETC', 'Exp., Theor. & Comp.')], max_length=3), - ), - ] diff --git a/theses/migrations/0007_auto_20170829_0727.py b/theses/migrations/0007_auto_20170829_0727.py deleted file mode 100644 index a6c696068375c047a4a721c31bc1206972ab42d2..0000000000000000000000000000000000000000 --- a/theses/migrations/0007_auto_20170829_0727.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-08-29 05:27 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('theses', '0006_auto_20161219_2012'), - ] - - operations = [ - migrations.AlterField( - model_name='thesislink', - name='supervisor', - field=models.CharField(max_length=1000), - ), - ] diff --git a/theses/migrations/0008_auto_20170909_1649.py b/theses/migrations/0008_auto_20170909_1649.py deleted file mode 100644 index 931a7dee268afc6b6fdef12249a7eb062557891b..0000000000000000000000000000000000000000 --- a/theses/migrations/0008_auto_20170909_1649.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-09 14:49 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('theses', '0007_auto_20170829_0727'), - ] - - operations = [ - migrations.AlterField( - model_name='thesislink', - name='subject_area', - field=models.CharField(choices=[('Physics', (('Phys:AE', 'Atomic, Molecular and Optical Physics - Experiment'), ('Phys:AT', 'Atomic, Molecular and Optical Physics - Theory'), ('Phys:BI', 'Biophysics'), ('Phys:CE', 'Condensed Matter Physics - Experiment'), ('Phys:CT', 'Condensed Matter Physics - Theory'), ('Phys:FD', 'Fluid Dynamics'), ('Phys:GR', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:HE', 'High-Energy Physics - Experiment'), ('Phys:HT', 'High-Energy Physics - Theory'), ('Phys:HP', 'High-Energy Physics - Phenomenology'), ('Phys:MP', 'Mathematical Physics'), ('Phys:NE', 'Nuclear Physics - Experiment'), ('Phys:NT', 'Nuclear Physics - Theory'), ('Phys:QP', 'Quantum Physics'), ('Phys:SM', 'Statistical and Soft Matter Physics'))), ('Astrophysics', (('Astro:GA', 'Astrophysics of Galaxies'), ('Astro:CO', 'Cosmology and Nongalactic Astrophysics'), ('Astro:EP', 'Earth and Planetary Astrophysics'), ('Astro:HE', 'High Energy Astrophysical Phenomena'), ('Astro:IM', 'Instrumentation and Methods for Astrophysics'), ('Astro:SR', 'Solar and Stellar Astrophysics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:AP', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:CA', 'Classical Analysis and ODEs'), ('Math:CO', 'Combinatorics'), ('Math:AC', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GN', 'General Topology'), ('Math:GT', 'Geometric Topology'), ('Math:GR', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:LO', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:PR', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SP', 'Spectral Theory'), ('Math:ST', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], default='Phys:QP', max_length=10), - ), - ] diff --git a/theses/migrations/0009_auto_20170925_2124.py b/theses/migrations/0009_auto_20170925_2124.py deleted file mode 100644 index e921672ad57d7c04e01babef5401e0d8ed63f403..0000000000000000000000000000000000000000 --- a/theses/migrations/0009_auto_20170925_2124.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-25 19:24 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('theses', '0008_auto_20170909_1649'), - ] - - operations = [ - migrations.AlterField( - model_name='thesislink', - name='author_as_cont', - field=models.ManyToManyField(blank=True, related_name='theses', to='scipost.Contributor'), - ), - migrations.AlterField( - model_name='thesislink', - name='author_claims', - field=models.ManyToManyField(blank=True, related_name='claimed_theses', to='scipost.Contributor'), - ), - migrations.AlterField( - model_name='thesislink', - name='author_false_claims', - field=models.ManyToManyField(blank=True, related_name='false_claimed_theses', to='scipost.Contributor'), - ), - migrations.AlterField( - model_name='thesislink', - name='requested_by', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='requested_theses', to='scipost.Contributor'), - ), - migrations.AlterField( - model_name='thesislink', - name='supervisor_as_cont', - field=models.ManyToManyField(blank=True, related_name='supervised_theses', to='scipost.Contributor', verbose_name='supervisor(s)'), - ), - ] diff --git a/virtualmeetings/migrations/0001_initial.py b/virtualmeetings/migrations/0001_initial.py index cbfb62cfed8e40c068277a0a09361d18fc706735..5ae54a8a04d019e6d4682a422c2301e784b6a109 100644 --- a/virtualmeetings/migrations/0001_initial.py +++ b/virtualmeetings/migrations/0001_initial.py @@ -1,11 +1,10 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-03-06 07:04 +# Generated by Django 1.11.4 on 2017-12-29 13:35 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import django.utils.timezone -import scipost.models import scipost.fields @@ -14,17 +13,17 @@ class Migration(migrations.Migration): initial = True dependencies = [ - ('scipost', '0039_auto_20170306_0804'), + ('scipost', '0001_initial'), ] - state_operations = [ + operations = [ migrations.CreateModel( name='Feedback', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('date', models.DateField()), ('feedback', models.TextField()), - ] + ], ), migrations.CreateModel( name='Motion', @@ -33,30 +32,30 @@ class Migration(migrations.Migration): ('category', models.CharField(choices=[('ByLawAmend', 'Amendments to by-laws'), ('Workflow', 'Editorial workflow improvements'), ('General', 'General')], default='General', max_length=10)), ('background', models.TextField()), ('motion', models.TextField()), - ('date', models.DateField()), + ('date', models.DateField(auto_now_add=True)), ('nr_A', models.PositiveIntegerField(default=0)), ('nr_N', models.PositiveIntegerField(default=0)), ('nr_D', models.PositiveIntegerField(default=0)), ('voting_deadline', models.DateTimeField(default=django.utils.timezone.now, verbose_name='voting deadline')), ('accepted', models.NullBooleanField()), - ] + ], ), migrations.CreateModel( name='Nomination', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('date', models.DateField()), - ('first_name', models.CharField(default='', max_length=30)), - ('last_name', models.CharField(default='', max_length=30)), + ('date', models.DateField(auto_now_add=True)), + ('first_name', models.CharField(max_length=30)), + ('last_name', models.CharField(max_length=30)), ('discipline', models.CharField(choices=[('physics', 'Physics'), ('astrophysics', 'Astrophysics'), ('mathematics', 'Mathematics'), ('computerscience', 'Computer Science')], default='physics', max_length=20, verbose_name='Main discipline')), - ('expertises', scipost.fields.ChoiceArrayField(base_field=models.CharField(choices=[('Physics', (('Phys:AE', 'Atomic, Molecular and Optical Physics - Experiment'), ('Phys:AT', 'Atomic, Molecular and Optical Physics - Theory'), ('Phys:BI', 'Biophysics'), ('Phys:CE', 'Condensed Matter Physics - Experiment'), ('Phys:CT', 'Condensed Matter Physics - Theory'), ('Phys:FD', 'Fluid Dynamics'), ('Phys:GR', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:HE', 'High-Energy Physics - Experiment'), ('Phys:HT', 'High-Energy Physics- Theory'), ('Phys:HP', 'High-Energy Physics - Phenomenology'), ('Phys:MP', 'Mathematical Physics'), ('Phys:NE', 'Nuclear Physics - Experiment'), ('Phys:NT', 'Nuclear Physics - Theory'), ('Phys:QP', 'Quantum Physics'), ('Phys:SM', 'Statistical and Soft Matter Physics'))), ('Astrophysics', (('Astro:GA', 'Astrophysics of Galaxies'), ('Astro:CO', 'Cosmology and Nongalactic Astrophysics'), ('Astro:EP', 'Earth and Planetary Astrophysics'), ('Astro:HE', 'High Energy Astrophysical Phenomena'), ('Astro:IM', 'Instrumentation and Methods for Astrophysics'), ('Astro:SR', 'Solar and Stellar Astrophysics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:AP', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:CA', 'Classical Analysis and ODEs'), ('Math:CO', 'Combinatorics'), ('Math:AC', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GN', 'General Topology'), ('Math:GT', 'Geometric Topology'), ('Math:GR', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:LO', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:PR', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SP', 'Spectral Theory'), ('Math:ST', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], max_length=10), blank=True, null=True, size=None)), - ('webpage', models.URLField(default='')), + ('expertises', scipost.fields.ChoiceArrayField(base_field=models.CharField(choices=[('Physics', (('Phys:AE', 'Atomic, Molecular and Optical Physics - Experiment'), ('Phys:AT', 'Atomic, Molecular and Optical Physics - Theory'), ('Phys:BI', 'Biophysics'), ('Phys:CE', 'Condensed Matter Physics - Experiment'), ('Phys:CT', 'Condensed Matter Physics - Theory'), ('Phys:FD', 'Fluid Dynamics'), ('Phys:GR', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:HE', 'High-Energy Physics - Experiment'), ('Phys:HT', 'High-Energy Physics - Theory'), ('Phys:HP', 'High-Energy Physics - Phenomenology'), ('Phys:MP', 'Mathematical Physics'), ('Phys:NE', 'Nuclear Physics - Experiment'), ('Phys:NT', 'Nuclear Physics - Theory'), ('Phys:QP', 'Quantum Physics'), ('Phys:SM', 'Statistical and Soft Matter Physics'))), ('Astrophysics', (('Astro:GA', 'Astrophysics of Galaxies'), ('Astro:CO', 'Cosmology and Nongalactic Astrophysics'), ('Astro:EP', 'Earth and Planetary Astrophysics'), ('Astro:HE', 'High Energy Astrophysical Phenomena'), ('Astro:IM', 'Instrumentation and Methods for Astrophysics'), ('Astro:SR', 'Solar and Stellar Astrophysics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:AP', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:CA', 'Classical Analysis and ODEs'), ('Math:CO', 'Combinatorics'), ('Math:AC', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GN', 'General Topology'), ('Math:GT', 'Geometric Topology'), ('Math:GR', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:LO', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:PR', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SP', 'Spectral Theory'), ('Math:ST', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], max_length=10), blank=True, null=True, size=None)), + ('webpage', models.URLField()), ('nr_A', models.PositiveIntegerField(default=0)), ('nr_N', models.PositiveIntegerField(default=0)), ('nr_D', models.PositiveIntegerField(default=0)), ('voting_deadline', models.DateTimeField(default=django.utils.timezone.now, verbose_name='voting deadline')), ('accepted', models.NullBooleanField()), - ] + ], ), migrations.CreateModel( name='VGM', @@ -65,7 +64,7 @@ class Migration(migrations.Migration): ('start_date', models.DateField()), ('end_date', models.DateField()), ('information', models.TextField(default='')), - ] + ], ), migrations.AddField( model_name='nomination', @@ -128,7 +127,3 @@ class Migration(migrations.Migration): field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='scipost.Contributor'), ), ] - - operations = [ - migrations.SeparateDatabaseAndState(state_operations=state_operations) - ] diff --git a/virtualmeetings/migrations/0002_auto_20170618_2024.py b/virtualmeetings/migrations/0002_auto_20170618_2024.py deleted file mode 100644 index b08067bccd500b472fd6e523e636c0d2b2aea76c..0000000000000000000000000000000000000000 --- a/virtualmeetings/migrations/0002_auto_20170618_2024.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.10.3 on 2017-06-18 18:24 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('virtualmeetings', '0001_initial'), - ] - - operations = [ - migrations.AlterField( - model_name='motion', - name='date', - field=models.DateField(auto_now_add=True), - ), - migrations.AlterField( - model_name='nomination', - name='date', - field=models.DateField(auto_now_add=True), - ), - migrations.AlterField( - model_name='nomination', - name='first_name', - field=models.CharField(max_length=30), - ), - migrations.AlterField( - model_name='nomination', - name='last_name', - field=models.CharField(max_length=30), - ), - migrations.AlterField( - model_name='nomination', - name='webpage', - field=models.URLField(), - ), - ] diff --git a/virtualmeetings/migrations/0003_auto_20170909_1649.py b/virtualmeetings/migrations/0003_auto_20170909_1649.py deleted file mode 100644 index 2d34ddda0e32a71129ff853437bac0e5f58a2bf6..0000000000000000000000000000000000000000 --- a/virtualmeetings/migrations/0003_auto_20170909_1649.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.4 on 2017-09-09 14:49 -from __future__ import unicode_literals - -from django.db import migrations, models -import scipost.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('virtualmeetings', '0002_auto_20170618_2024'), - ] - - operations = [ - migrations.AlterField( - model_name='nomination', - name='expertises', - field=scipost.fields.ChoiceArrayField(base_field=models.CharField(choices=[('Physics', (('Phys:AE', 'Atomic, Molecular and Optical Physics - Experiment'), ('Phys:AT', 'Atomic, Molecular and Optical Physics - Theory'), ('Phys:BI', 'Biophysics'), ('Phys:CE', 'Condensed Matter Physics - Experiment'), ('Phys:CT', 'Condensed Matter Physics - Theory'), ('Phys:FD', 'Fluid Dynamics'), ('Phys:GR', 'Gravitation, Cosmology and Astroparticle Physics'), ('Phys:HE', 'High-Energy Physics - Experiment'), ('Phys:HT', 'High-Energy Physics - Theory'), ('Phys:HP', 'High-Energy Physics - Phenomenology'), ('Phys:MP', 'Mathematical Physics'), ('Phys:NE', 'Nuclear Physics - Experiment'), ('Phys:NT', 'Nuclear Physics - Theory'), ('Phys:QP', 'Quantum Physics'), ('Phys:SM', 'Statistical and Soft Matter Physics'))), ('Astrophysics', (('Astro:GA', 'Astrophysics of Galaxies'), ('Astro:CO', 'Cosmology and Nongalactic Astrophysics'), ('Astro:EP', 'Earth and Planetary Astrophysics'), ('Astro:HE', 'High Energy Astrophysical Phenomena'), ('Astro:IM', 'Instrumentation and Methods for Astrophysics'), ('Astro:SR', 'Solar and Stellar Astrophysics'))), ('Mathematics', (('Math:AG', 'Algebraic Geometry'), ('Math:AT', 'Algebraic Topology'), ('Math:AP', 'Analysis of PDEs'), ('Math:CT', 'Category Theory'), ('Math:CA', 'Classical Analysis and ODEs'), ('Math:CO', 'Combinatorics'), ('Math:AC', 'Commutative Algebra'), ('Math:CV', 'Complex Variables'), ('Math:DG', 'Differential Geometry'), ('Math:DS', 'Dynamical Systems'), ('Math:FA', 'Functional Analysis'), ('Math:GM', 'General Mathematics'), ('Math:GN', 'General Topology'), ('Math:GT', 'Geometric Topology'), ('Math:GR', 'Group Theory'), ('Math:HO', 'History and Overview'), ('Math:IT', 'Information Theory'), ('Math:KT', 'K-Theory and Homology'), ('Math:LO', 'Logic'), ('Math:MP', 'Mathematical Physics'), ('Math:MG', 'Metric Geometry'), ('Math:NT', 'Number Theory'), ('Math:NA', 'Numerical Analysis'), ('Math:OA', 'Operator Algebras'), ('Math:OC', 'Optimization and Control'), ('Math:PR', 'Probability'), ('Math:QA', 'Quantum Algebra'), ('Math:RT', 'Representation Theory'), ('Math:RA', 'Rings and Algebras'), ('Math:SP', 'Spectral Theory'), ('Math:ST', 'Statistics Theory'), ('Math:SG', 'Symplectic Geometry'))), ('Computer Science', (('Comp:AI', 'Artificial Intelligence'), ('Comp:CC', 'Computational Complexity'), ('Comp:CE', 'Computational Engineering, Finance, and Science'), ('Comp:CG', 'Computational Geometry'), ('Comp:GT', 'Computer Science and Game Theory'), ('Comp:CV', 'Computer Vision and Pattern Recognition'), ('Comp:CY', 'Computers and Society'), ('Comp:CR', 'Cryptography and Security'), ('Comp:DS', 'Data Structures and Algorithms'), ('Comp:DB', 'Databases'), ('Comp:DL', 'Digital Libraries'), ('Comp:DM', 'Discrete Mathematics'), ('Comp:DC', 'Distributed, Parallel, and Cluster Computing'), ('Comp:ET', 'Emerging Technologies'), ('Comp:FL', 'Formal Languages and Automata Theory'), ('Comp:GL', 'General Literature'), ('Comp:GR', 'Graphics'), ('Comp:AR', 'Hardware Architecture'), ('Comp:HC', 'Human-Computer Interaction'), ('Comp:IR', 'Information Retrieval'), ('Comp:IT', 'Information Theory'), ('Comp:LG', 'Learning'), ('Comp:LO', 'Logic in Computer Science'), ('Comp:MS', 'Mathematical Software'), ('Comp:MA', 'Multiagent Systems'), ('Comp:MM', 'Multimedia'), ('Comp:NI', 'Networking and Internet Architecture'), ('Comp:NE', 'Neural and Evolutionary Computing'), ('Comp:NA', 'Numerical Analysis'), ('Comp:OS', 'Operating Systems'), ('Comp:OH', 'Other Computer Science'), ('Comp:PF', 'Performance'), ('Comp:PL', 'Programming Languages'), ('Comp:RO', 'Robotics'), ('Comp:SI', 'Social and Information Networks'), ('Comp:SE', 'Software Engineering'), ('Comp:SD', 'Sound'), ('Comp:SC', 'Symbolic Computation'), ('Comp:SY', 'Systems and Control')))], max_length=10), blank=True, null=True, size=None), - ), - ]