Commit 56acc29
authored
Bug: Correct length of classifier term length to 255 (#589)
#### Description of change
Changes the maximum length of the slug field of ClassifierTerm to have a
maximum length of 255, to match the name. This is also the maximum
length that several django backends allow for unique fields:
https://docs.djangoproject.com/en/4.2/ref/databases/#character-fields
#### Tests
Created a test project, ensured that a field with a name of a length
greater than 50 did not cause errors.
NOTES: This was believed to be fixed in 2.1.3, but that only corrected
the slug field on classifiers, not classifier terms.1 parent 13362be commit 56acc29
2 files changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
| |||
0 commit comments