Skip to content

Commit

Permalink
Increase allowed resource citation prop length
Browse files Browse the repository at this point in the history
  • Loading branch information
bkis committed Feb 6, 2025
1 parent 41d1a2d commit dcd4871
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tekst-API/tekst/models/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class ResourceBase(ModelBase, ModelFactoryMixin):

citation: Annotated[
ConStrOrNone(
max_length=1000,
max_length=4096,
cleanup="oneline",
),
Field(
Expand Down
2 changes: 1 addition & 1 deletion Tekst-Web/src/forms/formRules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export const resourceSettingsFormRules: Record<string, FormItemRule[]> = {
requiredStringRule(() => $t('models.resource.description'), 'blur'),
minMaxCharsRule(1, 512, 'blur'),
],
citation: [minMaxCharsRule(0, 1000, 'blur')],
citation: [minMaxCharsRule(0, 4096, 'blur')],
commentTranslation: [
requiredStringRule(() => $t('general.comment'), 'blur'),
minMaxCharsRule(1, 2000, 'blur'),
Expand Down

0 comments on commit dcd4871

Please sign in to comment.