wbwriter 2.2.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of wbwriter might be problematic. Click here for more details.
- wbwriter/__init__.py +1 -0
- wbwriter/admin.py +142 -0
- wbwriter/apps.py +5 -0
- wbwriter/dynamic_preferences_registry.py +15 -0
- wbwriter/factories/__init__.py +13 -0
- wbwriter/factories/article.py +181 -0
- wbwriter/factories/meta_information.py +29 -0
- wbwriter/filters/__init__.py +2 -0
- wbwriter/filters/article.py +47 -0
- wbwriter/filters/metainformationinstance.py +24 -0
- wbwriter/migrations/0001_initial_squashed_squashed_0008_alter_article_author_alter_article_feedback_contact_and_more.py +653 -0
- wbwriter/migrations/0009_dependantarticle.py +41 -0
- wbwriter/migrations/0010_alter_article_options.py +20 -0
- wbwriter/migrations/0011_auto_20240103_0953.py +39 -0
- wbwriter/migrations/__init__.py +0 -0
- wbwriter/models/__init__.py +9 -0
- wbwriter/models/article.py +1179 -0
- wbwriter/models/article_type.py +59 -0
- wbwriter/models/block.py +24 -0
- wbwriter/models/block_parameter.py +19 -0
- wbwriter/models/in_editor_template.py +102 -0
- wbwriter/models/meta_information.py +87 -0
- wbwriter/models/mixins.py +9 -0
- wbwriter/models/publication_models.py +170 -0
- wbwriter/models/style.py +13 -0
- wbwriter/models/template.py +34 -0
- wbwriter/pdf_generator.py +172 -0
- wbwriter/publication_parser.py +258 -0
- wbwriter/serializers/__init__.py +28 -0
- wbwriter/serializers/article.py +359 -0
- wbwriter/serializers/article_type.py +14 -0
- wbwriter/serializers/in_editor_template.py +37 -0
- wbwriter/serializers/meta_information.py +67 -0
- wbwriter/serializers/publication.py +82 -0
- wbwriter/templatetags/__init__.py +0 -0
- wbwriter/templatetags/writer.py +72 -0
- wbwriter/tests/__init__.py +0 -0
- wbwriter/tests/conftest.py +32 -0
- wbwriter/tests/signals.py +23 -0
- wbwriter/tests/test_filter.py +58 -0
- wbwriter/tests/test_model.py +591 -0
- wbwriter/tests/test_writer.py +38 -0
- wbwriter/tests/tests.py +18 -0
- wbwriter/typings.py +23 -0
- wbwriter/urls.py +83 -0
- wbwriter/viewsets/__init__.py +22 -0
- wbwriter/viewsets/article.py +270 -0
- wbwriter/viewsets/article_type.py +49 -0
- wbwriter/viewsets/buttons.py +61 -0
- wbwriter/viewsets/display/__init__.py +6 -0
- wbwriter/viewsets/display/article.py +404 -0
- wbwriter/viewsets/display/article_type.py +27 -0
- wbwriter/viewsets/display/in_editor_template.py +39 -0
- wbwriter/viewsets/display/meta_information.py +37 -0
- wbwriter/viewsets/display/meta_information_instance.py +28 -0
- wbwriter/viewsets/display/publication.py +55 -0
- wbwriter/viewsets/endpoints/__init__.py +2 -0
- wbwriter/viewsets/endpoints/article.py +12 -0
- wbwriter/viewsets/endpoints/meta_information.py +14 -0
- wbwriter/viewsets/in_editor_template.py +68 -0
- wbwriter/viewsets/menu.py +42 -0
- wbwriter/viewsets/meta_information.py +51 -0
- wbwriter/viewsets/meta_information_instance.py +48 -0
- wbwriter/viewsets/publication.py +117 -0
- wbwriter/viewsets/titles/__init__.py +2 -0
- wbwriter/viewsets/titles/publication_title_config.py +18 -0
- wbwriter/viewsets/titles/reviewer_article_title_config.py +6 -0
- wbwriter-2.2.1.dist-info/METADATA +8 -0
- wbwriter-2.2.1.dist-info/RECORD +70 -0
- wbwriter-2.2.1.dist-info/WHEEL +5 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Generated by Django 4.2.9 on 2024-02-20 10:19
|
|
2
|
+
|
|
3
|
+
from django.db import migrations
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Migration(migrations.Migration):
|
|
7
|
+
dependencies = [
|
|
8
|
+
("wbwriter", "0009_dependantarticle"),
|
|
9
|
+
]
|
|
10
|
+
|
|
11
|
+
operations = [
|
|
12
|
+
migrations.AlterModelOptions(
|
|
13
|
+
name="article",
|
|
14
|
+
options={
|
|
15
|
+
"permissions": [("administrate_article", "Can administrate Articles.")],
|
|
16
|
+
"verbose_name": "Article",
|
|
17
|
+
"verbose_name_plural": "Articles",
|
|
18
|
+
},
|
|
19
|
+
),
|
|
20
|
+
]
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Generated by Django 4.2.8 on 2024-01-03 08:53
|
|
2
|
+
|
|
3
|
+
from contextlib import suppress
|
|
4
|
+
|
|
5
|
+
from django.contrib.contenttypes.models import ContentType
|
|
6
|
+
from django.db import migrations
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def migrate_content_type(apps, schema_editor):
|
|
10
|
+
Publication = apps.get_model("wbwriter", "Publication")
|
|
11
|
+
|
|
12
|
+
for model_name in [
|
|
13
|
+
"Classification",
|
|
14
|
+
"Instrument",
|
|
15
|
+
"ClassificationGroup",
|
|
16
|
+
"Deal",
|
|
17
|
+
"Exchange",
|
|
18
|
+
"InstrumentClassificationRelatedInstrument",
|
|
19
|
+
"InstrumentClassificationThroughModel",
|
|
20
|
+
"InstrumentFavoriteGroup",
|
|
21
|
+
"InstrumentList",
|
|
22
|
+
"InstrumentListThroughModel",
|
|
23
|
+
"InstrumentRequest",
|
|
24
|
+
"RelatedInstrumentThroughModel",
|
|
25
|
+
"InstrumentPrice",
|
|
26
|
+
]:
|
|
27
|
+
with suppress(ContentType.DoesNotExist):
|
|
28
|
+
old_ct = ContentType.objects.get(app_label="wbportfolio", model=model_name.lower())
|
|
29
|
+
new_ct = ContentType.objects.get(app_label="wbfdm", model=model_name.lower())
|
|
30
|
+
Publication.objects.filter(content_type_id=old_ct.id).update(content_type_id=new_ct.id)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class Migration(migrations.Migration):
|
|
34
|
+
dependencies = [
|
|
35
|
+
("wbwriter", "0010_alter_article_options"),
|
|
36
|
+
("wbfdm", "0012_instrumentprice_created_instrumentprice_modified"),
|
|
37
|
+
]
|
|
38
|
+
|
|
39
|
+
operations = [migrations.RunPython(migrate_content_type)]
|
|
File without changes
|