annotate gpp/downloads/fixtures/downloads_categories.json @ 552:9e42e6618168
For bitbucket issue #2, tweak the admin settings for the Post model to
reduce slow queries. Define our own queryset() method so we can control the
select_related(), and not have it cascade from post to topics to forums to
categories. Removed 'topic' from list_display because MySQL still sucked with
2 inner joins. Now it seems to be tolerable with only one join to User.
author |
Brian Neal <bgneal@gmail.com> |
date |
Wed, 25 Jan 2012 20:07:03 -0600 |
parents |
2ba1a6d3b984 |
children |
|
rev |
line source |
bgneal@236
|
1 [
|
bgneal@236
|
2 {
|
bgneal@236
|
3 "pk": 1,
|
bgneal@236
|
4 "model": "downloads.category",
|
bgneal@236
|
5 "fields": {
|
bgneal@236
|
6 "count": 0,
|
bgneal@236
|
7 "description": "Jam along to backing tracks made by your fellow SG101'ers!",
|
bgneal@251
|
8 "slug": "backing-tracks",
|
bgneal@236
|
9 "title": "Backing Tracks"
|
bgneal@236
|
10 }
|
bgneal@236
|
11 },
|
bgneal@236
|
12 {
|
bgneal@236
|
13 "pk": 5,
|
bgneal@236
|
14 "model": "downloads.category",
|
bgneal@236
|
15 "fields": {
|
bgneal@236
|
16 "count": 0,
|
bgneal@236
|
17 "description": "User demos.",
|
bgneal@251
|
18 "slug": "demos",
|
bgneal@236
|
19 "title": "Demos"
|
bgneal@236
|
20 }
|
bgneal@236
|
21 },
|
bgneal@236
|
22 {
|
bgneal@236
|
23 "pk": 2,
|
bgneal@236
|
24 "model": "downloads.category",
|
bgneal@236
|
25 "fields": {
|
bgneal@236
|
26 "count": 0,
|
bgneal@236
|
27 "description": "Recordings of user gear in action.",
|
bgneal@251
|
28 "slug": "gear-samples",
|
bgneal@236
|
29 "title": "Gear Samples"
|
bgneal@236
|
30 }
|
bgneal@236
|
31 },
|
bgneal@236
|
32 {
|
bgneal@236
|
33 "pk": 6,
|
bgneal@236
|
34 "model": "downloads.category",
|
bgneal@236
|
35 "fields": {
|
bgneal@236
|
36 "count": 0,
|
bgneal@236
|
37 "description": "Interviews with surf scenesters.",
|
bgneal@251
|
38 "slug": "interviews",
|
bgneal@236
|
39 "title": "Interviews"
|
bgneal@236
|
40 }
|
bgneal@236
|
41 },
|
bgneal@236
|
42 {
|
bgneal@236
|
43 "pk": 3,
|
bgneal@236
|
44 "model": "downloads.category",
|
bgneal@236
|
45 "fields": {
|
bgneal@255
|
46 "count": 0,
|
bgneal@236
|
47 "description": "Anything else.",
|
bgneal@251
|
48 "slug": "misc",
|
bgneal@236
|
49 "title": "Misc"
|
bgneal@236
|
50 }
|
bgneal@236
|
51 },
|
bgneal@236
|
52 {
|
bgneal@236
|
53 "pk": 7,
|
bgneal@236
|
54 "model": "downloads.category",
|
bgneal@236
|
55 "fields": {
|
bgneal@236
|
56 "count": 0,
|
bgneal@236
|
57 "description": "Legal music created by members.",
|
bgneal@251
|
58 "slug": "music",
|
bgneal@236
|
59 "title": "Music"
|
bgneal@236
|
60 }
|
bgneal@236
|
61 },
|
bgneal@236
|
62 {
|
bgneal@236
|
63 "pk": 4,
|
bgneal@236
|
64 "model": "downloads.category",
|
bgneal@236
|
65 "fields": {
|
bgneal@236
|
66 "count": 0,
|
bgneal@236
|
67 "description": "Please upload original surf music ringtones here.",
|
bgneal@251
|
68 "slug": "ringtones",
|
bgneal@236
|
69 "title": "Ringtones"
|
bgneal@236
|
70 }
|
bgneal@236
|
71 },
|
bgneal@236
|
72 {
|
bgneal@236
|
73 "pk": 8,
|
bgneal@236
|
74 "model": "downloads.category",
|
bgneal@236
|
75 "fields": {
|
bgneal@236
|
76 "count": 0,
|
bgneal@236
|
77 "description": "User contributed tablature. Please upload in .pdf or .txt formats only.",
|
bgneal@251
|
78 "slug": "tablature",
|
bgneal@236
|
79 "title": "Tablature"
|
bgneal@236
|
80 }
|
bgneal@236
|
81 }
|
bgneal@255
|
82 ]
|