Skip to content

Commit

Permalink
fix: use is_under_review convenience prop
Browse files Browse the repository at this point in the history
  • Loading branch information
alee committed Oct 19, 2023
1 parent 1cf3260 commit ffc1a8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/library/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,7 @@ def get_review_download_url(self):
def validate_publishable(self):
self.validate_metadata()
self.validate_uploaded_files()
if self.status == self.Status.UNDER_REVIEW:
if self.is_under_review:
# if under review, raise validation error if review is not complete
review = self.get_review()
if review and not review.is_complete:
Expand Down

0 comments on commit ffc1a8a

Please sign in to comment.