diff --git a/deploy/environments/development/invoke.yml b/deploy/environments/development/invoke.yml index 4a68e9a8..6e6868e1 100644 --- a/deploy/environments/development/invoke.yml +++ b/deploy/environments/development/invoke.yml @@ -20,3 +20,5 @@ datascope: postgres: credentials: host: "127.0.0.1" +elastic_search: + host: "elastic" diff --git a/deploy/environments/production/invoke.yml b/deploy/environments/production/invoke.yml index 2def7fad..4e32f4ab 100644 --- a/deploy/environments/production/invoke.yml +++ b/deploy/environments/production/invoke.yml @@ -20,3 +20,5 @@ datascope: postgres: credentials: host: "127.0.0.1" +elastic_search: + host: "127.0.0.1" diff --git a/docker-compose.yml b/docker-compose.yml index 5e72be35..d0f5f416 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -67,8 +67,8 @@ services: hard: -1 volumes: - elastic-data:/usr/share/elasticsearch/data - #ports: - # - 127.0.0.1:9200:9200 + ports: + - 9200:9200 adminer: image: adminer diff --git a/src/datascope/requirements/development.txt b/src/datascope/requirements/development.txt index da0ce081..6e900cd9 100644 --- a/src/datascope/requirements/development.txt +++ b/src/datascope/requirements/development.txt @@ -1,7 +1,7 @@ -r minimal.txt # Extended production dependencies -psycopg2-binary==2.8.4 +psycopg2-binary==2.8.5 spacy==2.0.18 spacy-arguing-lexicon==0.0.3 IndicoIo==0.15.4 diff --git a/src/datascope/requirements/minimal.txt b/src/datascope/requirements/minimal.txt index b5a9f975..8a55ca12 100644 --- a/src/datascope/requirements/minimal.txt +++ b/src/datascope/requirements/minimal.txt @@ -1,16 +1,17 @@ -Django==1.11.29 -whitenoise==5.0.1 +Django==2.2.13 +whitenoise==5.1.0 sqlparse==0.2.0 # raw sql queries URLObject==2.4.0 celery==4.4.0 +kombu==4.6.10 git+https://github.com/fako/django-json-field.git -djangorestframework==3.9.1 -django-cors-headers==2.4.0 -requests==2.20.0 +djangorestframework==3.11.0 +django-cors-headers==3.4.0 +requests==2.24.0 six==1.11.0 jsonschema==2.4.0 html5lib==1.0b8 -beautifulsoup4==4.6.0 +beautifulsoup4==4.8.0 numpy==1.19.4 pandas==1.1.4 scipy==1.5.4 @@ -31,8 +32,7 @@ elasticsearch==6.0.0 # Debug and test invoke==1.4.0 -sentry-sdk==0.11.1 +sentry-sdk==0.16.2 ipdb==0.8 -ipython==6.1.0 -mock==1.3.0 +ipython==7.12.0 django-debug-toolbar==1.9.1 diff --git a/src/datascope/requirements/production.txt b/src/datascope/requirements/production.txt index 97b46fa8..16529a95 100644 --- a/src/datascope/requirements/production.txt +++ b/src/datascope/requirements/production.txt @@ -1,7 +1,7 @@ -r minimal.txt https://projects.unbit.it/downloads/uwsgi-lts.tar.gz -psycopg2-binary==2.8.4 +psycopg2-binary==2.8.5 spacy==2.0.18 spacy-arguing-lexicon==0.0.3 IndicoIo==0.15.4 diff --git a/src/datascope/settings_base.py b/src/datascope/settings_base.py index d2ac115b..064495cd 100644 --- a/src/datascope/settings_base.py +++ b/src/datascope/settings_base.py @@ -119,31 +119,21 @@ ALLOWED_HOSTS = [ '.localhost', '.globe-scope.com', - '.globe-scope.org', - '.globe-scope.info', '.data-scope.com', - '.data-scope.org', - '.data-scope.info', - '.tools.wmflabs.org', - '37.139.16.242', - 'ec2-34-251-167-142.eu-west-1.compute.amazonaws.com', - '.2ndhandstylist.com', ] CORS_ORIGIN_WHITELIST = [ - 'localhost:9000', - '127.0.0.1:9000', - '10.0.2.2:9000', - 'localhost:8080', - '127.0.0.1:8080', - '10.0.2.2:8080', - 'data-scope.com', - 'www.data-scope.com', - 'globe-scope.com', - 'www.globe-scope.com', - 'debatkijker.nl', - 'www.debatkijker.nl', - '2ndhandstylist.com', - 'www.2ndhandstylist.com', + 'http://localhost:9000', + 'http://127.0.0.1:9000', + 'http://10.0.2.2:9000', + 'http://localhost:8080', + 'http://127.0.0.1:8080', + 'http://10.0.2.2:8080', + 'https://data-scope.com', + 'https://www.data-scope.com', + 'http://globe-scope.com', + 'http://www.globe-scope.com', + 'https://debatkijker.nl', + 'https://www.debatkijker.nl', ] # Do not redirect when slashes at the end are missing @@ -359,6 +349,7 @@ 'en': 'english', 'nl': 'dutch' } +ELASTIC_SEARCH_HOST = environment.elastic_search.host # Sentry error reporting diff --git a/src/datascope/urls.py b/src/datascope/urls.py index d94c4522..a229c244 100644 --- a/src/datascope/urls.py +++ b/src/datascope/urls.py @@ -56,7 +56,7 @@ url(r'^data/v1/', include((legacy_patterns, "v1",))), url(r'^api/v1/auth/token/?$', rest_views.obtain_auth_token), url(r'^api/v1/', include((datagrowth_patterns, "api-v1",))), - url(r'^admin/', include(admin.site.urls)), + url(r'^admin/', admin.site.urls), url(r'^health/?$', views.health_check), ] diff --git a/src/nautilus/migrations/0001_initial.py b/src/nautilus/migrations/0001_initial.py deleted file mode 100644 index 341727c9..00000000 --- a/src/nautilus/migrations/0001_initial.py +++ /dev/null @@ -1,83 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models -import core.utils.configuration -import core.processors.mixins -import json_field.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('core', '0017_auto_20170315_1639'), - ('contenttypes', '0002_remove_content_type_name'), - ] - - operations = [ - migrations.CreateModel( - name='LocaforaLogin', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('uri', models.CharField(max_length=255, db_index=True, default=None)), - ('config', core.utils.configuration.ConfigurationField()), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(blank=True, null=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('data_hash', models.CharField(max_length=255, db_index=True, default='')), - ('request', json_field.fields.JSONField(help_text='Enter a valid JSON object', default=None)), - ('head', json_field.fields.JSONField(help_text='Enter a valid JSON object', default=None)), - ('body', models.TextField(default=None)), - ('status', models.PositiveIntegerField(default=None)), - ('retainer_type', models.ForeignKey(to='contenttypes.ContentType', null=True)), - ], - options={ - 'abstract': False, - }, - ), - migrations.CreateModel( - name='LocaforaOrderOverviewCommunity', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('signature', models.CharField(max_length=255, db_index=True)), - ('config', core.utils.configuration.ConfigurationField()), - ('kernel_id', models.PositiveIntegerField(blank=True, null=True)), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('completed_at', models.DateTimeField(blank=True, null=True)), - ('purge_at', models.DateTimeField(blank=True, null=True)), - ('views', models.IntegerField(default=0)), - ('state', models.CharField(max_length=255, choices=[('Aborted', 'Aborted'), ('Asynchronous', 'Asynchronous'), ('New', 'New'), ('Ready', 'Ready'), ('Synchronous', 'Synchronous')], default='New')), - ('current_growth', models.ForeignKey(to='core.Growth', null=True)), - ('kernel_type', models.ForeignKey(null=True, blank=True, to='contenttypes.ContentType')), - ], - options={ - 'verbose_name': 'Locafora order overview community', - 'verbose_name_plural': 'Locafora order overview communities', - }, - bases=(models.Model, core.processors.mixins.ProcessorMixin), - ), - migrations.CreateModel( - name='LocaforaOrders', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('uri', models.CharField(max_length=255, db_index=True, default=None)), - ('config', core.utils.configuration.ConfigurationField()), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(blank=True, null=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('data_hash', models.CharField(max_length=255, db_index=True, default='')), - ('request', json_field.fields.JSONField(help_text='Enter a valid JSON object', default=None)), - ('head', json_field.fields.JSONField(help_text='Enter a valid JSON object', default=None)), - ('body', models.TextField(default=None)), - ('status', models.PositiveIntegerField(default=None)), - ('retainer_type', models.ForeignKey(to='contenttypes.ContentType', null=True)), - ], - options={ - 'verbose_name': 'Locafora order', - 'verbose_name_plural': 'Locafora orders', - }, - ), - ] diff --git a/src/nautilus/migrations/0002_auto_20171119_1315.py b/src/nautilus/migrations/0002_auto_20171119_1315.py deleted file mode 100644 index 0a5902b8..00000000 --- a/src/nautilus/migrations/0002_auto_20171119_1315.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.5 on 2017-11-19 13:15 -from __future__ import unicode_literals - -from django.db import migrations, models -import json_field.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('nautilus', '0001_initial'), - ] - - operations = [ - migrations.AlterField( - model_name='locaforalogin', - name='body', - field=models.TextField(blank=True, default=None, null=True), - ), - migrations.AlterField( - model_name='locaforalogin', - name='head', - field=json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='locaforalogin', - name='status', - field=models.PositiveIntegerField(default=0), - ), - migrations.AlterField( - model_name='locaforaorders', - name='body', - field=models.TextField(blank=True, default=None, null=True), - ), - migrations.AlterField( - model_name='locaforaorders', - name='head', - field=json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='locaforaorders', - name='status', - field=models.PositiveIntegerField(default=0), - ), - ] diff --git a/src/nautilus/migrations/0003_auto_20181202_1424.py b/src/nautilus/migrations/0003_auto_20181202_1424.py deleted file mode 100644 index 311a321d..00000000 --- a/src/nautilus/migrations/0003_auto_20181202_1424.py +++ /dev/null @@ -1,36 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.15 on 2018-12-02 14:24 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('nautilus', '0002_auto_20171119_1315'), - ] - - operations = [ - migrations.AlterField( - model_name='locaforalogin', - name='retainer_id', - field=models.PositiveIntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name='locaforalogin', - name='retainer_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), - ), - migrations.AlterField( - model_name='locaforaorders', - name='retainer_id', - field=models.PositiveIntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name='locaforaorders', - name='retainer_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), - ), - ] diff --git a/src/nautilus/migrations/0004_auto_20190402_0928.py b/src/nautilus/migrations/0004_auto_20190402_0928.py deleted file mode 100644 index d0c83717..00000000 --- a/src/nautilus/migrations/0004_auto_20190402_0928.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.20 on 2019-04-02 09:28 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('nautilus', '0003_auto_20181202_1424'), - ] - - operations = [ - migrations.RemoveField( - model_name='locaforaorderoverviewcommunity', - name='views', - ), - migrations.AlterField( - model_name='locaforaorderoverviewcommunity', - name='state', - field=models.CharField(choices=[('Aborted', 'Aborted'), ('Asynchronous', 'Asynchronous'), ('New', 'New'), ('Ready', 'Ready'), ('Retry', 'Retry'), ('Synchronous', 'Synchronous')], default='New', max_length=255), - ), - ] diff --git a/src/nautilus/migrations/0005_alter_data_hash.py b/src/nautilus/migrations/0005_alter_data_hash.py deleted file mode 100644 index 8fc56c48..00000000 --- a/src/nautilus/migrations/0005_alter_data_hash.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.29 on 2020-11-14 15:01 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('nautilus', '0004_auto_20190402_0928'), - ] - - operations = [ - migrations.AlterField( - model_name='locaforalogin', - name='data_hash', - field=models.CharField(blank=True, db_index=True, default='', max_length=255), - ), - migrations.AlterField( - model_name='locaforaorders', - name='data_hash', - field=models.CharField(blank=True, db_index=True, default='', max_length=255), - ), - ] diff --git a/src/nautilus/migrations/0006_on_delete.py b/src/nautilus/migrations/0006_on_delete.py deleted file mode 100644 index ab135796..00000000 --- a/src/nautilus/migrations/0006_on_delete.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.29 on 2020-11-20 17:29 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('nautilus', '0005_alter_data_hash'), - ] - - operations = [ - migrations.AlterField( - model_name='locaforaorderoverviewcommunity', - name='current_growth', - field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='core.Growth'), - ), - migrations.AlterField( - model_name='locaforaorderoverviewcommunity', - name='kernel_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='contenttypes.ContentType'), - ), - ] diff --git a/src/online_discourse/elastic.py b/src/online_discourse/elastic.py index 91fbe76b..a0ea27c6 100644 --- a/src/online_discourse/elastic.py +++ b/src/online_discourse/elastic.py @@ -7,7 +7,7 @@ def get_es_client(silent=False): """ Returns the elasticsearch client which uses the configuration file """ - es_client = Elasticsearch(["elastic"], + es_client = Elasticsearch([settings.ELASTIC_SEARCH_HOST], scheme='http', port=9200, http_compress=True) diff --git a/src/open_data/migrations/0001_initial.py b/src/open_data/migrations/0001_initial.py deleted file mode 100644 index bf19c246..00000000 --- a/src/open_data/migrations/0001_initial.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models -import core.processors.mixins -import core.utils.configuration - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('core', '0017_auto_20170315_1639'), - ] - - operations = [ - migrations.CreateModel( - name='DutchParliamentarySeatingTranscriptsCommunity', - fields=[ - ('id', models.AutoField(verbose_name='ID', auto_created=True, primary_key=True, serialize=False)), - ('signature', models.CharField(db_index=True, max_length=255)), - ('config', core.utils.configuration.ConfigurationField()), - ('kernel_id', models.PositiveIntegerField(null=True, blank=True)), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('completed_at', models.DateTimeField(null=True, blank=True)), - ('purge_at', models.DateTimeField(null=True, blank=True)), - ('views', models.IntegerField(default=0)), - ('state', models.CharField(choices=[('Aborted', 'Aborted'), ('Asynchronous', 'Asynchronous'), ('New', 'New'), ('Ready', 'Ready'), ('Synchronous', 'Synchronous')], max_length=255, default='New')), - ('current_growth', models.ForeignKey(null=True, to='core.Growth')), - ('kernel_type', models.ForeignKey(null=True, to='contenttypes.ContentType', blank=True)), - ], - options={ - 'get_latest_by': 'created_at', - 'abstract': False, - }, - bases=(models.Model, core.processors.mixins.ProcessorMixin), - ), - ] diff --git a/src/open_data/migrations/0002_auto_20170320_1518.py b/src/open_data/migrations/0002_auto_20170320_1518.py deleted file mode 100644 index 4cc8db90..00000000 --- a/src/open_data/migrations/0002_auto_20170320_1518.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('open_data', '0001_initial'), - ] - - operations = [ - migrations.AlterModelOptions( - name='dutchparliamentaryseatingtranscriptscommunity', - options={'verbose_name_plural': 'Dutch parliamentary seating transcripts', 'verbose_name': 'Dutch parliamentary seating transcripts'}, - ), - ] diff --git a/src/open_data/migrations/0003_officialannouncementsdocumentnetherlands_officialannouncementsnetherlands.py b/src/open_data/migrations/0003_officialannouncementsdocumentnetherlands_officialannouncementsnetherlands.py deleted file mode 100644 index 3615943a..00000000 --- a/src/open_data/migrations/0003_officialannouncementsdocumentnetherlands_officialannouncementsnetherlands.py +++ /dev/null @@ -1,63 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.7 on 2018-08-18 18:54 -from __future__ import unicode_literals - -import core.utils.configuration -from django.db import migrations, models -import django.db.models.deletion -import json_field.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('open_data', '0002_auto_20170320_1518'), - ] - - operations = [ - migrations.CreateModel( - name='OfficialAnnouncementsDocumentNetherlands', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('uri', models.CharField(db_index=True, default=None, max_length=255)), - ('status', models.PositiveIntegerField(default=0)), - ('config', core.utils.configuration.ConfigurationField()), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(blank=True, null=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('data_hash', models.CharField(db_index=True, default='', max_length=255)), - ('request', json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object')), - ('head', json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object')), - ('body', models.TextField(blank=True, default=None, null=True)), - ('retainer_type', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')), - ], - options={ - 'verbose_name': 'Official announcements document (Dutch)', - 'verbose_name_plural': 'Official announcements document (Dutch)', - }, - ), - migrations.CreateModel( - name='OfficialAnnouncementsNetherlands', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('uri', models.CharField(db_index=True, default=None, max_length=255)), - ('status', models.PositiveIntegerField(default=0)), - ('config', core.utils.configuration.ConfigurationField()), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(blank=True, null=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('data_hash', models.CharField(db_index=True, default='', max_length=255)), - ('request', json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object')), - ('head', json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object')), - ('body', models.TextField(blank=True, default=None, null=True)), - ('retainer_type', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')), - ], - options={ - 'verbose_name': 'Official announcements (Dutch)', - 'verbose_name_plural': 'Official announcements (Dutch)', - }, - ), - ] diff --git a/src/open_data/migrations/0004_auto_20181202_1424.py b/src/open_data/migrations/0004_auto_20181202_1424.py deleted file mode 100644 index 0f127141..00000000 --- a/src/open_data/migrations/0004_auto_20181202_1424.py +++ /dev/null @@ -1,36 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.15 on 2018-12-02 14:24 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('open_data', '0003_officialannouncementsdocumentnetherlands_officialannouncementsnetherlands'), - ] - - operations = [ - migrations.AlterField( - model_name='officialannouncementsdocumentnetherlands', - name='retainer_id', - field=models.PositiveIntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name='officialannouncementsdocumentnetherlands', - name='retainer_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), - ), - migrations.AlterField( - model_name='officialannouncementsnetherlands', - name='retainer_id', - field=models.PositiveIntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name='officialannouncementsnetherlands', - name='retainer_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), - ), - ] diff --git a/src/open_data/migrations/0005_auto_20190402_0928.py b/src/open_data/migrations/0005_auto_20190402_0928.py deleted file mode 100644 index e6cb01ae..00000000 --- a/src/open_data/migrations/0005_auto_20190402_0928.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.20 on 2019-04-02 09:28 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('open_data', '0004_auto_20181202_1424'), - ] - - operations = [ - migrations.RemoveField( - model_name='dutchparliamentaryseatingtranscriptscommunity', - name='views', - ), - migrations.AlterField( - model_name='dutchparliamentaryseatingtranscriptscommunity', - name='state', - field=models.CharField(choices=[('Aborted', 'Aborted'), ('Asynchronous', 'Asynchronous'), ('New', 'New'), ('Ready', 'Ready'), ('Retry', 'Retry'), ('Synchronous', 'Synchronous')], default='New', max_length=255), - ), - ] diff --git a/src/open_data/migrations/0006_alter_data_hash.py b/src/open_data/migrations/0006_alter_data_hash.py deleted file mode 100644 index 5e0057c9..00000000 --- a/src/open_data/migrations/0006_alter_data_hash.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.29 on 2020-11-14 15:01 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('open_data', '0005_auto_20190402_0928'), - ] - - operations = [ - migrations.AlterField( - model_name='officialannouncementsdocumentnetherlands', - name='data_hash', - field=models.CharField(blank=True, db_index=True, default='', max_length=255), - ), - migrations.AlterField( - model_name='officialannouncementsnetherlands', - name='data_hash', - field=models.CharField(blank=True, db_index=True, default='', max_length=255), - ), - ] diff --git a/src/open_data/migrations/0007_on_delete.py b/src/open_data/migrations/0007_on_delete.py deleted file mode 100644 index d27346d4..00000000 --- a/src/open_data/migrations/0007_on_delete.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.29 on 2020-11-20 17:29 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('open_data', '0006_alter_data_hash'), - ] - - operations = [ - migrations.AlterField( - model_name='dutchparliamentaryseatingtranscriptscommunity', - name='current_growth', - field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='core.Growth'), - ), - migrations.AlterField( - model_name='dutchparliamentaryseatingtranscriptscommunity', - name='kernel_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='contenttypes.ContentType'), - ), - ] diff --git a/src/package.json b/src/package.json index 5c8d6cfc..b854cf79 100644 --- a/src/package.json +++ b/src/package.json @@ -1,6 +1,6 @@ { "name": "datascope", - "version": "0.17.1", + "version": "0.17.4", "data": { "digital-ocean": { "data/online_discourse/dumps": "online_discourse/dumps" diff --git a/src/sources/migrations/0001_initial.py b/src/sources/migrations/0001_initial.py deleted file mode 100644 index df83c0cb..00000000 --- a/src/sources/migrations/0001_initial.py +++ /dev/null @@ -1,100 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import json_field as jsonfield -import core.utils.configuration - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ] - - operations = [ - migrations.CreateModel( - name='ActeursSpotProfile', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('uri', models.CharField(default=None, max_length=255, db_index=True)), - ('data_hash', models.CharField(default='', max_length=255, db_index=True)), - ('config', core.utils.configuration.ConfigurationField(default={})), - ('request', jsonfield.fields.JSONField(default=None)), - ('head', jsonfield.fields.JSONField(default=None)), - ('body', models.TextField(default=None)), - ('status', models.PositiveIntegerField(default=None)), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(null=True, blank=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('retainer_type', models.ForeignKey(to='contenttypes.ContentType', null=True)), - ], - options={ - 'abstract': False, - }, - ), - migrations.CreateModel( - name='BenfCastingProfile', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('uri', models.CharField(default=None, max_length=255, db_index=True)), - ('data_hash', models.CharField(default='', max_length=255, db_index=True)), - ('config', core.utils.configuration.ConfigurationField(default={})), - ('request', jsonfield.fields.JSONField(default=None)), - ('head', jsonfield.fields.JSONField(default=None)), - ('body', models.TextField(default=None)), - ('status', models.PositiveIntegerField(default=None)), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(null=True, blank=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('retainer_type', models.ForeignKey(to='contenttypes.ContentType', null=True)), - ], - options={ - 'abstract': False, - }, - ), - migrations.CreateModel( - name='MoederAnneCastingSearch', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('uri', models.CharField(default=None, max_length=255, db_index=True)), - ('data_hash', models.CharField(default='', max_length=255, db_index=True)), - ('config', core.utils.configuration.ConfigurationField(default={})), - ('request', jsonfield.fields.JSONField(default=None)), - ('head', jsonfield.fields.JSONField(default=None)), - ('body', models.TextField(default=None)), - ('status', models.PositiveIntegerField(default=None)), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(null=True, blank=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('retainer_type', models.ForeignKey(to='contenttypes.ContentType', null=True)), - ], - options={ - 'abstract': False, - }, - ), - migrations.CreateModel( - name='MoederAnneCastingSession', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('uri', models.CharField(default=None, max_length=255, db_index=True)), - ('data_hash', models.CharField(default='', max_length=255, db_index=True)), - ('config', core.utils.configuration.ConfigurationField(default={})), - ('request', jsonfield.fields.JSONField(default=None)), - ('head', jsonfield.fields.JSONField(default=None)), - ('body', models.TextField(default=None)), - ('status', models.PositiveIntegerField(default=None)), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(null=True, blank=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('retainer_type', models.ForeignKey(to='contenttypes.ContentType', null=True)), - ], - options={ - 'abstract': False, - }, - ), - ] diff --git a/src/sources/migrations/0002_wikipediasearch.py b/src/sources/migrations/0002_wikipediasearch.py deleted file mode 100644 index 86e9cc36..00000000 --- a/src/sources/migrations/0002_wikipediasearch.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import json_field as jsonfield -import core.utils.configuration - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('sources', '0001_initial'), - ] - - operations = [ - migrations.CreateModel( - name='WikipediaSearch', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('uri', models.CharField(default=None, max_length=255, db_index=True)), - ('data_hash', models.CharField(default='', max_length=255, db_index=True)), - ('config', core.utils.configuration.ConfigurationField(default={})), - ('request', jsonfield.fields.JSONField(default=None)), - ('head', jsonfield.fields.JSONField(default=None)), - ('body', models.TextField(default=None)), - ('status', models.PositiveIntegerField(default=None)), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(null=True, blank=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('retainer_type', models.ForeignKey(to='contenttypes.ContentType', null=True)), - ], - options={ - 'abstract': False, - }, - ), - ] diff --git a/src/sources/migrations/0003_wikipediarecentchanges.py b/src/sources/migrations/0003_wikipediarecentchanges.py deleted file mode 100644 index dbb139d2..00000000 --- a/src/sources/migrations/0003_wikipediarecentchanges.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import json_field as jsonfield -import core.utils.configuration - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('sources', '0002_wikipediasearch'), - ] - - operations = [ - migrations.CreateModel( - name='WikipediaRecentChanges', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('uri', models.CharField(default=None, max_length=255, db_index=True)), - ('data_hash', models.CharField(default='', max_length=255, db_index=True)), - ('config', core.utils.configuration.ConfigurationField(default={})), - ('request', jsonfield.fields.JSONField(default=None)), - ('head', jsonfield.fields.JSONField(default=None)), - ('body', models.TextField(default=None)), - ('status', models.PositiveIntegerField(default=None)), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(null=True, blank=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('retainer_type', models.ForeignKey(to='contenttypes.ContentType', null=True)), - ], - options={ - 'abstract': False, - }, - ), - ] diff --git a/src/sources/migrations/0004_wikipedialistpages.py b/src/sources/migrations/0004_wikipedialistpages.py deleted file mode 100644 index c0a91556..00000000 --- a/src/sources/migrations/0004_wikipedialistpages.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import json_field as jsonfield -import core.utils.configuration -import sources.models.wikipedia.mixins - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('sources', '0003_wikipediarecentchanges'), - ] - - operations = [ - migrations.CreateModel( - name='WikipediaListPages', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('uri', models.CharField(default=None, max_length=255, db_index=True)), - ('data_hash', models.CharField(default='', max_length=255, db_index=True)), - ('config', core.utils.configuration.ConfigurationField(default={})), - ('request', jsonfield.fields.JSONField(default=None)), - ('head', jsonfield.fields.JSONField(default=None)), - ('body', models.TextField(default=None)), - ('status', models.PositiveIntegerField(default=None)), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(null=True, blank=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('retainer_type', models.ForeignKey(to='contenttypes.ContentType', null=True)), - ], - options={ - 'abstract': False, - }, - bases=(models.Model, sources.models.wikipedia.mixins.WikipediaImagesMixin), - ), - ] diff --git a/src/sources/migrations/0005_wikipediatranslate.py b/src/sources/migrations/0005_wikipediatranslate.py deleted file mode 100644 index 894835f8..00000000 --- a/src/sources/migrations/0005_wikipediatranslate.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import json_field as jsonfield -import core.utils.configuration - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('sources', '0004_wikipedialistpages'), - ] - - operations = [ - migrations.CreateModel( - name='WikipediaTranslate', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('uri', models.CharField(default=None, max_length=255, db_index=True)), - ('data_hash', models.CharField(default='', max_length=255, db_index=True)), - ('config', core.utils.configuration.ConfigurationField(default={})), - ('request', jsonfield.fields.JSONField(default=None)), - ('head', jsonfield.fields.JSONField(default=None)), - ('body', models.TextField(default=None)), - ('status', models.PositiveIntegerField(default=None)), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(null=True, blank=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('retainer_type', models.ForeignKey(to='contenttypes.ContentType', null=True)), - ], - options={ - 'abstract': False, - }, - ), - ] diff --git a/src/sources/migrations/0006_googleimage.py b/src/sources/migrations/0006_googleimage.py deleted file mode 100644 index b5730af8..00000000 --- a/src/sources/migrations/0006_googleimage.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import json_field as jsonfield -import core.utils.configuration - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('sources', '0005_wikipediatranslate'), - ] - - operations = [ - migrations.CreateModel( - name='GoogleImage', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('uri', models.CharField(default=None, max_length=255, db_index=True)), - ('data_hash', models.CharField(default='', max_length=255, db_index=True)), - ('config', core.utils.configuration.ConfigurationField(default={})), - ('request', jsonfield.fields.JSONField(default=None)), - ('head', jsonfield.fields.JSONField(default=None)), - ('body', models.TextField(default=None)), - ('status', models.PositiveIntegerField(default=None)), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(null=True, blank=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('retainer_type', models.ForeignKey(to='contenttypes.ContentType', null=True)), - ], - options={ - 'abstract': False, - }, - ), - ] diff --git a/src/sources/migrations/0007_googletranslate.py b/src/sources/migrations/0007_googletranslate.py deleted file mode 100644 index c287939b..00000000 --- a/src/sources/migrations/0007_googletranslate.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import json_field as jsonfield -import core.utils.configuration - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('sources', '0006_googleimage'), - ] - - operations = [ - migrations.CreateModel( - name='GoogleTranslate', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('uri', models.CharField(default=None, max_length=255, db_index=True)), - ('data_hash', models.CharField(default='', max_length=255, db_index=True)), - ('config', core.utils.configuration.ConfigurationField(default={})), - ('request', jsonfield.fields.JSONField(default=None)), - ('head', jsonfield.fields.JSONField(default=None)), - ('body', models.TextField(default=None)), - ('status', models.PositiveIntegerField(default=None)), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(null=True, blank=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('retainer_type', models.ForeignKey(to='contenttypes.ContentType', null=True)), - ], - options={ - 'abstract': False, - }, - ), - ] diff --git a/src/sources/migrations/0008_imagedownload.py b/src/sources/migrations/0008_imagedownload.py deleted file mode 100644 index 5a22dcd6..00000000 --- a/src/sources/migrations/0008_imagedownload.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import json_field as jsonfield -import core.utils.configuration - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('sources', '0007_googletranslate'), - ] - - operations = [ - migrations.CreateModel( - name='ImageDownload', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('uri', models.CharField(default=None, max_length=255, db_index=True)), - ('data_hash', models.CharField(default='', max_length=255, db_index=True)), - ('config', core.utils.configuration.ConfigurationField(default={})), - ('request', jsonfield.fields.JSONField(default=None)), - ('head', jsonfield.fields.JSONField(default=None)), - ('body', models.TextField(default=None)), - ('status', models.PositiveIntegerField(default=None)), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(null=True, blank=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('retainer_type', models.ForeignKey(to='contenttypes.ContentType', null=True)), - ], - options={ - 'abstract': False, - }, - ), - ] diff --git a/src/sources/migrations/0009_auto_20150828_1659.py b/src/sources/migrations/0009_auto_20150828_1659.py deleted file mode 100644 index ae75cd18..00000000 --- a/src/sources/migrations/0009_auto_20150828_1659.py +++ /dev/null @@ -1,125 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import json_field.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('sources', '0008_imagedownload'), - ] - - operations = [ - migrations.AlterField( - model_name='acteursspotprofile', - name='head', - field=json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='acteursspotprofile', - name='request', - field=json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='benfcastingprofile', - name='head', - field=json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='benfcastingprofile', - name='request', - field=json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='googleimage', - name='head', - field=json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='googleimage', - name='request', - field=json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='googletranslate', - name='head', - field=json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='googletranslate', - name='request', - field=json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='imagedownload', - name='head', - field=json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='imagedownload', - name='request', - field=json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='moederannecastingsearch', - name='head', - field=json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='moederannecastingsearch', - name='request', - field=json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='moederannecastingsession', - name='head', - field=json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='moederannecastingsession', - name='request', - field=json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='wikipedialistpages', - name='head', - field=json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='wikipedialistpages', - name='request', - field=json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='wikipediarecentchanges', - name='head', - field=json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='wikipediarecentchanges', - name='request', - field=json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='wikipediasearch', - name='head', - field=json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='wikipediasearch', - name='request', - field=json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='wikipediatranslate', - name='head', - field=json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='wikipediatranslate', - name='request', - field=json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object'), - ), - ] diff --git a/src/sources/migrations/0010_auto_20160225_2307.py b/src/sources/migrations/0010_auto_20160225_2307.py deleted file mode 100644 index 0010ad6d..00000000 --- a/src/sources/migrations/0010_auto_20160225_2307.py +++ /dev/null @@ -1,70 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import core.utils.configuration - - -class Migration(migrations.Migration): - - dependencies = [ - ('sources', '0009_auto_20150828_1659'), - ] - - operations = [ - migrations.AlterField( - model_name='acteursspotprofile', - name='config', - field=core.utils.configuration.ConfigurationField(), - ), - migrations.AlterField( - model_name='benfcastingprofile', - name='config', - field=core.utils.configuration.ConfigurationField(), - ), - migrations.AlterField( - model_name='googleimage', - name='config', - field=core.utils.configuration.ConfigurationField(), - ), - migrations.AlterField( - model_name='googletranslate', - name='config', - field=core.utils.configuration.ConfigurationField(), - ), - migrations.AlterField( - model_name='imagedownload', - name='config', - field=core.utils.configuration.ConfigurationField(), - ), - migrations.AlterField( - model_name='moederannecastingsearch', - name='config', - field=core.utils.configuration.ConfigurationField(), - ), - migrations.AlterField( - model_name='moederannecastingsession', - name='config', - field=core.utils.configuration.ConfigurationField(), - ), - migrations.AlterField( - model_name='wikipedialistpages', - name='config', - field=core.utils.configuration.ConfigurationField(), - ), - migrations.AlterField( - model_name='wikipediarecentchanges', - name='config', - field=core.utils.configuration.ConfigurationField(), - ), - migrations.AlterField( - model_name='wikipediasearch', - name='config', - field=core.utils.configuration.ConfigurationField(), - ), - migrations.AlterField( - model_name='wikipediatranslate', - name='config', - field=core.utils.configuration.ConfigurationField(), - ), - ] diff --git a/src/sources/migrations/0011_wikidataitems.py b/src/sources/migrations/0011_wikidataitems.py deleted file mode 100644 index f80c711b..00000000 --- a/src/sources/migrations/0011_wikidataitems.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import core.utils.configuration -import json_field.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('sources', '0010_auto_20160225_2307'), - ] - - operations = [ - migrations.CreateModel( - name='WikiDataItems', - fields=[ - ('id', models.AutoField(primary_key=True, auto_created=True, verbose_name='ID', serialize=False)), - ('uri', models.CharField(db_index=True, max_length=255, default=None)), - ('data_hash', models.CharField(db_index=True, max_length=255, default='')), - ('config', core.utils.configuration.ConfigurationField()), - ('request', json_field.fields.JSONField(help_text='Enter a valid JSON object', default=None)), - ('head', json_field.fields.JSONField(help_text='Enter a valid JSON object', default=None)), - ('body', models.TextField(default=None)), - ('status', models.PositiveIntegerField(default=None)), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(null=True, blank=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('retainer_type', models.ForeignKey(null=True, to='contenttypes.ContentType')), - ], - options={ - 'abstract': False, - }, - ), - ] diff --git a/src/sources/migrations/0012_auto_20160228_2019.py b/src/sources/migrations/0012_auto_20160228_2019.py deleted file mode 100644 index b7239d39..00000000 --- a/src/sources/migrations/0012_auto_20160228_2019.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('sources', '0011_wikidataitems'), - ] - - operations = [ - migrations.AlterModelOptions( - name='wikidataitems', - options={'verbose_name': 'Wikidata items', 'verbose_name_plural': 'Wikidata items'}, - ), - migrations.AlterModelOptions( - name='wikipedialistpages', - options={'verbose_name': 'Wikipedia list pages', 'verbose_name_plural': 'Wikipedia list pages'}, - ), - migrations.AlterModelOptions( - name='wikipediarecentchanges', - options={'verbose_name': 'Wikipedia recent changes', 'verbose_name_plural': 'Wikipedia recent changes'}, - ), - ] diff --git a/src/sources/migrations/0013_imagefeatures.py b/src/sources/migrations/0013_imagefeatures.py deleted file mode 100644 index f5cd6390..00000000 --- a/src/sources/migrations/0013_imagefeatures.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import core.utils.configuration -import json_field.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('sources', '0012_auto_20160228_2019'), - ] - - operations = [ - migrations.CreateModel( - name='ImageFeatures', - fields=[ - ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)), - ('uri', models.CharField(db_index=True, default=None, max_length=255)), - ('data_hash', models.CharField(db_index=True, default='', max_length=255)), - ('config', core.utils.configuration.ConfigurationField()), - ('request', json_field.fields.JSONField(help_text='Enter a valid JSON object', default=None)), - ('head', json_field.fields.JSONField(help_text='Enter a valid JSON object', default=None)), - ('body', models.TextField(default=None)), - ('status', models.PositiveIntegerField(default=None)), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(blank=True, null=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('retainer_type', models.ForeignKey(to='contenttypes.ContentType', null=True)), - ], - options={ - 'verbose_name': 'Image features', - 'verbose_name_plural': 'Image features', - }, - ), - ] diff --git a/src/sources/migrations/0014_wikipediacategories_wikipediacategorymembers.py b/src/sources/migrations/0014_wikipediacategories_wikipediacategorymembers.py deleted file mode 100644 index a0eee8c9..00000000 --- a/src/sources/migrations/0014_wikipediacategories_wikipediacategorymembers.py +++ /dev/null @@ -1,59 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models -import json_field.fields -import core.utils.configuration - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('sources', '0013_imagefeatures'), - ] - - operations = [ - migrations.CreateModel( - name='WikipediaCategories', - fields=[ - ('id', models.AutoField(verbose_name='ID', auto_created=True, primary_key=True, serialize=False)), - ('uri', models.CharField(db_index=True, default=None, max_length=255)), - ('data_hash', models.CharField(db_index=True, default='', max_length=255)), - ('config', core.utils.configuration.ConfigurationField()), - ('request', json_field.fields.JSONField(help_text='Enter a valid JSON object', default=None)), - ('head', json_field.fields.JSONField(help_text='Enter a valid JSON object', default=None)), - ('body', models.TextField(default=None)), - ('status', models.PositiveIntegerField(default=None)), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(blank=True, null=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('retainer_type', models.ForeignKey(to='contenttypes.ContentType', null=True)), - ], - options={ - 'abstract': False, - }, - ), - migrations.CreateModel( - name='WikipediaCategoryMembers', - fields=[ - ('id', models.AutoField(verbose_name='ID', auto_created=True, primary_key=True, serialize=False)), - ('uri', models.CharField(db_index=True, default=None, max_length=255)), - ('data_hash', models.CharField(db_index=True, default='', max_length=255)), - ('config', core.utils.configuration.ConfigurationField()), - ('request', json_field.fields.JSONField(help_text='Enter a valid JSON object', default=None)), - ('head', json_field.fields.JSONField(help_text='Enter a valid JSON object', default=None)), - ('body', models.TextField(default=None)), - ('status', models.PositiveIntegerField(default=None)), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(blank=True, null=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('retainer_type', models.ForeignKey(to='contenttypes.ContentType', null=True)), - ], - options={ - 'abstract': False, - }, - ), - ] diff --git a/src/sources/migrations/0015_wikipediapageviewdetails.py b/src/sources/migrations/0015_wikipediapageviewdetails.py deleted file mode 100644 index a79dfed8..00000000 --- a/src/sources/migrations/0015_wikipediapageviewdetails.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models -import core.utils.configuration -import json_field.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('sources', '0014_wikipediacategories_wikipediacategorymembers'), - ] - - operations = [ - migrations.CreateModel( - name='WikipediaPageviewDetails', - fields=[ - ('id', models.AutoField(verbose_name='ID', auto_created=True, primary_key=True, serialize=False)), - ('uri', models.CharField(db_index=True, default=None, max_length=255)), - ('data_hash', models.CharField(db_index=True, default='', max_length=255)), - ('config', core.utils.configuration.ConfigurationField()), - ('request', json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object')), - ('head', json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object')), - ('body', models.TextField(default=None)), - ('status', models.PositiveIntegerField(default=None)), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(null=True, blank=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('retainer_type', models.ForeignKey(to='contenttypes.ContentType', null=True)), - ], - options={ - 'abstract': False, - }, - ), - ] diff --git a/src/sources/migrations/0016_wikipediatransclusions.py b/src/sources/migrations/0016_wikipediatransclusions.py deleted file mode 100644 index cc6c4de4..00000000 --- a/src/sources/migrations/0016_wikipediatransclusions.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models -import core.utils.configuration -import json_field.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('sources', '0015_wikipediapageviewdetails'), - ] - - operations = [ - migrations.CreateModel( - name='WikipediaTransclusions', - fields=[ - ('id', models.AutoField(primary_key=True, serialize=False, auto_created=True, verbose_name='ID')), - ('uri', models.CharField(db_index=True, default=None, max_length=255)), - ('data_hash', models.CharField(db_index=True, default='', max_length=255)), - ('config', core.utils.configuration.ConfigurationField()), - ('request', json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object')), - ('head', json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object')), - ('body', models.TextField(default=None)), - ('status', models.PositiveIntegerField(default=None)), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(null=True, blank=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('retainer_type', models.ForeignKey(null=True, to='contenttypes.ContentType')), - ], - options={ - 'abstract': False, - 'verbose_name': 'Wikipedia transclusions', - 'verbose_name_plural': 'Wikipedia transclusions' - }, - ), - ] diff --git a/src/sources/migrations/0017_wikipediarevisions.py b/src/sources/migrations/0017_wikipediarevisions.py deleted file mode 100644 index 3e6e401e..00000000 --- a/src/sources/migrations/0017_wikipediarevisions.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models -import core.utils.configuration -import json_field.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('sources', '0016_wikipediatransclusions'), - ] - - operations = [ - migrations.CreateModel( - name='WikipediaRevisions', - fields=[ - ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True, serialize=False)), - ('uri', models.CharField(default=None, max_length=255, db_index=True)), - ('data_hash', models.CharField(default='', max_length=255, db_index=True)), - ('config', core.utils.configuration.ConfigurationField()), - ('request', json_field.fields.JSONField(help_text='Enter a valid JSON object', default=None)), - ('head', json_field.fields.JSONField(help_text='Enter a valid JSON object', default=None)), - ('body', models.TextField(default=None)), - ('status', models.PositiveIntegerField(default=None)), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(blank=True, null=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('retainer_type', models.ForeignKey(to='contenttypes.ContentType', null=True)), - ], - options={ - 'verbose_name': 'Wikipedia revisions', - 'verbose_name_plural': 'Wikipedia revisions', - }, - ), - ] diff --git a/src/sources/migrations/0018_wikipediaedit_wikipedialogin_wikipediatoken.py b/src/sources/migrations/0018_wikipediaedit_wikipedialogin_wikipediatoken.py deleted file mode 100644 index 038beb91..00000000 --- a/src/sources/migrations/0018_wikipediaedit_wikipedialogin_wikipediatoken.py +++ /dev/null @@ -1,80 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models -import json_field.fields -import core.utils.configuration - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('sources', '0017_wikipediarevisions'), - ] - - operations = [ - migrations.CreateModel( - name='WikipediaEdit', - fields=[ - ('id', models.AutoField(serialize=False, auto_created=True, verbose_name='ID', primary_key=True)), - ('uri', models.CharField(max_length=255, db_index=True, default=None)), - ('config', core.utils.configuration.ConfigurationField()), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(null=True, blank=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('data_hash', models.CharField(max_length=255, db_index=True, default='')), - ('request', json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object')), - ('head', json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object')), - ('body', models.TextField(default=None)), - ('status', models.PositiveIntegerField(default=None)), - ('retainer_type', models.ForeignKey(to='contenttypes.ContentType', null=True)), - ], - options={ - 'abstract': False, - }, - ), - migrations.CreateModel( - name='WikipediaLogin', - fields=[ - ('id', models.AutoField(serialize=False, auto_created=True, verbose_name='ID', primary_key=True)), - ('uri', models.CharField(max_length=255, db_index=True, default=None)), - ('config', core.utils.configuration.ConfigurationField()), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(null=True, blank=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('data_hash', models.CharField(max_length=255, db_index=True, default='')), - ('request', json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object')), - ('head', json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object')), - ('body', models.TextField(default=None)), - ('status', models.PositiveIntegerField(default=None)), - ('retainer_type', models.ForeignKey(to='contenttypes.ContentType', null=True)), - ], - options={ - 'abstract': False, - }, - ), - migrations.CreateModel( - name='WikipediaToken', - fields=[ - ('id', models.AutoField(serialize=False, auto_created=True, verbose_name='ID', primary_key=True)), - ('uri', models.CharField(max_length=255, db_index=True, default=None)), - ('config', core.utils.configuration.ConfigurationField()), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(null=True, blank=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('data_hash', models.CharField(max_length=255, db_index=True, default='')), - ('request', json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object')), - ('head', json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object')), - ('body', models.TextField(default=None)), - ('status', models.PositiveIntegerField(default=None)), - ('retainer_type', models.ForeignKey(to='contenttypes.ContentType', null=True)), - ], - options={ - 'abstract': False, - }, - ), - ] diff --git a/src/sources/migrations/0019_officialannouncementsdocumentnetherlands_officialannouncementsnetherlands.py b/src/sources/migrations/0019_officialannouncementsdocumentnetherlands_officialannouncementsnetherlands.py deleted file mode 100644 index 078c62b4..00000000 --- a/src/sources/migrations/0019_officialannouncementsdocumentnetherlands_officialannouncementsnetherlands.py +++ /dev/null @@ -1,61 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models -import json_field.fields -import core.utils.configuration - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('sources', '0018_wikipediaedit_wikipedialogin_wikipediatoken'), - ] - - operations = [ - migrations.CreateModel( - name='OfficialAnnouncementsDocumentNetherlands', - fields=[ - ('id', models.AutoField(auto_created=True, verbose_name='ID', primary_key=True, serialize=False)), - ('uri', models.CharField(db_index=True, default=None, max_length=255)), - ('config', core.utils.configuration.ConfigurationField()), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(blank=True, null=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('data_hash', models.CharField(db_index=True, default='', max_length=255)), - ('request', json_field.fields.JSONField(help_text='Enter a valid JSON object', default=None)), - ('head', json_field.fields.JSONField(help_text='Enter a valid JSON object', default=None)), - ('body', models.TextField(default=None)), - ('status', models.PositiveIntegerField(default=None)), - ('retainer_type', models.ForeignKey(to='contenttypes.ContentType', null=True)), - ], - options={ - 'verbose_name_plural': 'Official announcements document (Dutch)', - 'verbose_name': 'Official announcements document (Dutch)', - }, - ), - migrations.CreateModel( - name='OfficialAnnouncementsNetherlands', - fields=[ - ('id', models.AutoField(auto_created=True, verbose_name='ID', primary_key=True, serialize=False)), - ('uri', models.CharField(db_index=True, default=None, max_length=255)), - ('config', core.utils.configuration.ConfigurationField()), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(blank=True, null=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('data_hash', models.CharField(db_index=True, default='', max_length=255)), - ('request', json_field.fields.JSONField(help_text='Enter a valid JSON object', default=None)), - ('head', json_field.fields.JSONField(help_text='Enter a valid JSON object', default=None)), - ('body', models.TextField(default=None)), - ('status', models.PositiveIntegerField(default=None)), - ('retainer_type', models.ForeignKey(to='contenttypes.ContentType', null=True)), - ], - options={ - 'verbose_name_plural': 'Official announcements (Dutch)', - 'verbose_name': 'Official announcements (Dutch)', - }, - ), - ] diff --git a/src/sources/migrations/0020_auto_20170428_1123.py b/src/sources/migrations/0020_auto_20170428_1123.py deleted file mode 100644 index 75c1b9ce..00000000 --- a/src/sources/migrations/0020_auto_20170428_1123.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('sources', '0019_officialannouncementsdocumentnetherlands_officialannouncementsnetherlands'), - ] - - operations = [ - migrations.AlterModelOptions( - name='wikipediacategories', - options={'verbose_name_plural': 'Wikipedia categories', 'verbose_name': 'Wikipedia category'}, - ), - migrations.AlterModelOptions( - name='wikipediacategorymembers', - options={'verbose_name_plural': 'Wikipedia category members', 'verbose_name': 'Wikipedia category members'}, - ), - migrations.AlterModelOptions( - name='wikipediasearch', - options={'verbose_name_plural': 'Wikipedia searches', 'verbose_name': 'Wikipedia search'}, - ), - ] diff --git a/src/sources/migrations/0021_kledinglisting.py b/src/sources/migrations/0021_kledinglisting.py deleted file mode 100644 index ffa6810e..00000000 --- a/src/sources/migrations/0021_kledinglisting.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models -import core.utils.configuration -import json_field.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('sources', '0020_auto_20170428_1123'), - ] - - operations = [ - migrations.CreateModel( - name='KledingListing', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, primary_key=True, auto_created=True)), - ('uri', models.CharField(max_length=255, db_index=True, default=None)), - ('config', core.utils.configuration.ConfigurationField()), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(blank=True, null=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('data_hash', models.CharField(max_length=255, db_index=True, default='')), - ('request', json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object')), - ('head', json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object')), - ('body', models.TextField(default=None)), - ('status', models.PositiveIntegerField(default=None)), - ('retainer_type', models.ForeignKey(to='contenttypes.ContentType', null=True)), - ], - options={ - 'abstract': False, - }, - ), - ] diff --git a/src/sources/migrations/0022_googletext.py b/src/sources/migrations/0022_googletext.py deleted file mode 100644 index 718d3d81..00000000 --- a/src/sources/migrations/0022_googletext.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models -import core.utils.configuration -import json_field.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('sources', '0021_kledinglisting'), - ] - - operations = [ - migrations.CreateModel( - name='GoogleText', - fields=[ - ('id', models.AutoField(auto_created=True, verbose_name='ID', primary_key=True, serialize=False)), - ('uri', models.CharField(max_length=255, default=None, db_index=True)), - ('config', core.utils.configuration.ConfigurationField()), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(null=True, blank=True)), - ('retainer_id', models.PositiveIntegerField(null=True)), - ('data_hash', models.CharField(max_length=255, default='', db_index=True)), - ('request', json_field.fields.JSONField(help_text='Enter a valid JSON object', default=None)), - ('head', json_field.fields.JSONField(help_text='Enter a valid JSON object', default=None)), - ('body', models.TextField(default=None)), - ('status', models.PositiveIntegerField(default=None)), - ('retainer_type', models.ForeignKey(to='contenttypes.ContentType', null=True)), - ], - options={ - 'abstract': False, - }, - ), - ] diff --git a/src/sources/migrations/0023_auto_20171003_1235.py b/src/sources/migrations/0023_auto_20171003_1235.py deleted file mode 100644 index 39fd4925..00000000 --- a/src/sources/migrations/0023_auto_20171003_1235.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.5 on 2017-10-03 12:35 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('sources', '0022_googletext'), - ] - - operations = [ - migrations.AlterModelOptions( - name='wikipediacategories', - options={}, - ), - ] diff --git a/src/sources/migrations/0024_auto_20171119_1315.py b/src/sources/migrations/0024_auto_20171119_1315.py deleted file mode 100644 index f9a05668..00000000 --- a/src/sources/migrations/0024_auto_20171119_1315.py +++ /dev/null @@ -1,395 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.5 on 2017-11-19 13:15 -from __future__ import unicode_literals - -from django.db import migrations, models -import json_field.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('sources', '0023_auto_20171003_1235'), - ] - - operations = [ - migrations.AlterModelOptions( - name='wikipediacategories', - options={'verbose_name': 'Wikipedia category', 'verbose_name_plural': 'Wikipedia categories'}, - ), - migrations.AlterField( - model_name='acteursspotprofile', - name='body', - field=models.TextField(blank=True, default=None, null=True), - ), - migrations.AlterField( - model_name='acteursspotprofile', - name='head', - field=json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='acteursspotprofile', - name='status', - field=models.PositiveIntegerField(default=0), - ), - migrations.AlterField( - model_name='benfcastingprofile', - name='body', - field=models.TextField(blank=True, default=None, null=True), - ), - migrations.AlterField( - model_name='benfcastingprofile', - name='head', - field=json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='benfcastingprofile', - name='status', - field=models.PositiveIntegerField(default=0), - ), - migrations.AlterField( - model_name='googleimage', - name='body', - field=models.TextField(blank=True, default=None, null=True), - ), - migrations.AlterField( - model_name='googleimage', - name='head', - field=json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='googleimage', - name='status', - field=models.PositiveIntegerField(default=0), - ), - migrations.AlterField( - model_name='googletext', - name='body', - field=models.TextField(blank=True, default=None, null=True), - ), - migrations.AlterField( - model_name='googletext', - name='head', - field=json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='googletext', - name='status', - field=models.PositiveIntegerField(default=0), - ), - migrations.AlterField( - model_name='googletranslate', - name='body', - field=models.TextField(blank=True, default=None, null=True), - ), - migrations.AlterField( - model_name='googletranslate', - name='head', - field=json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='googletranslate', - name='status', - field=models.PositiveIntegerField(default=0), - ), - migrations.AlterField( - model_name='imagedownload', - name='body', - field=models.TextField(blank=True, default=None, null=True), - ), - migrations.AlterField( - model_name='imagedownload', - name='head', - field=json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='imagedownload', - name='status', - field=models.PositiveIntegerField(default=0), - ), - migrations.AlterField( - model_name='imagefeatures', - name='body', - field=models.TextField(blank=True, default=None, null=True), - ), - migrations.AlterField( - model_name='imagefeatures', - name='head', - field=json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='imagefeatures', - name='status', - field=models.PositiveIntegerField(default=0), - ), - migrations.AlterField( - model_name='kledinglisting', - name='body', - field=models.TextField(blank=True, default=None, null=True), - ), - migrations.AlterField( - model_name='kledinglisting', - name='head', - field=json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='kledinglisting', - name='status', - field=models.PositiveIntegerField(default=0), - ), - migrations.AlterField( - model_name='moederannecastingsearch', - name='body', - field=models.TextField(blank=True, default=None, null=True), - ), - migrations.AlterField( - model_name='moederannecastingsearch', - name='head', - field=json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='moederannecastingsearch', - name='status', - field=models.PositiveIntegerField(default=0), - ), - migrations.AlterField( - model_name='moederannecastingsession', - name='body', - field=models.TextField(blank=True, default=None, null=True), - ), - migrations.AlterField( - model_name='moederannecastingsession', - name='head', - field=json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='moederannecastingsession', - name='status', - field=models.PositiveIntegerField(default=0), - ), - migrations.AlterField( - model_name='officialannouncementsdocumentnetherlands', - name='body', - field=models.TextField(blank=True, default=None, null=True), - ), - migrations.AlterField( - model_name='officialannouncementsdocumentnetherlands', - name='head', - field=json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='officialannouncementsdocumentnetherlands', - name='status', - field=models.PositiveIntegerField(default=0), - ), - migrations.AlterField( - model_name='officialannouncementsnetherlands', - name='body', - field=models.TextField(blank=True, default=None, null=True), - ), - migrations.AlterField( - model_name='officialannouncementsnetherlands', - name='head', - field=json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='officialannouncementsnetherlands', - name='status', - field=models.PositiveIntegerField(default=0), - ), - migrations.AlterField( - model_name='wikidataitems', - name='body', - field=models.TextField(blank=True, default=None, null=True), - ), - migrations.AlterField( - model_name='wikidataitems', - name='head', - field=json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='wikidataitems', - name='status', - field=models.PositiveIntegerField(default=0), - ), - migrations.AlterField( - model_name='wikipediacategories', - name='body', - field=models.TextField(blank=True, default=None, null=True), - ), - migrations.AlterField( - model_name='wikipediacategories', - name='head', - field=json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='wikipediacategories', - name='status', - field=models.PositiveIntegerField(default=0), - ), - migrations.AlterField( - model_name='wikipediacategorymembers', - name='body', - field=models.TextField(blank=True, default=None, null=True), - ), - migrations.AlterField( - model_name='wikipediacategorymembers', - name='head', - field=json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='wikipediacategorymembers', - name='status', - field=models.PositiveIntegerField(default=0), - ), - migrations.AlterField( - model_name='wikipediaedit', - name='body', - field=models.TextField(blank=True, default=None, null=True), - ), - migrations.AlterField( - model_name='wikipediaedit', - name='head', - field=json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='wikipediaedit', - name='status', - field=models.PositiveIntegerField(default=0), - ), - migrations.AlterField( - model_name='wikipedialistpages', - name='body', - field=models.TextField(blank=True, default=None, null=True), - ), - migrations.AlterField( - model_name='wikipedialistpages', - name='head', - field=json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='wikipedialistpages', - name='status', - field=models.PositiveIntegerField(default=0), - ), - migrations.AlterField( - model_name='wikipedialogin', - name='body', - field=models.TextField(blank=True, default=None, null=True), - ), - migrations.AlterField( - model_name='wikipedialogin', - name='head', - field=json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='wikipedialogin', - name='status', - field=models.PositiveIntegerField(default=0), - ), - migrations.AlterField( - model_name='wikipediapageviewdetails', - name='body', - field=models.TextField(blank=True, default=None, null=True), - ), - migrations.AlterField( - model_name='wikipediapageviewdetails', - name='head', - field=json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='wikipediapageviewdetails', - name='status', - field=models.PositiveIntegerField(default=0), - ), - migrations.AlterField( - model_name='wikipediarecentchanges', - name='body', - field=models.TextField(blank=True, default=None, null=True), - ), - migrations.AlterField( - model_name='wikipediarecentchanges', - name='head', - field=json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='wikipediarecentchanges', - name='status', - field=models.PositiveIntegerField(default=0), - ), - migrations.AlterField( - model_name='wikipediarevisions', - name='body', - field=models.TextField(blank=True, default=None, null=True), - ), - migrations.AlterField( - model_name='wikipediarevisions', - name='head', - field=json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='wikipediarevisions', - name='status', - field=models.PositiveIntegerField(default=0), - ), - migrations.AlterField( - model_name='wikipediasearch', - name='body', - field=models.TextField(blank=True, default=None, null=True), - ), - migrations.AlterField( - model_name='wikipediasearch', - name='head', - field=json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='wikipediasearch', - name='status', - field=models.PositiveIntegerField(default=0), - ), - migrations.AlterField( - model_name='wikipediatoken', - name='body', - field=models.TextField(blank=True, default=None, null=True), - ), - migrations.AlterField( - model_name='wikipediatoken', - name='head', - field=json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='wikipediatoken', - name='status', - field=models.PositiveIntegerField(default=0), - ), - migrations.AlterField( - model_name='wikipediatransclusions', - name='body', - field=models.TextField(blank=True, default=None, null=True), - ), - migrations.AlterField( - model_name='wikipediatransclusions', - name='head', - field=json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='wikipediatransclusions', - name='status', - field=models.PositiveIntegerField(default=0), - ), - migrations.AlterField( - model_name='wikipediatranslate', - name='body', - field=models.TextField(blank=True, default=None, null=True), - ), - migrations.AlterField( - model_name='wikipediatranslate', - name='head', - field=json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object'), - ), - migrations.AlterField( - model_name='wikipediatranslate', - name='status', - field=models.PositiveIntegerField(default=0), - ), - ] diff --git a/src/sources/migrations/0025_auto_20180818_1844.py b/src/sources/migrations/0025_auto_20180818_1844.py deleted file mode 100644 index ac0e7308..00000000 --- a/src/sources/migrations/0025_auto_20180818_1844.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.7 on 2018-08-18 18:44 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('sources', '0024_auto_20171119_1315'), - ] - - operations = [ - migrations.RemoveField( - model_name='acteursspotprofile', - name='retainer_type', - ), - migrations.RemoveField( - model_name='benfcastingprofile', - name='retainer_type', - ), - migrations.RemoveField( - model_name='moederannecastingsearch', - name='retainer_type', - ), - migrations.RemoveField( - model_name='moederannecastingsession', - name='retainer_type', - ), - migrations.DeleteModel( - name='ActeursSpotProfile', - ), - migrations.DeleteModel( - name='BenfCastingProfile', - ), - migrations.DeleteModel( - name='MoederAnneCastingSearch', - ), - migrations.DeleteModel( - name='MoederAnneCastingSession', - ), - ] diff --git a/src/sources/migrations/0026_auto_20180818_1854.py b/src/sources/migrations/0026_auto_20180818_1854.py deleted file mode 100644 index c79dc2b8..00000000 --- a/src/sources/migrations/0026_auto_20180818_1854.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.7 on 2018-08-18 18:54 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('sources', '0025_auto_20180818_1844'), - ] - - operations = [ - migrations.RemoveField( - model_name='officialannouncementsdocumentnetherlands', - name='retainer_type', - ), - migrations.RemoveField( - model_name='officialannouncementsnetherlands', - name='retainer_type', - ), - migrations.DeleteModel( - name='OfficialAnnouncementsDocumentNetherlands', - ), - migrations.DeleteModel( - name='OfficialAnnouncementsNetherlands', - ), - ] diff --git a/src/sources/migrations/0027_auto_20180912_0931.py b/src/sources/migrations/0027_auto_20180912_0931.py deleted file mode 100644 index 55e373ec..00000000 --- a/src/sources/migrations/0027_auto_20180912_0931.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.7 on 2018-09-12 09:31 -from __future__ import unicode_literals - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('sources', '0026_auto_20180818_1854'), - ] - - operations = [ - migrations.DeleteModel( - name='ImageFeatures', - ), - ] diff --git a/src/sources/migrations/0028_auto_20181202_1424.py b/src/sources/migrations/0028_auto_20181202_1424.py deleted file mode 100644 index b28b37ea..00000000 --- a/src/sources/migrations/0028_auto_20181202_1424.py +++ /dev/null @@ -1,196 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.15 on 2018-12-02 14:24 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('sources', '0027_auto_20180912_0931'), - ] - - operations = [ - migrations.AlterField( - model_name='googleimage', - name='retainer_id', - field=models.PositiveIntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name='googleimage', - name='retainer_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), - ), - migrations.AlterField( - model_name='googletext', - name='retainer_id', - field=models.PositiveIntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name='googletext', - name='retainer_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), - ), - migrations.AlterField( - model_name='googletranslate', - name='retainer_id', - field=models.PositiveIntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name='googletranslate', - name='retainer_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), - ), - migrations.AlterField( - model_name='imagedownload', - name='retainer_id', - field=models.PositiveIntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name='imagedownload', - name='retainer_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), - ), - migrations.AlterField( - model_name='kledinglisting', - name='retainer_id', - field=models.PositiveIntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name='kledinglisting', - name='retainer_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), - ), - migrations.AlterField( - model_name='wikidataitems', - name='retainer_id', - field=models.PositiveIntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name='wikidataitems', - name='retainer_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), - ), - migrations.AlterField( - model_name='wikipediacategories', - name='retainer_id', - field=models.PositiveIntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name='wikipediacategories', - name='retainer_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), - ), - migrations.AlterField( - model_name='wikipediacategorymembers', - name='retainer_id', - field=models.PositiveIntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name='wikipediacategorymembers', - name='retainer_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), - ), - migrations.AlterField( - model_name='wikipediaedit', - name='retainer_id', - field=models.PositiveIntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name='wikipediaedit', - name='retainer_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), - ), - migrations.AlterField( - model_name='wikipedialistpages', - name='retainer_id', - field=models.PositiveIntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name='wikipedialistpages', - name='retainer_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), - ), - migrations.AlterField( - model_name='wikipedialogin', - name='retainer_id', - field=models.PositiveIntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name='wikipedialogin', - name='retainer_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), - ), - migrations.AlterField( - model_name='wikipediapageviewdetails', - name='retainer_id', - field=models.PositiveIntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name='wikipediapageviewdetails', - name='retainer_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), - ), - migrations.AlterField( - model_name='wikipediarecentchanges', - name='retainer_id', - field=models.PositiveIntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name='wikipediarecentchanges', - name='retainer_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), - ), - migrations.AlterField( - model_name='wikipediarevisions', - name='retainer_id', - field=models.PositiveIntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name='wikipediarevisions', - name='retainer_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), - ), - migrations.AlterField( - model_name='wikipediasearch', - name='retainer_id', - field=models.PositiveIntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name='wikipediasearch', - name='retainer_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), - ), - migrations.AlterField( - model_name='wikipediatoken', - name='retainer_id', - field=models.PositiveIntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name='wikipediatoken', - name='retainer_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), - ), - migrations.AlterField( - model_name='wikipediatransclusions', - name='retainer_id', - field=models.PositiveIntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name='wikipediatransclusions', - name='retainer_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), - ), - migrations.AlterField( - model_name='wikipediatranslate', - name='retainer_id', - field=models.PositiveIntegerField(blank=True, null=True), - ), - migrations.AlterField( - model_name='wikipediatranslate', - name='retainer_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'), - ), - ] diff --git a/src/sources/migrations/0029_alter_data_hash.py b/src/sources/migrations/0029_alter_data_hash.py deleted file mode 100644 index f6671088..00000000 --- a/src/sources/migrations/0029_alter_data_hash.py +++ /dev/null @@ -1,105 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.29 on 2020-11-14 15:01 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('sources', '0028_auto_20181202_1424'), - ] - - operations = [ - migrations.AlterField( - model_name='googleimage', - name='data_hash', - field=models.CharField(blank=True, db_index=True, default='', max_length=255), - ), - migrations.AlterField( - model_name='googletext', - name='data_hash', - field=models.CharField(blank=True, db_index=True, default='', max_length=255), - ), - migrations.AlterField( - model_name='googletranslate', - name='data_hash', - field=models.CharField(blank=True, db_index=True, default='', max_length=255), - ), - migrations.AlterField( - model_name='imagedownload', - name='data_hash', - field=models.CharField(blank=True, db_index=True, default='', max_length=255), - ), - migrations.AlterField( - model_name='kledinglisting', - name='data_hash', - field=models.CharField(blank=True, db_index=True, default='', max_length=255), - ), - migrations.AlterField( - model_name='wikidataitems', - name='data_hash', - field=models.CharField(blank=True, db_index=True, default='', max_length=255), - ), - migrations.AlterField( - model_name='wikipediacategories', - name='data_hash', - field=models.CharField(blank=True, db_index=True, default='', max_length=255), - ), - migrations.AlterField( - model_name='wikipediacategorymembers', - name='data_hash', - field=models.CharField(blank=True, db_index=True, default='', max_length=255), - ), - migrations.AlterField( - model_name='wikipediaedit', - name='data_hash', - field=models.CharField(blank=True, db_index=True, default='', max_length=255), - ), - migrations.AlterField( - model_name='wikipedialistpages', - name='data_hash', - field=models.CharField(blank=True, db_index=True, default='', max_length=255), - ), - migrations.AlterField( - model_name='wikipedialogin', - name='data_hash', - field=models.CharField(blank=True, db_index=True, default='', max_length=255), - ), - migrations.AlterField( - model_name='wikipediapageviewdetails', - name='data_hash', - field=models.CharField(blank=True, db_index=True, default='', max_length=255), - ), - migrations.AlterField( - model_name='wikipediarecentchanges', - name='data_hash', - field=models.CharField(blank=True, db_index=True, default='', max_length=255), - ), - migrations.AlterField( - model_name='wikipediarevisions', - name='data_hash', - field=models.CharField(blank=True, db_index=True, default='', max_length=255), - ), - migrations.AlterField( - model_name='wikipediasearch', - name='data_hash', - field=models.CharField(blank=True, db_index=True, default='', max_length=255), - ), - migrations.AlterField( - model_name='wikipediatoken', - name='data_hash', - field=models.CharField(blank=True, db_index=True, default='', max_length=255), - ), - migrations.AlterField( - model_name='wikipediatransclusions', - name='data_hash', - field=models.CharField(blank=True, db_index=True, default='', max_length=255), - ), - migrations.AlterField( - model_name='wikipediatranslate', - name='data_hash', - field=models.CharField(blank=True, db_index=True, default='', max_length=255), - ), - ] diff --git a/src/visual_translations/migrations/0001_initial.py b/src/visual_translations/migrations/0001_initial.py deleted file mode 100644 index 1636048c..00000000 --- a/src/visual_translations/migrations/0001_initial.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import core.utils.configuration -import core.processors.mixins - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('core', '0004_communitymock'), - ] - - operations = [ - migrations.CreateModel( - name='VisualTranslationsCommunity', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('signature', models.CharField(max_length=255, db_index=True)), - ('config', core.utils.configuration.ConfigurationField(default={})), - ('kernel_id', models.PositiveIntegerField(null=True, blank=True)), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('completed_at', models.DateTimeField(null=True, blank=True)), - ('purge_at', models.DateTimeField(null=True, blank=True)), - ('views', models.IntegerField(default=0)), - ('state', models.CharField(default='New', max_length=255, choices=[('Synchronous', 'Synchronous'), ('Asynchronous', 'Asynchronous'), ('Ready', 'Ready'), ('New', 'New')])), - ('current_growth', models.ForeignKey(to='core.Growth', null=True)), - ('kernel_type', models.ForeignKey(blank=True, to='contenttypes.ContentType', null=True)), - ], - options={ - 'verbose_name': 'Visual translation', - 'verbose_name_plural': 'Visual translations', - }, - bases=(models.Model, core.processors.mixins.ProcessorMixin), - ), - ] diff --git a/src/visual_translations/migrations/0002_auto_20160219_1442.py b/src/visual_translations/migrations/0002_auto_20160219_1442.py deleted file mode 100644 index 8697ef4f..00000000 --- a/src/visual_translations/migrations/0002_auto_20160219_1442.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('visual_translations', '0001_initial'), - ] - - operations = [ - migrations.AlterField( - model_name='visualtranslationscommunity', - name='state', - field=models.CharField(default='New', max_length=255, choices=[('Aborted', 'Aborted'), ('New', 'New'), ('Ready', 'Ready'), ('Asynchronous', 'Asynchronous'), ('Synchronous', 'Synchronous')]), - ), - ] diff --git a/src/visual_translations/migrations/0003_auto_20160225_2307.py b/src/visual_translations/migrations/0003_auto_20160225_2307.py deleted file mode 100644 index 562b3923..00000000 --- a/src/visual_translations/migrations/0003_auto_20160225_2307.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import core.utils.configuration - - -class Migration(migrations.Migration): - - dependencies = [ - ('visual_translations', '0002_auto_20160219_1442'), - ] - - operations = [ - migrations.AlterField( - model_name='visualtranslationscommunity', - name='config', - field=core.utils.configuration.ConfigurationField(), - ), - migrations.AlterField( - model_name='visualtranslationscommunity', - name='state', - field=models.CharField(choices=[('Aborted', 'Aborted'), ('Asynchronous', 'Asynchronous'), ('New', 'New'), ('Ready', 'Ready'), ('Synchronous', 'Synchronous')], default='New', max_length=255), - ), - ] diff --git a/src/visual_translations/migrations/0004_auto_20160328_1112.py b/src/visual_translations/migrations/0004_auto_20160328_1112.py deleted file mode 100644 index e6ca9389..00000000 --- a/src/visual_translations/migrations/0004_auto_20160328_1112.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations - - -sql = """UPDATE django_content_type - SET model = 'visualtranslationseucommunity' - WHERE model = 'visualtranslationscommunity' AND - app_label = 'visual_translations';""" - -reverse_sql = """UPDATE django_content_type - SET model = 'visualtranslationscommunity' - WHERE model = 'visualtranslationseucommunity' AND - app_label = 'visual_translations';""" - - -class Migration(migrations.Migration): - - dependencies = [ - ('core', '0014_auto_20160226_1306'), - ('contenttypes', '0002_remove_content_type_name'), - ('visual_translations', '0003_auto_20160225_2307'), - ] - - operations = [ - migrations.RunSQL(sql, reverse_sql), - migrations.RenameModel('VisualTranslationsCommunity', 'VisualTranslationsEUCommunity') - ] diff --git a/src/visual_translations/migrations/0005_visualtranslationsbriccommunity.py b/src/visual_translations/migrations/0005_visualtranslationsbriccommunity.py deleted file mode 100644 index 367b0fa9..00000000 --- a/src/visual_translations/migrations/0005_visualtranslationsbriccommunity.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import core.utils.configuration -import core.processors.mixins - - -class Migration(migrations.Migration): - - dependencies = [ - ('core', '0014_auto_20160226_1306'), - ('contenttypes', '0002_remove_content_type_name'), - ('visual_translations', '0004_auto_20160328_1112'), - ] - - operations = [ - migrations.CreateModel( - name='VisualTranslationsBRICCommunity', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, primary_key=True, auto_created=True)), - ('signature', models.CharField(db_index=True, max_length=255)), - ('config', core.utils.configuration.ConfigurationField()), - ('kernel_id', models.PositiveIntegerField(null=True, blank=True)), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('completed_at', models.DateTimeField(null=True, blank=True)), - ('purge_at', models.DateTimeField(null=True, blank=True)), - ('views', models.IntegerField(default=0)), - ('state', models.CharField(default='New', choices=[('Aborted', 'Aborted'), ('Asynchronous', 'Asynchronous'), ('New', 'New'), ('Ready', 'Ready'), ('Synchronous', 'Synchronous')], max_length=255)), - ('current_growth', models.ForeignKey(to='core.Growth', null=True)), - ('kernel_type', models.ForeignKey(to='contenttypes.ContentType', null=True, blank=True)), - ], - options={ - 'verbose_name_plural': 'Visual translations', - 'verbose_name': 'Visual translation', - }, - bases=(models.Model, core.processors.mixins.ProcessorMixin), - ), - ] diff --git a/src/visual_translations/migrations/0006_auto_20160417_2047.py b/src/visual_translations/migrations/0006_auto_20160417_2047.py deleted file mode 100644 index 21f7c0b8..00000000 --- a/src/visual_translations/migrations/0006_auto_20160417_2047.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('visual_translations', '0005_visualtranslationsbriccommunity'), - ] - - operations = [ - migrations.AlterModelOptions( - name='visualtranslationsbriccommunity', - options={'verbose_name_plural': 'Visual translations (BRIC)', 'verbose_name': 'Visual translation (BRIC)'}, - ), - migrations.AlterModelOptions( - name='visualtranslationseucommunity', - options={'verbose_name_plural': 'Visual translations (EU)', 'verbose_name': 'Visual translation (EU)'}, - ), - ] diff --git a/src/visual_translations/migrations/0007_webimagedownload.py b/src/visual_translations/migrations/0007_webimagedownload.py deleted file mode 100644 index 9531c977..00000000 --- a/src/visual_translations/migrations/0007_webimagedownload.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.15 on 2018-12-24 23:30 -from __future__ import unicode_literals - -import datagrowth.configuration.fields -from django.db import migrations, models -import django.db.models.deletion -import json_field.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('visual_translations', '0006_auto_20160417_2047'), - ] - - operations = [ - migrations.CreateModel( - name='WebImageDownload', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('uri', models.CharField(db_index=True, default=None, max_length=255)), - ('status', models.PositiveIntegerField(default=0)), - ('config', datagrowth.configuration.fields.ConfigurationField()), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('purge_at', models.DateTimeField(blank=True, null=True)), - ('retainer_id', models.PositiveIntegerField(blank=True, null=True)), - ('data_hash', models.CharField(db_index=True, default='', max_length=255)), - ('request', json_field.fields.JSONField(default=None, help_text='Enter a valid JSON object')), - ('head', json_field.fields.JSONField(default='{}', help_text='Enter a valid JSON object')), - ('body', models.TextField(blank=True, default=None, null=True)), - ('retainer_type', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')), - ], - options={ - 'abstract': False, - }, - ), - ] diff --git a/src/visual_translations/migrations/0008_auto_20190402_0928.py b/src/visual_translations/migrations/0008_auto_20190402_0928.py deleted file mode 100644 index f5b2f202..00000000 --- a/src/visual_translations/migrations/0008_auto_20190402_0928.py +++ /dev/null @@ -1,33 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.20 on 2019-04-02 09:28 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('visual_translations', '0007_webimagedownload'), - ] - - operations = [ - migrations.RemoveField( - model_name='visualtranslationsbriccommunity', - name='views', - ), - migrations.RemoveField( - model_name='visualtranslationseucommunity', - name='views', - ), - migrations.AlterField( - model_name='visualtranslationsbriccommunity', - name='state', - field=models.CharField(choices=[('Aborted', 'Aborted'), ('Asynchronous', 'Asynchronous'), ('New', 'New'), ('Ready', 'Ready'), ('Retry', 'Retry'), ('Synchronous', 'Synchronous')], default='New', max_length=255), - ), - migrations.AlterField( - model_name='visualtranslationseucommunity', - name='state', - field=models.CharField(choices=[('Aborted', 'Aborted'), ('Asynchronous', 'Asynchronous'), ('New', 'New'), ('Ready', 'Ready'), ('Retry', 'Retry'), ('Synchronous', 'Synchronous')], default='New', max_length=255), - ), - ] diff --git a/src/visual_translations/migrations/0009_alter_data_hash.py b/src/visual_translations/migrations/0009_alter_data_hash.py deleted file mode 100644 index a6f91cf5..00000000 --- a/src/visual_translations/migrations/0009_alter_data_hash.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.29 on 2020-11-14 15:01 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('visual_translations', '0008_auto_20190402_0928'), - ] - - operations = [ - migrations.AlterField( - model_name='webimagedownload', - name='data_hash', - field=models.CharField(blank=True, db_index=True, default='', max_length=255), - ), - ] diff --git a/src/visual_translations/migrations/0010_on_delete.py b/src/visual_translations/migrations/0010_on_delete.py deleted file mode 100644 index 0322bf7c..00000000 --- a/src/visual_translations/migrations/0010_on_delete.py +++ /dev/null @@ -1,36 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.29 on 2020-11-20 17:29 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('visual_translations', '0009_alter_data_hash'), - ] - - operations = [ - migrations.AlterField( - model_name='visualtranslationsbriccommunity', - name='current_growth', - field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='core.Growth'), - ), - migrations.AlterField( - model_name='visualtranslationsbriccommunity', - name='kernel_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='contenttypes.ContentType'), - ), - migrations.AlterField( - model_name='visualtranslationseucommunity', - name='current_growth', - field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='core.Growth'), - ), - migrations.AlterField( - model_name='visualtranslationseucommunity', - name='kernel_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='contenttypes.ContentType'), - ), - ] diff --git a/src/wiki_feed/migrations/0001_initial.py b/src/wiki_feed/migrations/0001_initial.py deleted file mode 100644 index 6611dd45..00000000 --- a/src/wiki_feed/migrations/0001_initial.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models -import core.processors.mixins -import core.utils.configuration - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('core', '0016_auto_20160627_2118'), - ] - - operations = [ - migrations.CreateModel( - name='WikiFeedCommunity', - fields=[ - ('id', models.AutoField(primary_key=True, verbose_name='ID', auto_created=True, serialize=False)), - ('signature', models.CharField(db_index=True, max_length=255)), - ('config', core.utils.configuration.ConfigurationField()), - ('kernel_id', models.PositiveIntegerField(null=True, blank=True)), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('completed_at', models.DateTimeField(null=True, blank=True)), - ('purge_at', models.DateTimeField(null=True, blank=True)), - ('views', models.IntegerField(default=0)), - ('state', models.CharField(default='New', max_length=255, choices=[('Aborted', 'Aborted'), ('Asynchronous', 'Asynchronous'), ('New', 'New'), ('Ready', 'Ready'), ('Synchronous', 'Synchronous')])), - ('current_growth', models.ForeignKey(to='core.Growth', null=True)), - ('kernel_type', models.ForeignKey(blank=True, to='contenttypes.ContentType', null=True)), - ], - options={ - 'verbose_name': 'Wiki news', - 'verbose_name_plural': 'Wiki news', - }, - bases=(models.Model, core.processors.mixins.ProcessorMixin), - ), - ] diff --git a/src/wiki_feed/migrations/0002_auto_20170201_1741.py b/src/wiki_feed/migrations/0002_auto_20170201_1741.py deleted file mode 100644 index 4afeab6d..00000000 --- a/src/wiki_feed/migrations/0002_auto_20170201_1741.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('wiki_feed', '0001_initial'), - ] - - operations = [ - migrations.AlterModelOptions( - name='wikifeedcommunity', - options={'verbose_name_plural': 'Wiki feeds', 'verbose_name': 'Wiki feed'}, - ), - ] diff --git a/src/wiki_feed/migrations/0003_wikifeedpublishcommunity.py b/src/wiki_feed/migrations/0003_wikifeedpublishcommunity.py deleted file mode 100644 index 9b6f69d4..00000000 --- a/src/wiki_feed/migrations/0003_wikifeedpublishcommunity.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models -import core.utils.configuration -import core.processors.mixins - - -class Migration(migrations.Migration): - - dependencies = [ - ('core', '0017_auto_20170315_1639'), - ('contenttypes', '0002_remove_content_type_name'), - ('wiki_feed', '0002_auto_20170201_1741'), - ] - - operations = [ - migrations.CreateModel( - name='WikiFeedPublishCommunity', - fields=[ - ('id', models.AutoField(verbose_name='ID', auto_created=True, primary_key=True, serialize=False)), - ('signature', models.CharField(db_index=True, max_length=255)), - ('config', core.utils.configuration.ConfigurationField()), - ('kernel_id', models.PositiveIntegerField(null=True, blank=True)), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('modified_at', models.DateTimeField(auto_now=True)), - ('completed_at', models.DateTimeField(null=True, blank=True)), - ('purge_at', models.DateTimeField(null=True, blank=True)), - ('views', models.IntegerField(default=0)), - ('state', models.CharField(max_length=255, default='New', choices=[('Aborted', 'Aborted'), ('Asynchronous', 'Asynchronous'), ('New', 'New'), ('Ready', 'Ready'), ('Synchronous', 'Synchronous')])), - ('current_growth', models.ForeignKey(null=True, to='core.Growth')), - ('kernel_type', models.ForeignKey(blank=True, null=True, to='contenttypes.ContentType')), - ], - options={ - 'verbose_name': 'Wiki feed publication', - 'verbose_name_plural': 'Wiki feed publications', - }, - bases=(models.Model, core.processors.mixins.ProcessorMixin), - ), - ] diff --git a/src/wiki_feed/migrations/0004_auto_20190402_0928.py b/src/wiki_feed/migrations/0004_auto_20190402_0928.py deleted file mode 100644 index 81d976f2..00000000 --- a/src/wiki_feed/migrations/0004_auto_20190402_0928.py +++ /dev/null @@ -1,33 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.20 on 2019-04-02 09:28 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('wiki_feed', '0003_wikifeedpublishcommunity'), - ] - - operations = [ - migrations.RemoveField( - model_name='wikifeedcommunity', - name='views', - ), - migrations.RemoveField( - model_name='wikifeedpublishcommunity', - name='views', - ), - migrations.AlterField( - model_name='wikifeedcommunity', - name='state', - field=models.CharField(choices=[('Aborted', 'Aborted'), ('Asynchronous', 'Asynchronous'), ('New', 'New'), ('Ready', 'Ready'), ('Retry', 'Retry'), ('Synchronous', 'Synchronous')], default='New', max_length=255), - ), - migrations.AlterField( - model_name='wikifeedpublishcommunity', - name='state', - field=models.CharField(choices=[('Aborted', 'Aborted'), ('Asynchronous', 'Asynchronous'), ('New', 'New'), ('Ready', 'Ready'), ('Retry', 'Retry'), ('Synchronous', 'Synchronous')], default='New', max_length=255), - ), - ] diff --git a/src/wiki_feed/migrations/0005_on_delete.py b/src/wiki_feed/migrations/0005_on_delete.py deleted file mode 100644 index 32ceeb10..00000000 --- a/src/wiki_feed/migrations/0005_on_delete.py +++ /dev/null @@ -1,36 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.29 on 2020-11-20 17:29 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('wiki_feed', '0004_auto_20190402_0928'), - ] - - operations = [ - migrations.AlterField( - model_name='wikifeedcommunity', - name='current_growth', - field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='core.Growth'), - ), - migrations.AlterField( - model_name='wikifeedcommunity', - name='kernel_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='contenttypes.ContentType'), - ), - migrations.AlterField( - model_name='wikifeedpublishcommunity', - name='current_growth', - field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='core.Growth'), - ), - migrations.AlterField( - model_name='wikifeedpublishcommunity', - name='kernel_type', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='contenttypes.ContentType'), - ), - ]