mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-24 00:50:35 +00:00
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