stephenmcd / filebrowser-safe

File manager for Mezzanine
Other
41 stars 104 forks source link

Handle sorting when date or filesize is None (happens for folders in S3) #55

Closed mayoroftuesday closed 8 years ago

mayoroftuesday commented 8 years ago

I was running into an issue using Amazon S3. One folder was fine (no comparison being done), but when I had two folders, or a folder and a file, the comparison failed and the page crashed. I noticed that for folders, the file objects being pulled from S3 has date=None and filesize=None. This code will handle that situation.

stephenmcd commented 8 years ago

Awesome, thank you!