Cache media file size. Reorganize uploading. Remove some unused code.
[wolnelektury.git] / src / catalogue / fixtures / test-books.yaml
1
2 - model: catalogue.book
3   pk: 1
4   fields:
5     slug: parent
6     title: Parent
7     sort_key: parent
8     sort_key_author: john doe
9     xml_file: xml/parent.xml
10     epub_file: epub/parent.epub
11     mobi_file: mobi/parent.mobi
12     pdf_file: pdf/parent.pdf
13     cover: cover/parent.jpg
14     recommended: true
15     created_at: "1970-01-03 0:0Z"
16     changed_at: "1970-01-03 0:0Z"
17     extra_info: '{"epoch": "Barok"}'
18     has_audio: true
19 - model: catalogue.book
20   pk: 2
21   fields:
22     slug: child
23     title: Child
24     sort_key: child
25     parent: 1
26     created_at: "1970-01-02 0:0Z"
27     changed_at: "1970-01-02 0:0Z"
28 - model: catalogue.book
29   pk: 3
30   fields:
31     slug: grandchild
32     title: Grandchild
33     sort_key: grandchild
34     parent: 2
35     xml_file: xml/grandchild.xml
36     txt_file: txt/grandchild.txt
37     html_file: html/grandchild.html
38     epub_file: epub/grandchild.epub
39     mobi_file: mobi/grandchild.mobi
40     pdf_file: pdf/grandchild.pdf
41     fb2_file: fb2/grandchild.fb2
42     created_at: "1970-01-01 0:0Z"
43     changed_at: "1970-01-01 0:0Z"
44
45 - model: catalogue.tag
46   pk: 1
47   fields:
48     slug: john-doe
49     sort_key: john doe
50     category: author
51     name: John Doe
52     created_at: "1970-01-03 0:0Z"
53     changed_at: "1970-01-03 0:0Z"
54 - model: catalogue.tag
55   pk: 2
56   fields:
57     slug: liryka
58     sort_key: liryka
59     category: kind
60     name: Liryka
61     created_at: "1970-01-03 0:0Z"
62     changed_at: "1970-01-03 0:0Z"
63 - model: catalogue.tag
64   pk: 3
65   fields:
66     slug: barok
67     sort_key: barok
68     category: epoch
69     name: Barok
70     created_at: "1970-01-03 0:0Z"
71     changed_at: "1970-01-03 0:0Z"
72 - model: catalogue.tag
73   pk: 4
74   fields:
75     slug: sonet
76     sort_key: sonet
77     category: genre
78     name: Sonet
79     created_at: "1970-01-03 0:0Z"
80     changed_at: "1970-01-03 0:0Z"
81 - model: catalogue.tag
82   pk: 5
83   fields:
84     slug: wiersz
85     sort_key: wiersz
86     category: genre
87     name: Wiersz
88     created_at: "1970-01-03 0:0Z"
89     changed_at: "1970-01-03 0:0Z"
90
91
92 - model: catalogue.tagrelation
93   fields:
94     tag: 1
95     content_type: ['catalogue', 'book']
96     object_id: 1
97 - model: catalogue.tagrelation
98   fields:
99     tag: 2
100     content_type: ['catalogue', 'book']
101     object_id: 1
102 - model: catalogue.tagrelation
103   fields:
104     tag: 3
105     content_type: ['catalogue', 'book']
106     object_id: 1
107 - model: catalogue.tagrelation
108   fields:
109     tag: 4
110     content_type: ['catalogue', 'book']
111     object_id: 1
112 - model: catalogue.tagrelation
113   fields:
114     tag: 4
115     content_type: ['catalogue', 'book']
116     object_id: 3
117 - model: catalogue.tagrelation
118   fields:
119     tag: 5
120     content_type: ['catalogue', 'book']
121     object_id: 2
122
123 - model: catalogue.bookmedia
124   fields:
125     book: 1
126     type: mp3
127     name: Parent Audiobook
128     file: mp3/parent.mp3
129     duration: 60
130     uploaded_at: "1970-01-03 0:0Z"
131     extra_info: '{"director_name": "Director", "artist_name": "Artist"}'
132 - model: catalogue.bookmedia
133   fields:
134     book: 1
135     type: daisy
136     name: Parent DAISY
137     file: daisy/parent.daisy
138     uploaded_at: "1970-01-03 0:0Z"
139
140 - model: catalogue.fragment
141   pk: 1
142   fields:
143     short_text: "Fragment"
144     text: "A fragment"
145     anchor: "an-anchor"
146     book: 2
147 - model: catalogue.tagrelation
148   fields:
149     tag: 5
150     content_type: ['catalogue', 'fragment']
151     object_id: 1
152 - model: catalogue.tag
153   pk: 101
154   fields:
155     slug: koniec
156     sort_key: koniec
157     category: theme
158     name: Koniec
159     created_at: "1970-01-03 0:0Z"
160     changed_at: "1970-01-03 0:0Z"
161 - model: catalogue.tagrelation
162   fields:
163     tag: 101
164     content_type: ['catalogue', 'fragment']
165     object_id: 1
166
167 - model: catalogue.collection
168   fields:
169     title: A Collection
170     slug: a-collection
171     description: Description
172     book_slugs: parent
173