Adds description field to shelf
This commit is contained in:
parent
183e76eb2a
commit
dba0aaff2c
3 changed files with 20 additions and 1 deletions
|
@ -21,6 +21,7 @@ class Shelf(OrderedCollectionMixin, BookWyrmModel):
|
|||
|
||||
name = fields.CharField(max_length=100)
|
||||
identifier = models.CharField(max_length=100)
|
||||
description = models.TextField(blank=True, null=True, max_length=500)
|
||||
user = fields.ForeignKey(
|
||||
"User", on_delete=models.PROTECT, activitypub_field="owner"
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue