mirror of
https://github.com/inventree/InvenTree.git
synced 2026-09-03 11:28:49 +00:00
Specify max field length
This commit is contained in:
@@ -66,7 +66,7 @@ class Migration(migrations.Migration):
|
|||||||
(
|
(
|
||||||
"content",
|
"content",
|
||||||
models.TextField(
|
models.TextField(
|
||||||
blank=True, help_text="Note content", verbose_name="Content"
|
blank=True, help_text="Note content", verbose_name="Content", max_length=50000
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
|
|||||||
@@ -2987,6 +2987,8 @@ class Note(
|
|||||||
created: Date/time that the note was created
|
created: Date/time that the note was created
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
NOTES_MAX_LENGTH = 50000
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
"""Meta options for Note model."""
|
"""Meta options for Note model."""
|
||||||
|
|
||||||
@@ -3138,7 +3140,10 @@ class Note(
|
|||||||
)
|
)
|
||||||
|
|
||||||
content = models.TextField(
|
content = models.TextField(
|
||||||
blank=True, verbose_name=_('Content'), help_text=_('Note content')
|
blank=True,
|
||||||
|
verbose_name=_('Content'),
|
||||||
|
help_text=_('Note content'),
|
||||||
|
max_length=NOTES_MAX_LENGTH,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user