jsmin
fnp-django-pagination==2.2.3
-django-maintenancemode==0.11.3
-django-picklefield==1.1.0
django-modeltranslation==0.13
django-allauth==0.39
django-extensions==2.2.1
librarian==1.8.3
# celery tasks
-celery[redis]==4.3.0
+celery[redis]==4.4.7
# OAI-PMH
pyoai==2.5.0
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
from django.db import models, migrations
-import picklefield.fields
class Migration(migrations.Migration):
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('path', models.CharField(unique=True, max_length=255, db_index=True)),
('task_id', models.CharField(db_index=True, max_length=128, null=True, blank=True)),
- ('task', picklefield.fields.PickledObjectField(null=True, editable=False)),
+ ('task', models.TextField(null=True, editable=False)),
('description', models.CharField(max_length=255, null=True, blank=True)),
],
options={
--- /dev/null
+# Generated by Django 2.2.16 on 2020-09-25 12:56
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('waiter', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.RemoveField(
+ model_name='waitedfile',
+ name='task',
+ ),
+ ]
from django.db import models
from waiter.settings import WAITER_URL, WAITER_MAX_QUEUE
from waiter.utils import check_abspath
-from picklefield import PickledObjectField
class WaitedFile(models.Model):
path = models.CharField(max_length=255, unique=True, db_index=True)
task_id = models.CharField(max_length=128, db_index=True, null=True, blank=True)
- task = PickledObjectField(null=True, editable=False)
description = models.CharField(max_length=255, null=True, blank=True)
@classmethod
if not already:
waited, created = cls.objects.get_or_create(path=path)
if created:
- waited.task = task_creator(check_abspath(path), waited.pk)
+ task_creator(check_abspath(path), waited.pk)
waited.task_id = waited.task.task_id
waited.description = description
waited.save()
from .paths import PROJECT_DIR
DEBUG = True
-MAINTENANCE_MODE = False
ADMINS = [
# ('Your Name', 'your_email@domain.com'),
'django.contrib.admindocs.middleware.XViewMiddleware',
'fnp_django_pagination.middleware.PaginationMiddleware',
'django.middleware.locale.LocaleMiddleware',
- 'maintenancemode.middleware.MaintenanceModeMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'fnpdjango.middleware.SetRemoteAddrFromXRealIP',