Skip to content

Commit ec4c80c

Browse files
JacobCoffeeclaude
andcommitted
feat: add dev fixtures for sponsors and events
Add fixture files for bootstrapping development environments with sample sponsor and event data. Uses natural foreign keys for content types and user references to avoid breakage when content type IDs change. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 43c8e2a commit ec4c80c

2 files changed

Lines changed: 5235 additions & 0 deletions

File tree

fixtures/events.json

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
[
2+
{
3+
"model": "events.calendar",
4+
"pk": 1,
5+
"fields": {
6+
"created": "2024-10-08T18:43:33.081Z",
7+
"updated": "2024-10-08T18:43:33.123Z",
8+
"creator": [
9+
"admin"
10+
],
11+
"last_modified_by": null,
12+
"url": null,
13+
"rss": "http://python.org/downloads/feed.rss",
14+
"embed": null,
15+
"twitter": "https://x.com/ThePSF",
16+
"name": "python-events",
17+
"slug": "python-events",
18+
"description": "Example"
19+
}
20+
},
21+
{
22+
"model": "events.eventcategory",
23+
"pk": 1,
24+
"fields": {
25+
"name": "test category",
26+
"slug": "test-category",
27+
"calendar": 1
28+
}
29+
},
30+
{
31+
"model": "events.eventlocation",
32+
"pk": 1,
33+
"fields": {
34+
"calendar": 1,
35+
"name": "Location",
36+
"address": "123 Python Way",
37+
"url": null
38+
}
39+
},
40+
{
41+
"model": "events.event",
42+
"pk": 1,
43+
"fields": {
44+
"created": "2024-10-08T18:45:00.226Z",
45+
"updated": "2024-10-08T18:45:00.243Z",
46+
"creator": [
47+
"admin"
48+
],
49+
"last_modified_by": null,
50+
"uid": null,
51+
"title": "Example event",
52+
"calendar": 1,
53+
"description": "Example event",
54+
"description_markup_type": "restructuredtext",
55+
"venue": null,
56+
"_description_rendered": "<p>Example event</p>\n",
57+
"featured": true,
58+
"categories": [
59+
1
60+
]
61+
}
62+
},
63+
{
64+
"model": "events.event",
65+
"pk": 2,
66+
"fields": {
67+
"created": "2024-10-08T18:45:16.377Z",
68+
"updated": "2024-10-08T18:45:16.387Z",
69+
"creator": [
70+
"admin"
71+
],
72+
"last_modified_by": null,
73+
"uid": null,
74+
"title": "Example event 2",
75+
"calendar": 1,
76+
"description": "event",
77+
"description_markup_type": "restructuredtext",
78+
"venue": null,
79+
"_description_rendered": "<p>event</p>\n",
80+
"featured": false,
81+
"categories": [
82+
1
83+
]
84+
}
85+
},
86+
{
87+
"model": "events.event",
88+
"pk": 3,
89+
"fields": {
90+
"created": "2024-10-08T18:47:21.240Z",
91+
"updated": "2024-10-08T18:47:21.249Z",
92+
"creator": [
93+
"admin"
94+
],
95+
"last_modified_by": null,
96+
"uid": null,
97+
"title": "Example event 3",
98+
"calendar": 1,
99+
"description": "event",
100+
"description_markup_type": "restructuredtext",
101+
"venue": null,
102+
"_description_rendered": "<p>event</p>\n",
103+
"featured": false,
104+
"categories": []
105+
}
106+
},
107+
{
108+
"model": "events.occurringrule",
109+
"pk": 1,
110+
"fields": {
111+
"event": 1,
112+
"dt_start": "2024-10-07T18:42:45Z",
113+
"dt_end": "2030-10-08T18:42:45Z",
114+
"all_day": true
115+
}
116+
},
117+
{
118+
"model": "events.occurringrule",
119+
"pk": 2,
120+
"fields": {
121+
"event": 2,
122+
"dt_start": "2020-10-08T18:45:00Z",
123+
"dt_end": "2023-10-08T18:45:00Z",
124+
"all_day": false
125+
}
126+
},
127+
{
128+
"model": "events.occurringrule",
129+
"pk": 3,
130+
"fields": {
131+
"event": 3,
132+
"dt_start": "2025-10-08T18:45:16Z",
133+
"dt_end": "2025-10-31T18:45:16Z",
134+
"all_day": false
135+
}
136+
},
137+
{
138+
"model": "events.recurringrule",
139+
"pk": 1,
140+
"fields": {
141+
"event": 3,
142+
"begin": "2024-10-08T18:45:16Z",
143+
"finish": "2024-10-09T18:45:16Z",
144+
"duration_internal": "00:15:00",
145+
"duration": "15 min",
146+
"interval": 1,
147+
"frequency": 3,
148+
"all_day": false
149+
}
150+
}
151+
]

0 commit comments

Comments
 (0)