Adds description field to shelf

This commit is contained in:
Mouse Reeve
2021-09-28 16:36:47 -07:00
parent 183e76eb2a
commit dba0aaff2c
3 changed files with 20 additions and 1 deletions

View File

@ -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"
)