view downloads/fixtures/downloads_extensions.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 ee87ea74d46b
children
line wrap: on
line source
[
    {
        "pk": 7, 
        "model": "downloads.allowedextension", 
        "fields": {
            "extension": ".gif"
        }
    }, 
    {
        "pk": 9, 
        "model": "downloads.allowedextension", 
        "fields": {
            "extension": ".jpeg"
        }
    }, 
    {
        "pk": 8, 
        "model": "downloads.allowedextension", 
        "fields": {
            "extension": ".jpg"
        }
    }, 
    {
        "pk": 6, 
        "model": "downloads.allowedextension", 
        "fields": {
            "extension": ".m4a"
        }
    }, 
    {
        "pk": 10, 
        "model": "downloads.allowedextension", 
        "fields": {
            "extension": ".mov"
        }
    }, 
    {
        "pk": 3, 
        "model": "downloads.allowedextension", 
        "fields": {
            "extension": ".mp3"
        }
    }, 
    {
        "pk": 5, 
        "model": "downloads.allowedextension", 
        "fields": {
            "extension": ".mp4"
        }
    }, 
    {
        "pk": 2, 
        "model": "downloads.allowedextension", 
        "fields": {
            "extension": ".pdf"
        }
    }, 
    {
        "pk": 13, 
        "model": "downloads.allowedextension", 
        "fields": {
            "extension": ".png"
        }
    }, 
    {
        "pk": 1, 
        "model": "downloads.allowedextension", 
        "fields": {
            "extension": ".txt"
        }
    }, 
    {
        "pk": 4, 
        "model": "downloads.allowedextension", 
        "fields": {
            "extension": ".wma"
        }
    }, 
    {
        "pk": 11, 
        "model": "downloads.allowedextension", 
        "fields": {
            "extension": ".zip"
        }
    }
]