Mercurial > public > sg101
view accounts/fixtures/accounts.json @ 973:6f55c086db1e
Guess file extension based on content-type.
When downloading a file, and no path is supplied to store it, guess the file
extension using mimetypes and the content-type header.
Also supply a unit test for the HotLinkImageForm.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 01 Oct 2015 19:44:45 -0500 |
parents | ee87ea74d46b |
children | d8bb9c36aae1 |
line wrap: on
line source
[ { "pk": 1, "model": "accounts.illegalusername", "fields": { "username": "root" } }, { "pk": 2, "model": "accounts.illegalusername", "fields": { "username": "sg101" } }, { "pk": 3, "model": "accounts.illegalusername", "fields": { "username": "surfguitar101" } }, { "pk": 4, "model": "accounts.illegalusername", "fields": { "username": "webmaster" } } ]