1
0
Fork 0

Merge pull request #3273 from bookwyrm-social/WesleyAC-freeform-page-number

Allow page numbers to be text, instead of integers
This commit is contained in:
Mouse Reeve 2024-02-03 08:00:34 -08:00 committed by GitHub
commit faf45cf956
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 49 additions and 11 deletions

View file

@ -369,11 +369,13 @@ class Quotation(BookStatus):
quote = fields.HtmlField()
raw_quote = models.TextField(blank=True, null=True)
position = models.IntegerField(
validators=[MinValueValidator(0)], null=True, blank=True
position = models.TextField(
null=True,
blank=True,
)
endposition = models.IntegerField(
validators=[MinValueValidator(0)], null=True, blank=True
endposition = models.TextField(
null=True,
blank=True,
)
position_mode = models.CharField(
max_length=3,