Adds comment

This commit is contained in:
Mouse Reeve 2021-09-28 17:21:35 -07:00
parent 242ffe5456
commit 6ae8215f41

View file

@ -55,6 +55,7 @@ class Shelf(OrderedCollectionMixin, BookWyrmModel):
@property
def deletable(self):
"""can the shelf be safely deleted?"""
return self.editable and not self.shelfbook_set.exists()
def get_remote_id(self):