Mercurial > public > sg101
view messages/fixtures/messages_test_users.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 | 42436d674ba8 |
children |
line wrap: on
line source
[ { "pk": 1, "model": "auth.user", "fields": { "username": "pj", "first_name": "", "last_name": "", "is_active": true, "is_superuser": false, "is_staff": false, "last_login": "2014-09-06T15:15:04", "groups": [], "user_permissions": [], "password": "", "email": "pj@example.com", "date_joined": "2006-02-25T00:00:00" } }, { "pk": 2, "model": "auth.user", "fields": { "username": "eddie", "first_name": "", "last_name": "", "is_active": true, "is_superuser": false, "is_staff": false, "last_login": "2014-09-01T16:33:54", "groups": [], "user_permissions": [], "password": "", "email": "eddie@example.com", "date_joined": "2006-02-28T00:00:00" } }, { "pk": 3, "model": "auth.user", "fields": { "username": "richard", "first_name": "", "last_name": "", "is_active": true, "is_superuser": false, "is_staff": false, "last_login": "2014-09-06T15:15:04", "groups": [], "user_permissions": [], "password": "", "email": "richard@example.com", "date_joined": "2006-02-25T00:00:00" } } ]