Commit 3f1b84c
committed
Don't trim attribute values when field.max_length is None
Prevents 'TypeError: unorderable types: int() > NoneType()' in
_set_attribute when field.max_length = None
Some Django field classes do not set a max_length attribute, such as
IntegerField and PositiveIntegerField. The max_length attribute of these
classes is None (inherited from their parent class, Field).1 parent b479d0d commit 3f1b84c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| |||
0 commit comments