view messages/fixtures/messages_test_users.json @ 1037:7e0c3cbd3cda

Fix bad select_related call. In Django 1.8, select_related now throws an error if you give it an invalid field. This was happening. Fix that query. Also noticed an extra query generated in the display_post template. Fixed.
author Brian Neal <bgneal@gmail.com>
date Tue, 29 Dec 2015 22:21:42 -0600
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"
    }
}
]