Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c6a51a1cdc | ||
|
|
4b20d5d4b9 | ||
|
|
cccd183c31 | ||
|
|
1baa203ef2 | ||
|
|
c3ce05e1cd | ||
|
|
7659dde16c | ||
|
|
7b4785bdb9 | ||
|
|
baf89cad8e | ||
|
|
a19f0ef97e | ||
|
|
ec7125b6bb |
@@ -2,7 +2,7 @@ language: python
|
|||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- sudo apt-get update -qq
|
- sudo apt-get update -qq
|
||||||
- sudo apt-get install -qq libpoppler-cpp-dev unpaper tesseract-ocr tesseract-ocr-eng tesseract-ocr-cat
|
- sudo apt-get install -qq libpoppler-cpp-dev unpaper tesseract-ocr tesseract-ocr-eng tesseract-ocr-cat tesseract-ocr-deu
|
||||||
|
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
|
|||||||
@@ -13,3 +13,8 @@ Changelog (jonaswinkler)
|
|||||||
* Added: Inbox tags (added automatically to newly consumed documents)
|
* Added: Inbox tags (added automatically to newly consumed documents)
|
||||||
* Added: Document viewer on document edit page
|
* Added: Document viewer on document edit page
|
||||||
* Database backend is now configurable
|
* Database backend is now configurable
|
||||||
|
|
||||||
|
1.0.1
|
||||||
|
=====
|
||||||
|
|
||||||
|
* Fixed migration order
|
||||||
|
|||||||
@@ -12,8 +12,9 @@ def re_slug_all_the_things(apps, schema_editor):
|
|||||||
|
|
||||||
Tag = apps.get_model("documents", "Tag")
|
Tag = apps.get_model("documents", "Tag")
|
||||||
Correspondent = apps.get_model("documents", "Correspondent")
|
Correspondent = apps.get_model("documents", "Correspondent")
|
||||||
|
DocumentType = apps.get_model("documents", "DocumentType")
|
||||||
|
|
||||||
for klass in (Tag, Correspondent):
|
for klass in (Tag, Correspondent, DocumentType):
|
||||||
for instance in klass.objects.all():
|
for instance in klass.objects.all():
|
||||||
klass.objects.filter(
|
klass.objects.filter(
|
||||||
pk=instance.pk
|
pk=instance.pk
|
||||||
@@ -25,7 +26,7 @@ def re_slug_all_the_things(apps, schema_editor):
|
|||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('documents', '0021_document_storage_type'),
|
('documents', '1003_auto_20180904_1425'),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
@@ -48,5 +49,10 @@ class Migration(migrations.Migration):
|
|||||||
name='slug',
|
name='slug',
|
||||||
field=models.SlugField(blank=True, editable=False),
|
field=models.SlugField(blank=True, editable=False),
|
||||||
),
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='documenttype',
|
||||||
|
name='slug',
|
||||||
|
field=models.SlugField(blank=True, editable=False),
|
||||||
|
),
|
||||||
migrations.RunPython(re_slug_all_the_things, migrations.RunPython.noop)
|
migrations.RunPython(re_slug_all_the_things, migrations.RunPython.noop)
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ from django.db import migrations, models
|
|||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('documents', '0022_auto_20181007_1420'),
|
('documents', '0021_document_storage_type'),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
|
|||||||
@@ -1,36 +0,0 @@
|
|||||||
# Generated by Django 2.0.8 on 2018-10-07 14:20
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
from django.utils.text import slugify
|
|
||||||
|
|
||||||
|
|
||||||
def re_slug_all_the_things(apps, schema_editor):
|
|
||||||
"""
|
|
||||||
Rewrite all slug values to make sure they're actually slugs before we brand
|
|
||||||
them as uneditable.
|
|
||||||
"""
|
|
||||||
|
|
||||||
DocumentType = apps.get_model("documents", "DocumentType")
|
|
||||||
|
|
||||||
for instance in DocumentType.objects.all():
|
|
||||||
DocumentType.objects.filter(
|
|
||||||
pk=instance.pk
|
|
||||||
).update(
|
|
||||||
slug=slugify(instance.slug)
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('documents', '1003_auto_20180904_1425'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='documenttype',
|
|
||||||
name='slug',
|
|
||||||
field=models.SlugField(blank=True, editable=False),
|
|
||||||
),
|
|
||||||
migrations.RunPython(re_slug_all_the_things, migrations.RunPython.noop)
|
|
||||||
]
|
|
||||||
@@ -1 +1 @@
|
|||||||
__version__ = (1, 0, 0)
|
__version__ = (1, 0, 1)
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 46 KiB |
Reference in New Issue
Block a user