Skip to content

Commit 160c4e1

Browse files
committed
Added fixture data
1 parent 1acef69 commit 160c4e1

3 files changed

Lines changed: 173 additions & 1 deletion

File tree

Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
[
2+
{
3+
"model": "users.user",
4+
"pk": 1,
5+
"fields": {
6+
"password": "!QOegZX0EFLTPMUheUJaZHT2iBlDjTUVteO1ERFoL",
7+
"last_login": "2025-07-05T16:23:01.641Z",
8+
"is_superuser": false,
9+
"username": "test",
10+
"email": "",
11+
"is_staff": false,
12+
"is_active": true,
13+
"date_joined": "2025-07-04T23:22:05.325Z",
14+
"name": "",
15+
"groups": [],
16+
"user_permissions": []
17+
}
18+
},
19+
{
20+
"model": "users.user",
21+
"pk": 2,
22+
"fields": {
23+
"password": "!QOegZX0EFLTPMUheUJaZHT2iBlDjTUVteO1ERFoL",
24+
"last_login": "2025-07-05T00:26:58.691Z",
25+
"is_superuser": true,
26+
"username": "test2",
27+
"email": "",
28+
"is_staff": true,
29+
"is_active": true,
30+
"date_joined": "2025-07-05T00:26:54.979Z",
31+
"name": "",
32+
"groups": [],
33+
"user_permissions": []
34+
}
35+
},
36+
{
37+
"model": "activitypub.person",
38+
"pk": 1,
39+
"fields": {
40+
"created": "2025-07-04T23:22:11.652Z",
41+
"modified": "2025-07-04T23:22:11.652Z",
42+
"user": 1,
43+
"private_key": "private_key_placeholder",
44+
"public_key": "public_key_placeholder",
45+
"bio": "",
46+
"following": []
47+
}
48+
},
49+
{
50+
"model": "activitypub.person",
51+
"pk": 2,
52+
"fields": {
53+
"created": "2025-07-05T16:15:12.547Z",
54+
"modified": "2025-07-05T16:15:12.547Z",
55+
"user": 2,
56+
"private_key": "private_key_placeholder",
57+
"public_key": "public_key_placeholder",
58+
"bio": "",
59+
"following": []
60+
}
61+
},
62+
{
63+
"model": "activitypub.like",
64+
"pk": 1,
65+
"fields": { "person": 2, "note": 1, "created": "2025-07-05T16:15:47.380Z" }
66+
},
67+
{
68+
"model": "activitypub.like",
69+
"pk": 2,
70+
"fields": { "person": 2, "note": 2, "created": "2025-07-05T16:15:49.455Z" }
71+
},
72+
{
73+
"model": "activitypub.like",
74+
"pk": 3,
75+
"fields": { "person": 1, "note": 2, "created": "2025-07-05T16:23:07.500Z" }
76+
},
77+
{
78+
"model": "activitypub.repost",
79+
"pk": 1,
80+
"fields": { "person": 2, "note": 1, "created": "2025-07-05T16:15:30.859Z" }
81+
},
82+
{
83+
"model": "activitypub.repost",
84+
"pk": 2,
85+
"fields": { "person": 2, "note": 4, "created": "2025-07-05T16:17:12.726Z" }
86+
},
87+
{
88+
"model": "activitypub.repost",
89+
"pk": 3,
90+
"fields": { "person": 1, "note": 2, "created": "2025-07-05T16:23:04.907Z" }
91+
},
92+
{
93+
"model": "activitypub.repost",
94+
"pk": 4,
95+
"fields": { "person": 1, "note": 5, "created": "2025-07-05T16:23:10.741Z" }
96+
},
97+
{
98+
"model": "activitypub.note",
99+
"pk": 1,
100+
"fields": {
101+
"created": "2025-07-04T23:22:33.271Z",
102+
"modified": "2025-07-04T23:22:33.271Z",
103+
"author": 1,
104+
"content": "This is a note.",
105+
"in_reply_to": null,
106+
"lft": 1,
107+
"rght": 2,
108+
"tree_id": 1,
109+
"level": 0
110+
}
111+
},
112+
{
113+
"model": "activitypub.note",
114+
"pk": 2,
115+
"fields": {
116+
"created": "2025-07-04T23:22:43.126Z",
117+
"modified": "2025-07-04T23:22:43.126Z",
118+
"author": 1,
119+
"content": "This is another note.",
120+
"in_reply_to": null,
121+
"lft": 1,
122+
"rght": 6,
123+
"tree_id": 2,
124+
"level": 0
125+
}
126+
},
127+
{
128+
"model": "activitypub.note",
129+
"pk": 3,
130+
"fields": {
131+
"created": "2025-07-04T23:23:17.547Z",
132+
"modified": "2025-07-04T23:23:17.547Z",
133+
"author": 1,
134+
"content": "This is a reply to that other note.",
135+
"in_reply_to": 2,
136+
"lft": 2,
137+
"rght": 5,
138+
"tree_id": 2,
139+
"level": 1
140+
}
141+
},
142+
{
143+
"model": "activitypub.note",
144+
"pk": 4,
145+
"fields": {
146+
"created": "2025-07-05T16:15:43.177Z",
147+
"modified": "2025-07-05T16:15:43.177Z",
148+
"author": 2,
149+
"content": "This is a note by a different user",
150+
"in_reply_to": null,
151+
"lft": 1,
152+
"rght": 2,
153+
"tree_id": 3,
154+
"level": 0
155+
}
156+
},
157+
{
158+
"model": "activitypub.note",
159+
"pk": 5,
160+
"fields": {
161+
"created": "2025-07-05T16:16:39.332Z",
162+
"modified": "2025-07-05T16:16:39.332Z",
163+
"author": 2,
164+
"content": "This is a reply to a reply by a different user! (I need to improve the display of replies to replies in the note detail view)",
165+
"in_reply_to": 3,
166+
"lft": 3,
167+
"rght": 4,
168+
"tree_id": 2,
169+
"level": 2
170+
}
171+
}
172+
]
File renamed without changes.

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ migrate: (manage "makemigrations") (manage "migrate")
6262

6363
# Load initial data into the database
6464
[group("management")]
65-
loaddata +filename="initial.json": (manage "loaddata" filename)
65+
loaddata +filename="democrasite activitypub": (manage "loaddata" filename)
6666

6767
# Create a superuser account
6868
[group("management")]

0 commit comments

Comments
 (0)