wbwriter 1.47.1__py2.py3-none-any.whl → 1.49.0__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.

@@ -32,6 +32,7 @@ from wbcore.metadata.configs.display.instance_display.shortcuts import (
32
32
  create_simple_display,
33
33
  )
34
34
  from wbcore.models import WBModel
35
+ from wbcore.utils.models import CloneMixin
35
36
  from weasyprint import CSS
36
37
 
37
38
  from wbwriter.models.publication_models import Publication
@@ -186,7 +187,7 @@ def create_dependencies(article):
186
187
  DependantArticle.objects.get_or_create(article=article, dependant_article_id=dependency)
187
188
 
188
189
 
189
- class Article(TagModelMixin, PublishableMixin, WBModel):
190
+ class Article(CloneMixin, TagModelMixin, PublishableMixin, WBModel):
190
191
  class Status(models.TextChoices):
191
192
  DRAFT = ("draft", "Draft")
192
193
  FEEDBACK = ("feedback", "Feedback")
@@ -869,7 +870,7 @@ class Article(TagModelMixin, PublishableMixin, WBModel):
869
870
  create_dependencies(self)
870
871
  super().save(*args, **kwargs)
871
872
 
872
- def clone(self, user=None, **kwargs) -> "Article":
873
+ def _clone(self, user=None, **kwargs) -> "Article":
873
874
  from wbwriter.models import MetaInformationInstance
874
875
 
875
876
  object_copy = Article.objects.get(id=self.id)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wbwriter
3
- Version: 1.47.1
3
+ Version: 1.49.0
4
4
  Author-email: Christopher Wittlinger <c.wittlinger@stainly.com>
5
5
  Requires-Dist: pillow==9.1.*
6
6
  Requires-Dist: reportlab==3.*
@@ -19,7 +19,7 @@ wbwriter/migrations/0011_auto_20240103_0953.py,sha256=UnaHFJM7DVOSEfS0wm8rWEh9H2
19
19
  wbwriter/migrations/0012_i18n.py,sha256=24cClx1sWYh-VEo-IApTiSr5nNvV1CtINiaWRHFztMA,724
20
20
  wbwriter/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  wbwriter/models/__init__.py,sha256=opUUL36nRzxJypQNupPM8NxUj-u4uuB11IDn5XSkjVE,248
22
- wbwriter/models/article.py,sha256=lclDk1T0P-4GTpmq1ki2PDlbTvprIjQisVqGqMKuTeE,45109
22
+ wbwriter/models/article.py,sha256=usSEppcSMO2jli2JO1m2gxFwIVSR-NGZm6WYncY74o0,45165
23
23
  wbwriter/models/article_type.py,sha256=hofB200Y11LFanpICNgWYDa5-Qg-K4X2fXv6qccBP_0,1999
24
24
  wbwriter/models/block.py,sha256=tn2sklo7s401Y0Ww5M09Y9Wv-yivEvAR1eM5raG7gtc,835
25
25
  wbwriter/models/block_parameter.py,sha256=bHBp9bo5EEiZKTzhYfBwkidcS6kZVy81vtcAlx7xzck,524
@@ -71,6 +71,6 @@ wbwriter/viewsets/endpoints/meta_information.py,sha256=m7rVbfTNjsQNibmqtAG4DvXSJ
71
71
  wbwriter/viewsets/titles/__init__.py,sha256=INLTvGeBi5Xro7i3FlJ2fesh-TjKbxRBlfsAyeg3h7k,131
72
72
  wbwriter/viewsets/titles/publication_title_config.py,sha256=-39C_Enz8J1o-DWgRz89VFMV0r4MReKx-r-Tpf9MlVM,807
73
73
  wbwriter/viewsets/titles/reviewer_article_title_config.py,sha256=YzRjuUwbe6vBwWhYLrCe6woGCpQ9c7AwkujKqPh5mLw,183
74
- wbwriter-1.47.1.dist-info/METADATA,sha256=Z4RLN7sVZzbr1Wi84oVNVbn6GVz5PLtIrpKXzb3caS0,230
75
- wbwriter-1.47.1.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
76
- wbwriter-1.47.1.dist-info/RECORD,,
74
+ wbwriter-1.49.0.dist-info/METADATA,sha256=ru4S5sgGGl90UdP2EmJ67DsxHVG03x7FSKlFWCIMlcY,230
75
+ wbwriter-1.49.0.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
76
+ wbwriter-1.49.0.dist-info/RECORD,,