view gpp/downloads/fixtures/downloads_categories.json @ 318:c550933ff5b6

Fix a bug where you'd get an error when trying to delete a forum thread (topic does not exist). Apparently when you call topic.delete() the posts would get deleted, but the signal handler for each one would run, and it would try to update the topic's post count or something, but the topic was gone? Reworked the code a bit and explicitly delete the posts first. I also added a sync() call on the parent forum since post counts were not getting adjusted.
author Brian Neal <bgneal@gmail.com>
date Sat, 05 Feb 2011 21:46:52 +0000
parents 2ba1a6d3b984
children
line wrap: on
line source
[
    {
        "pk": 1, 
        "model": "downloads.category", 
        "fields": {
            "count": 0, 
            "description": "Jam along to backing tracks made by your fellow SG101'ers!", 
            "slug": "backing-tracks", 
            "title": "Backing Tracks"
        }
    }, 
    {
        "pk": 5, 
        "model": "downloads.category", 
        "fields": {
            "count": 0, 
            "description": "User demos.", 
            "slug": "demos", 
            "title": "Demos"
        }
    }, 
    {
        "pk": 2, 
        "model": "downloads.category", 
        "fields": {
            "count": 0, 
            "description": "Recordings of user gear in action.", 
            "slug": "gear-samples", 
            "title": "Gear Samples"
        }
    }, 
    {
        "pk": 6, 
        "model": "downloads.category", 
        "fields": {
            "count": 0, 
            "description": "Interviews with surf scenesters.", 
            "slug": "interviews", 
            "title": "Interviews"
        }
    }, 
    {
        "pk": 3, 
        "model": "downloads.category", 
        "fields": {
            "count": 0, 
            "description": "Anything else.", 
            "slug": "misc", 
            "title": "Misc"
        }
    }, 
    {
        "pk": 7, 
        "model": "downloads.category", 
        "fields": {
            "count": 0, 
            "description": "Legal music created by members.", 
            "slug": "music", 
            "title": "Music"
        }
    }, 
    {
        "pk": 4, 
        "model": "downloads.category", 
        "fields": {
            "count": 0, 
            "description": "Please upload original surf music ringtones here.", 
            "slug": "ringtones", 
            "title": "Ringtones"
        }
    }, 
    {
        "pk": 8, 
        "model": "downloads.category", 
        "fields": {
            "count": 0, 
            "description": "User contributed tablature. Please upload in .pdf or .txt formats only.", 
            "slug": "tablature", 
            "title": "Tablature"
        }
    }
]