2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-03 20:20:58 +00:00

Add user setting for configuring table string length (#3715)

This commit is contained in:
Oliver
2022-09-24 13:00:12 +10:00
committed by GitHub
parent 5a08ef908d
commit a7e4d27d6d
3 changed files with 15 additions and 3 deletions

View File

@ -1642,6 +1642,16 @@ class InvenTreeUserSetting(BaseInvenTreeSetting):
'default': True,
'validator': bool,
},
'TABLE_STRING_MAX_LENGTH': {
'name': _('Table String Length'),
'description': _('Maximimum length limit for strings displayed in table views'),
'validator': [
int,
MinValueValidator(0),
],
'default': 100,
}
}
typ = 'user'