@@ -663,7 +663,7 @@ def autocomplete_custom_queryset_filter(search_term):
663663 ),
664664 FieldPanel ("submission_online_url" ),
665665 FieldPanel ("main_collection" ),
666- InlinePanel ("journalsocialnetwork " , label = _ ("Social Network" )),
666+ InlinePanel ("social_networks " , label = _ ("Social Network" )),
667667 FieldPanel ("frequency" ),
668668 FieldPanel ("publishing_model" ),
669669 FieldPanel ("standard" ),
@@ -673,21 +673,21 @@ def autocomplete_custom_queryset_filter(search_term):
673673 FieldPanel ("open_access" ),
674674 FieldPanel ("url_oa" ),
675675 InlinePanel (
676- "file_oa " , label = _ ("Open Science accordance form" ), classname = "collapsed"
676+ "open_science_form_files " , label = _ ("Open Science accordance form" ), classname = "collapsed"
677677 ),
678678 FieldPanel ("journal_use_license" ),
679679 InlinePanel ("open_access_text" , label = _ ("Open Access" ), classname = "collapsed" ),
680680 InlinePanel ("open_data" , label = _ ("Open data" ), classname = "collapsed" ),
681681 InlinePanel ("preprint" , label = _ ("Preprint" ), classname = "collapsed" ),
682- InlinePanel ("review " , label = _ ("Peer review" ), classname = "collapsed" ),
682+ InlinePanel ("peer_review " , label = _ ("Peer review" ), classname = "collapsed" ),
683683 InlinePanel (
684684 "open_science_compliance" ,
685685 label = _ ("Open Science Compliance" ),
686686 classname = "collapsed" ,
687687 ),
688688 ]
689689
690- panels_notes = [InlinePanel ("annotation " , label = _ ("Notes" ), classname = "collapsed" )]
690+ panels_notes = [InlinePanel ("notes " , label = _ ("Notes" ), classname = "collapsed" )]
691691
692692 panels_legacy_compatibility_fields = [
693693 FieldPanel ("alphabet" ),
@@ -1374,7 +1374,7 @@ def migrate_copyright_holder_history_to_raw(self):
13741374
13751375class FileOpenScience (Orderable , FileWithLang , CommonControlField ):
13761376 journal = ParentalKey (
1377- Journal , on_delete = models .SET_NULL , related_name = "file_oa " , null = True
1377+ Journal , on_delete = models .SET_NULL , related_name = "open_science_form_files " , null = True
13781378 )
13791379 file = models .ForeignKey (
13801380 "wagtaildocs.Document" ,
@@ -1584,7 +1584,7 @@ class JournalSocialNetwork(Orderable, SocialNetwork):
15841584 page = ParentalKey (
15851585 Journal ,
15861586 on_delete = models .SET_NULL ,
1587- related_name = "journalsocialnetwork " ,
1587+ related_name = "social_networks " ,
15881588 null = True ,
15891589 )
15901590
@@ -1669,7 +1669,7 @@ class Review(Orderable, RichTextWithLanguage, CommonControlField):
16691669 null = True , blank = True , help_text = _ ("Brief description of the review flow" )
16701670 )
16711671 journal = ParentalKey (
1672- Journal , on_delete = models .SET_NULL , related_name = "review " , null = True
1672+ Journal , on_delete = models .SET_NULL , related_name = "peer_review " , null = True
16731673 )
16741674
16751675
@@ -1683,7 +1683,7 @@ class Ecommittee(Orderable, RichTextWithLanguage, CommonControlField):
16831683 ),
16841684 )
16851685 journal = ParentalKey (
1686- Journal , on_delete = models .SET_NULL , related_name = "ecommittee " , null = True
1686+ Journal , on_delete = models .SET_NULL , related_name = "ethics_committee " , null = True
16871687 )
16881688
16891689
@@ -1861,7 +1861,7 @@ class AcceptedDocumentTypes(Orderable, RichTextWithLanguage, CommonControlField)
18611861 journal = ParentalKey (
18621862 Journal ,
18631863 on_delete = models .SET_NULL ,
1864- related_name = "accepted_documment_types " ,
1864+ related_name = "accepted_document_types " ,
18651865 null = True ,
18661866 )
18671867 rich_text = RichTextField (
@@ -2744,7 +2744,7 @@ def __str__(self):
27442744
27452745class Annotation (CommonControlField ):
27462746 journal = ParentalKey (
2747- Journal , on_delete = models .SET_NULL , related_name = "annotation " , null = True
2747+ Journal , on_delete = models .SET_NULL , related_name = "notes " , null = True
27482748 )
27492749 notes = models .TextField (_ ("Notes" ), blank = True , null = True )
27502750 creation_date = models .DateField (_ ("Creation Date" ), blank = True , null = True )
0 commit comments