id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 28428,Add support for Pathlib objects in django.core.files.storage,Tom Forbes,nobody,"Code in django.core.storage will explode when given a Pathlib object on Python 3.4 and 3.5. For example, this throws a cryptic `AttributeError: 'PosixPath' object has no attribute 'rfind'` exception due to `generate_filename` only expecting strings: {{{ def upload_to(filename): return pathlib.Path(filename) class Storage(models.Model): file = models.FileField(upload_to=upload_to) }}} More generally, it would be nice if all methods in the django.core.files accepted pathlib objects, and used pathlib objects internally. For compatibility reasons I think strings would have to be returned.",New feature,closed,File uploads/storage,dev,Normal,fixed,,,Accepted,0,0,0,0,0,0