Skip to content

Commit

Permalink
Handle case when annotation does not have an owner.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvarner committed Mar 7, 2024
1 parent 8c790a8 commit ed49072
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/readux/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ def prepare_content(self, instance):

def prepare_canvas_index(self, instance):
return instance.canvas.position

def prepare_canvas_pid(self, instance):
return instance.canvas.pid

def prepare_manifest_pid(self, instance):
return instance.canvas.manifest.pid

def prepare_owner_username(self, instance):
return instance.owner.username
if instance.owner:
return instance.owner.username
return None

0 comments on commit ed49072

Please sign in to comment.