forked from mirrors/bookwyrm
Adds comment
This commit is contained in:
parent
242ffe5456
commit
6ae8215f41
1 changed files with 1 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue