FilePathField limited to 100 chars
|Reported by:||Owned by:||Adrian Holovaty|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I've been using a FilePathField, but was wondering why I was suddenly getting bad truncation errors. Sure enough, FilePathField is limited in storage to 100 chars (at least on my mysql backend), even though the admin interface will list options which are longer than this (as it should).
You could argue that 100 chars should be enough for anyone, but I think that's a bit shortsighted, since you don't know what sort of deployment is going to be most convenient for your users. I'd request that you be allowed to optionally set a maxlength for FilePathField (defaulting to the current 100), rather than the current hard-coding. Alternatively, you could always just double or triple the hard-coded value, and most people would run into file system limits before hitting an error =)
Django version (0, 95, 'post-magic-removal')