Skip to content

Commit 48281f4

Browse files
fix: Add fixtures for Handshape, SemanticField and DerivationHistory
1 parent 154b639 commit 48281f4

File tree

4 files changed

+4582
-0
lines changed

4 files changed

+4582
-0
lines changed

INSTALL.sh

+6
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,18 @@ bin/develop.py createsuperuser
33

44
echo 'from django.contrib.contenttypes.models import ContentType; ContentType.objects.all().delete()' | bin/develop.py shell
55
echo 'from signbank.dictionary.models import FieldChoice; FieldChoice.objects.all().delete()' | bin/develop.py shell
6+
echo 'from signbank.dictionary.models import Handshape; Handshape.objects.all().delete()' | bin/develop.py shell
7+
echo 'from signbank.dictionary.models import SemanticField; SemanticField.objects.all().delete()' | bin/develop.py shell
8+
echo 'from signbank.dictionary.models import DerivationHistory; DerivationHistory.objects.all().delete()' | bin/develop.py shell
69

710
bin/develop.py loaddata fixtures/content_types.json
811
bin/develop.py loaddata fixtures/permissions.json
912
bin/develop.py loaddata fixtures/groups.json
1013
bin/develop.py loaddata fixtures/fieldchoices.json
1114
bin/develop.py loaddata fixtures/pages.json
15+
bin/develop.py loaddata fixtures/handshapes.json
16+
bin/develop.py loaddata fixtures/semanticfields.json
17+
bin/develop.py loaddata fixtures/derivationhistories.json
1218

1319
echo
1420
echo "IMPORTANT: Add yourself to Dataset_Manager group in admin"

fixtures/derivationhistories.json

+98
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
[
2+
{
3+
"model": "dictionary.derivationhistory",
4+
"pk": 0,
5+
"fields": {
6+
"name": "-",
7+
"name_en": "-",
8+
"name_nl": "-",
9+
"name_zh_hans": "-",
10+
"field_color": "ffffff",
11+
"description": null
12+
}
13+
},
14+
{
15+
"model": "dictionary.derivationhistory",
16+
"pk": 1,
17+
"fields": {
18+
"name": "N/A",
19+
"name_en": "N/A",
20+
"name_nl": "N/A",
21+
"name_zh_hans": "N/A",
22+
"field_color": "ffffff",
23+
"description": null
24+
}
25+
},
26+
{
27+
"model": "dictionary.derivationhistory",
28+
"pk": 4,
29+
"fields": {
30+
"name": "Arc",
31+
"name_en": "Arc",
32+
"name_nl": "Arc",
33+
"name_zh_hans": "Arc",
34+
"field_color": "ffffff",
35+
"description": null
36+
}
37+
},
38+
{
39+
"model": "dictionary.derivationhistory",
40+
"pk": 6,
41+
"fields": {
42+
"name": "Straight",
43+
"name_en": "Straight",
44+
"name_nl": "Straight",
45+
"name_zh_hans": "Straight",
46+
"field_color": "ffffff",
47+
"description": null
48+
}
49+
},
50+
{
51+
"model": "dictionary.derivationhistory",
52+
"pk": 12,
53+
"fields": {
54+
"name": "Zigzag",
55+
"name_en": "Zigzag",
56+
"name_nl": "Zigzag",
57+
"name_zh_hans": "Zigzag",
58+
"field_color": "ffffff",
59+
"description": null
60+
}
61+
},
62+
{
63+
"model": "dictionary.derivationhistory",
64+
"pk": 37,
65+
"fields": {
66+
"name": "Circle",
67+
"name_en": "Circle",
68+
"name_nl": "Circle",
69+
"name_zh_hans": "Circle",
70+
"field_color": "ffffff",
71+
"description": null
72+
}
73+
},
74+
{
75+
"model": "dictionary.derivationhistory",
76+
"pk": 44,
77+
"fields": {
78+
"name": "Motivated shape",
79+
"name_en": "Motivated shape",
80+
"name_nl": "Motivated shape",
81+
"name_zh_hans": "Motivated shape",
82+
"field_color": "ffffff",
83+
"description": null
84+
}
85+
},
86+
{
87+
"model": "dictionary.derivationhistory",
88+
"pk": 45,
89+
"fields": {
90+
"name": "Spiral",
91+
"name_en": "Spiral",
92+
"name_nl": "Spiral",
93+
"name_zh_hans": "Spiral",
94+
"field_color": "ffffff",
95+
"description": null
96+
}
97+
}
98+
]

0 commit comments

Comments
 (0)