Skip to content

Commit

Permalink
changing conditional slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
acholyn committed Jan 9, 2025
1 parent f1e2a87 commit 7dade42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rard/research/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ def __init__(self, *args, **kwargs):
# work to the original text instance in the view
self.set_citing_work_required(True)
self.fields["content"].widget.attrs["class"] = "enableCKEditor"
if original_text.apparatus_criticus_items.count() > 0:
if original_text and original_text.apparatus_criticus_items.count() > 0:
self.fields["content"].widget.attrs["class"] += " enableApparatusCriticus"

def set_citing_work_required(self, required):
Expand Down

0 comments on commit 7dade42

Please sign in to comment.