1
0
Fork 0

Allow page numbers to be text, instead of integers.

Fixes: #2640
This commit is contained in:
Wesley Aptekar-Cassels 2024-01-04 18:58:12 -05:00
parent 597378bb78
commit 6cd2c91135
4 changed files with 36 additions and 11 deletions

View file

@ -338,11 +338,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,