Adds comment
This commit is contained in:
parent
242ffe5456
commit
6ae8215f41
|
@ -55,6 +55,7 @@ class Shelf(OrderedCollectionMixin, BookWyrmModel):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def deletable(self):
|
def deletable(self):
|
||||||
|
"""can the shelf be safely deleted?"""
|
||||||
return self.editable and not self.shelfbook_set.exists()
|
return self.editable and not self.shelfbook_set.exists()
|
||||||
|
|
||||||
def get_remote_id(self):
|
def get_remote_id(self):
|
||||||
|
|
Loading…
Reference in New Issue