Limit length on list item note

This commit is contained in:
Mouse Reeve
2022-01-24 12:01:17 -08:00
parent a651352b8b
commit d0a4c78d02
2 changed files with 22 additions and 1 deletions

View File

@ -125,7 +125,7 @@ class ListItem(CollectionItemMixin, BookWyrmModel):
user = fields.ForeignKey(
"User", on_delete=models.PROTECT, activitypub_field="actor"
)
notes = fields.TextField(blank=True, null=True)
notes = fields.TextField(blank=True, null=True, max_length=300)
approved = models.BooleanField(default=True)
order = fields.IntegerField()
endorsement = models.ManyToManyField("User", related_name="endorsers")