| author | ymh <ymh.work@gmail.com> |
| Thu, 06 Nov 2014 02:08:12 +0100 | |
| changeset 176 | a343992c55fd |
| parent 131 | f1854630734f |
| permissions | -rw-r--r-- |
| 0 | 1 |
# -*- coding: utf-8 -*- |
| 126 | 2 |
# |
| 131 | 3 |
# Copyright IRI (c) 2013 |
| 126 | 4 |
# |
5 |
# contact@iri.centrepompidou.fr |
|
6 |
# |
|
7 |
# This software is governed by the CeCILL-B license under French law and |
|
8 |
# abiding by the rules of distribution of free software. You can use, |
|
9 |
# modify and/ or redistribute the software under the terms of the CeCILL-B |
|
10 |
# license as circulated by CEA, CNRS and INRIA at the following URL |
|
11 |
# "http://www.cecill.info". |
|
12 |
# |
|
13 |
# As a counterpart to the access to the source code and rights to copy, |
|
14 |
# modify and redistribute granted by the license, users are provided only |
|
15 |
# with a limited warranty and the software's author, the holder of the |
|
16 |
# economic rights, and the successive licensors have only limited |
|
17 |
# liability. |
|
18 |
# |
|
19 |
# In this respect, the user's attention is drawn to the risks associated |
|
20 |
# with loading, using, modifying and/or developing or reproducing the |
|
21 |
# software by the user in light of its specific status of free software, |
|
22 |
# that may mean that it is complicated to manipulate, and that also |
|
23 |
# therefore means that it is reserved for developers and experienced |
|
24 |
# professionals having in-depth computer knowledge. Users are therefore |
|
25 |
# encouraged to load and test the software's suitability as regards their |
|
26 |
# requirements in conditions enabling the security of their systems and/or |
|
27 |
# data to be ensured and, more generally, to use and operate it in the |
|
28 |
# same conditions as regards security. |
|
29 |
# |
|
30 |
# The fact that you are presently reading this means that you have had |
|
31 |
# knowledge of the CeCILL-B license and that you accept its terms. |
|
32 |
# |
|
33 |
||
| 0 | 34 |
import datetime |
|
108
c08f9b46a6c5
use PEP8 convention on system fields for Records
ymh <ymh.work@gmail.com>
parents:
104
diff
changeset
|
35 |
|
|
c08f9b46a6c5
use PEP8 convention on system fields for Records
ymh <ymh.work@gmail.com>
parents:
104
diff
changeset
|
36 |
from django.db import models |
| 0 | 37 |
from south.db import db |
38 |
from south.v2 import SchemaMigration |
|
39 |
||
40 |
||
41 |
class Migration(SchemaMigration): |
|
42 |
||
43 |
def forwards(self, orm): |
|
|
104
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
44 |
# Adding model 'User' |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
45 |
db.create_table(u'p4l_user', ( |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
46 |
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
47 |
('password', self.gf('django.db.models.fields.CharField')(max_length=128)), |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
48 |
('last_login', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
49 |
('is_superuser', self.gf('django.db.models.fields.BooleanField')(default=False)), |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
50 |
('username', self.gf('django.db.models.fields.CharField')(unique=True, max_length=30)), |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
51 |
('first_name', self.gf('django.db.models.fields.CharField')(max_length=30, blank=True)), |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
52 |
('last_name', self.gf('django.db.models.fields.CharField')(max_length=30, blank=True)), |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
53 |
('email', self.gf('django.db.models.fields.EmailField')(max_length=75, blank=True)), |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
54 |
('is_staff', self.gf('django.db.models.fields.BooleanField')(default=False)), |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
55 |
('is_active', self.gf('django.db.models.fields.BooleanField')(default=True)), |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
56 |
('date_joined', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
57 |
('language', self.gf('django.db.models.fields.CharField')(default='en', max_length=2)), |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
58 |
)) |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
59 |
db.send_create_signal('p4l', ['User']) |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
60 |
|
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
61 |
# Adding M2M table for field groups on 'User' |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
62 |
db.create_table(u'p4l_user_groups', ( |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
63 |
('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
64 |
('user', models.ForeignKey(orm['p4l.user'], null=False)), |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
65 |
('group', models.ForeignKey(orm[u'auth.group'], null=False)) |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
66 |
)) |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
67 |
db.create_unique(u'p4l_user_groups', ['user_id', 'group_id']) |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
68 |
|
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
69 |
# Adding M2M table for field user_permissions on 'User' |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
70 |
db.create_table(u'p4l_user_user_permissions', ( |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
71 |
('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
72 |
('user', models.ForeignKey(orm['p4l.user'], null=False)), |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
73 |
('permission', models.ForeignKey(orm[u'auth.permission'], null=False)) |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
74 |
)) |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
75 |
db.create_unique(u'p4l_user_user_permissions', ['user_id', 'permission_id']) |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
76 |
|
| 0 | 77 |
# Adding model 'Imprint' |
78 |
db.create_table(u'p4l_imprint', ( |
|
79 |
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
80 |
('lang', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=15, null=True, blank=True)), |
|
81 |
('record', self.gf('django.db.models.fields.related.ForeignKey')(related_name='imprints', to=orm['p4l.Record'])), |
|
82 |
('imprintCity', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=512, null=True, blank=True)), |
|
83 |
('publisher', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=512, null=True, blank=True)), |
|
84 |
('imprintDate', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=512, null=True, blank=True)), |
|
85 |
)) |
|
86 |
db.send_create_signal('p4l', ['Imprint']) |
|
87 |
||
88 |
# Adding model 'Serie' |
|
89 |
db.create_table(u'p4l_serie', ( |
|
90 |
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
|
13
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
91 |
('lang', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=15, null=True, blank=True)), |
|
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
92 |
('record', self.gf('django.db.models.fields.related.ForeignKey')(related_name='series', to=orm['p4l.Record'])), |
| 0 | 93 |
('title', self.gf('django.db.models.fields.CharField')(max_length=2048, db_index=True)), |
94 |
('volume', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=2048, null=True, blank=True)), |
|
95 |
)) |
|
96 |
db.send_create_signal('p4l', ['Serie']) |
|
97 |
||
98 |
# Adding model 'ProjectName' |
|
99 |
db.create_table(u'p4l_projectname', ( |
|
100 |
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
| 15 | 101 |
('uri', self.gf('django.db.models.fields.URLField')(unique=True, max_length=2048, db_index=True)), |
| 0 | 102 |
)) |
103 |
db.send_create_signal('p4l', ['ProjectName']) |
|
104 |
||
105 |
# Adding model 'CorporateAuthor' |
|
106 |
db.create_table(u'p4l_corporateauthor', ( |
|
107 |
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
| 15 | 108 |
('uri', self.gf('django.db.models.fields.URLField')(unique=True, max_length=2048, db_index=True)), |
| 0 | 109 |
)) |
110 |
db.send_create_signal('p4l', ['CorporateAuthor']) |
|
111 |
||
112 |
# Adding model 'Url' |
|
113 |
db.create_table(u'p4l_url', ( |
|
114 |
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
115 |
('record', self.gf('django.db.models.fields.related.ForeignKey')(related_name='urls', to=orm['p4l.Record'])), |
|
116 |
('address', self.gf('django.db.models.fields.CharField')(max_length=2048, db_index=True)), |
|
117 |
('display', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=2048, null=True, blank=True)), |
|
118 |
)) |
|
119 |
db.send_create_signal('p4l', ['Url']) |
|
120 |
||
121 |
# Adding model 'Subject' |
|
122 |
db.create_table(u'p4l_subject', ( |
|
123 |
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
| 15 | 124 |
('uri', self.gf('django.db.models.fields.URLField')(unique=True, max_length=2048, db_index=True)), |
| 0 | 125 |
)) |
126 |
db.send_create_signal('p4l', ['Subject']) |
|
127 |
||
128 |
# Adding model 'Theme' |
|
129 |
db.create_table(u'p4l_theme', ( |
|
130 |
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
| 15 | 131 |
('uri', self.gf('django.db.models.fields.URLField')(unique=True, max_length=2048, db_index=True)), |
| 0 | 132 |
)) |
133 |
db.send_create_signal('p4l', ['Theme']) |
|
134 |
||
135 |
# Adding model 'Country' |
|
136 |
db.create_table(u'p4l_country', ( |
|
137 |
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
| 15 | 138 |
('uri', self.gf('django.db.models.fields.URLField')(unique=True, max_length=2048, db_index=True)), |
| 0 | 139 |
)) |
140 |
db.send_create_signal('p4l', ['Country']) |
|
141 |
||
| 97 | 142 |
# Adding model 'Audience' |
143 |
db.create_table(u'p4l_audience', ( |
|
144 |
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
145 |
('uri', self.gf('django.db.models.fields.URLField')(unique=True, max_length=2048, db_index=True)), |
|
146 |
)) |
|
147 |
db.send_create_signal('p4l', ['Audience']) |
|
148 |
||
| 0 | 149 |
# Adding model 'Isbn' |
150 |
db.create_table(u'p4l_isbn', ( |
|
151 |
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
152 |
('lang', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=15, null=True, blank=True)), |
|
153 |
('record', self.gf('django.db.models.fields.related.ForeignKey')(related_name='isbns', to=orm['p4l.Record'])), |
|
154 |
('isbn', self.gf('django.db.models.fields.CharField')(max_length=128)), |
|
155 |
)) |
|
156 |
db.send_create_signal('p4l', ['Isbn']) |
|
157 |
||
158 |
# Adding model 'Issn' |
|
159 |
db.create_table(u'p4l_issn', ( |
|
160 |
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
161 |
('lang', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=15, null=True, blank=True)), |
|
162 |
('record', self.gf('django.db.models.fields.related.ForeignKey')(related_name='issns', to=orm['p4l.Record'])), |
|
163 |
('issn', self.gf('django.db.models.fields.CharField')(max_length=128)), |
|
164 |
)) |
|
165 |
db.send_create_signal('p4l', ['Issn']) |
|
166 |
||
167 |
# Adding model 'DocumentCode' |
|
168 |
db.create_table(u'p4l_documentcode', ( |
|
169 |
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
170 |
('lang', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=15, null=True, blank=True)), |
|
171 |
('record', self.gf('django.db.models.fields.related.ForeignKey')(related_name='documentCodes', to=orm['p4l.Record'])), |
|
172 |
('documentCode', self.gf('django.db.models.fields.CharField')(max_length=128)), |
|
173 |
)) |
|
174 |
db.send_create_signal('p4l', ['DocumentCode']) |
|
175 |
||
176 |
# Adding model 'Language' |
|
177 |
db.create_table(u'p4l_language', ( |
|
178 |
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
| 15 | 179 |
('uri', self.gf('django.db.models.fields.URLField')(unique=True, max_length=2048, db_index=True)), |
| 0 | 180 |
)) |
181 |
db.send_create_signal('p4l', ['Language']) |
|
182 |
||
183 |
# Adding model 'Title' |
|
184 |
db.create_table(u'p4l_title', ( |
|
185 |
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
186 |
('lang', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=15, null=True, blank=True)), |
|
187 |
('title', self.gf('django.db.models.fields.CharField')(max_length=2048, db_index=True)), |
|
188 |
('record', self.gf('django.db.models.fields.related.ForeignKey')(related_name='titles', to=orm['p4l.Record'])), |
|
189 |
)) |
|
190 |
db.send_create_signal('p4l', ['Title']) |
|
191 |
||
192 |
# Adding model 'AddedTitle' |
|
193 |
db.create_table(u'p4l_addedtitle', ( |
|
194 |
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
195 |
('lang', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=15, null=True, blank=True)), |
|
196 |
('title', self.gf('django.db.models.fields.CharField')(max_length=2048, db_index=True)), |
|
197 |
('record', self.gf('django.db.models.fields.related.ForeignKey')(related_name='addedTitles', to=orm['p4l.Record'])), |
|
198 |
)) |
|
199 |
db.send_create_signal('p4l', ['AddedTitle']) |
|
200 |
||
201 |
# Adding model 'TitleMainDocument' |
|
202 |
db.create_table(u'p4l_titlemaindocument', ( |
|
203 |
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
204 |
('lang', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=15, null=True, blank=True)), |
|
205 |
('title', self.gf('django.db.models.fields.CharField')(max_length=2048, db_index=True)), |
|
206 |
('record', self.gf('django.db.models.fields.related.ForeignKey')(related_name='titlesMainDocument', to=orm['p4l.Record'])), |
|
207 |
)) |
|
208 |
db.send_create_signal('p4l', ['TitleMainDocument']) |
|
209 |
||
210 |
# Adding model 'Abstract' |
|
211 |
db.create_table(u'p4l_abstract', ( |
|
212 |
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
213 |
('lang', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=15, null=True, blank=True)), |
|
214 |
('record', self.gf('django.db.models.fields.related.ForeignKey')(related_name='abstracts', to=orm['p4l.Record'])), |
|
215 |
('abstract', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), |
|
216 |
)) |
|
217 |
db.send_create_signal('p4l', ['Abstract']) |
|
218 |
||
219 |
# Adding model 'Collation' |
|
220 |
db.create_table(u'p4l_collation', ( |
|
221 |
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
222 |
('lang', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=15, null=True, blank=True)), |
|
223 |
('record', self.gf('django.db.models.fields.related.ForeignKey')(related_name='collations', to=orm['p4l.Record'])), |
|
224 |
('collation', self.gf('django.db.models.fields.CharField')(max_length=1024, db_index=True)), |
|
225 |
)) |
|
226 |
db.send_create_signal('p4l', ['Collation']) |
|
227 |
||
228 |
# Adding model 'VolumeIssue' |
|
229 |
db.create_table(u'p4l_volumeissue', ( |
|
230 |
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
231 |
('lang', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=15, null=True, blank=True)), |
|
232 |
('record', self.gf('django.db.models.fields.related.ForeignKey')(related_name='volumeIssues', to=orm['p4l.Record'])), |
|
233 |
('volume', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=1024, null=True, blank=True)), |
|
234 |
('number', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=1024, null=True, blank=True)), |
|
235 |
)) |
|
236 |
db.send_create_signal('p4l', ['VolumeIssue']) |
|
237 |
||
238 |
# Adding model 'Author' |
|
239 |
db.create_table(u'p4l_author', ( |
|
240 |
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
|
13
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
241 |
('name', self.gf('django.db.models.fields.CharField')(max_length=2048, db_index=True)), |
|
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
242 |
('record', self.gf('django.db.models.fields.related.ForeignKey')(related_name='authors', to=orm['p4l.Record'])), |
| 0 | 243 |
)) |
244 |
db.send_create_signal('p4l', ['Author']) |
|
245 |
||
246 |
# Adding model 'SubjectPerson' |
|
247 |
db.create_table(u'p4l_subjectperson', ( |
|
248 |
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
|
13
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
249 |
('name', self.gf('django.db.models.fields.CharField')(max_length=2048, db_index=True)), |
|
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
250 |
('record', self.gf('django.db.models.fields.related.ForeignKey')(related_name='subjectPersons', to=orm['p4l.Record'])), |
| 0 | 251 |
)) |
252 |
db.send_create_signal('p4l', ['SubjectPerson']) |
|
253 |
||
254 |
# Adding model 'Periodical' |
|
255 |
db.create_table(u'p4l_periodical', ( |
|
256 |
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
|
13
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
257 |
('lang', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=15, null=True, blank=True)), |
|
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
258 |
('record', self.gf('django.db.models.fields.related.ForeignKey')(related_name='periodicals', to=orm['p4l.Record'])), |
|
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
259 |
('label', self.gf('django.db.models.fields.CharField')(max_length=2048, db_index=True)), |
| 0 | 260 |
)) |
261 |
db.send_create_signal('p4l', ['Periodical']) |
|
262 |
||
263 |
# Adding model 'Meeting' |
|
264 |
db.create_table(u'p4l_meeting', ( |
|
265 |
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
266 |
('label', self.gf('django.db.models.fields.CharField')(max_length=2048, db_index=True)), |
|
267 |
('meetingNumber', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=2048, null=True, blank=True)), |
|
268 |
('meetingPlace', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=2048, null=True, blank=True)), |
|
269 |
('meetingDate', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=2048, null=True, blank=True)), |
|
270 |
('meetingYear', self.gf('django.db.models.fields.PositiveSmallIntegerField')(db_index=True, null=True, blank=True)), |
|
|
13
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
271 |
('lang', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=15, null=True, blank=True)), |
|
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
272 |
('record', self.gf('django.db.models.fields.related.ForeignKey')(related_name='meetings', to=orm['p4l.Record'])), |
| 0 | 273 |
)) |
274 |
db.send_create_signal('p4l', ['Meeting']) |
|
275 |
||
276 |
# Adding model 'SubjectMeeting' |
|
277 |
db.create_table(u'p4l_subjectmeeting', ( |
|
278 |
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
279 |
('label', self.gf('django.db.models.fields.CharField')(max_length=2048, db_index=True)), |
|
280 |
('meetingNumber', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=2048, null=True, blank=True)), |
|
281 |
('meetingPlace', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=2048, null=True, blank=True)), |
|
282 |
('meetingDate', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=2048, null=True, blank=True)), |
|
283 |
('meetingYear', self.gf('django.db.models.fields.PositiveSmallIntegerField')(db_index=True, null=True, blank=True)), |
|
|
13
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
284 |
('record', self.gf('django.db.models.fields.related.ForeignKey')(related_name='subjectMeetings', to=orm['p4l.Record'])), |
| 0 | 285 |
)) |
286 |
db.send_create_signal('p4l', ['SubjectMeeting']) |
|
287 |
||
288 |
# Adding model 'Record' |
|
289 |
db.create_table(u'p4l_record', ( |
|
290 |
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
291 |
('uri', self.gf('django.db.models.fields.URLField')(unique=True, max_length=2048, db_index=True)), |
|
292 |
('identifier', self.gf('django.db.models.fields.CharField')(unique=True, max_length=128, db_index=True)), |
|
293 |
('notes', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), |
|
294 |
('language', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['p4l.Language'], null=True, blank=True)), |
|
295 |
('editionStatement', self.gf('django.db.models.fields.CharField')(max_length=1024, null=True, blank=True)), |
|
| 97 | 296 |
('corporateAuthorLabel', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=2048, null=True, blank=True)), |
| 93 | 297 |
('recordType', self.gf('django.db.models.fields.URLField')(max_length=2048, null=True, blank=True)), |
| 0 | 298 |
('isDocumentPart', self.gf('django.db.models.fields.BooleanField')(default=False)), |
| 100 | 299 |
('hidden', self.gf('django.db.models.fields.BooleanField')(default=False)), |
300 |
('restricted', self.gf('django.db.models.fields.BooleanField')(default=False)), |
|
|
108
c08f9b46a6c5
use PEP8 convention on system fields for Records
ymh <ymh.work@gmail.com>
parents:
104
diff
changeset
|
301 |
('creation_date', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)), |
|
c08f9b46a6c5
use PEP8 convention on system fields for Records
ymh <ymh.work@gmail.com>
parents:
104
diff
changeset
|
302 |
('modification_date', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)), |
|
c08f9b46a6c5
use PEP8 convention on system fields for Records
ymh <ymh.work@gmail.com>
parents:
104
diff
changeset
|
303 |
('modified_by', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['p4l.User'], null=True, blank=True)), |
| 0 | 304 |
)) |
305 |
db.send_create_signal('p4l', ['Record']) |
|
306 |
||
307 |
# Adding M2M table for field subjects on 'Record' |
|
308 |
db.create_table(u'p4l_record_subjects', ( |
|
309 |
('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), |
|
310 |
('record', models.ForeignKey(orm['p4l.record'], null=False)), |
|
311 |
('subject', models.ForeignKey(orm['p4l.subject'], null=False)) |
|
312 |
)) |
|
313 |
db.create_unique(u'p4l_record_subjects', ['record_id', 'subject_id']) |
|
314 |
||
315 |
# Adding M2M table for field themes on 'Record' |
|
316 |
db.create_table(u'p4l_record_themes', ( |
|
317 |
('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), |
|
318 |
('record', models.ForeignKey(orm['p4l.record'], null=False)), |
|
319 |
('theme', models.ForeignKey(orm['p4l.theme'], null=False)) |
|
320 |
)) |
|
321 |
db.create_unique(u'p4l_record_themes', ['record_id', 'theme_id']) |
|
322 |
||
323 |
# Adding M2M table for field countries on 'Record' |
|
324 |
db.create_table(u'p4l_record_countries', ( |
|
325 |
('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), |
|
326 |
('record', models.ForeignKey(orm['p4l.record'], null=False)), |
|
327 |
('country', models.ForeignKey(orm['p4l.country'], null=False)) |
|
328 |
)) |
|
329 |
db.create_unique(u'p4l_record_countries', ['record_id', 'country_id']) |
|
330 |
||
331 |
# Adding M2M table for field otherLanguages on 'Record' |
|
332 |
db.create_table(u'p4l_record_otherLanguages', ( |
|
333 |
('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), |
|
334 |
('record', models.ForeignKey(orm['p4l.record'], null=False)), |
|
335 |
('language', models.ForeignKey(orm['p4l.language'], null=False)) |
|
336 |
)) |
|
337 |
db.create_unique(u'p4l_record_otherLanguages', ['record_id', 'language_id']) |
|
338 |
||
339 |
# Adding M2M table for field projectNames on 'Record' |
|
340 |
db.create_table(u'p4l_record_projectNames', ( |
|
341 |
('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), |
|
342 |
('record', models.ForeignKey(orm['p4l.record'], null=False)), |
|
343 |
('projectname', models.ForeignKey(orm['p4l.projectname'], null=False)) |
|
344 |
)) |
|
345 |
db.create_unique(u'p4l_record_projectNames', ['record_id', 'projectname_id']) |
|
346 |
||
347 |
# Adding M2M table for field subjectCorporateBodies on 'Record' |
|
348 |
db.create_table(u'p4l_record_subjectCorporateBodies', ( |
|
349 |
('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), |
|
350 |
('record', models.ForeignKey(orm['p4l.record'], null=False)), |
|
| 15 | 351 |
('corporateauthor', models.ForeignKey(orm['p4l.corporateauthor'], null=False)) |
| 0 | 352 |
)) |
| 15 | 353 |
db.create_unique(u'p4l_record_subjectCorporateBodies', ['record_id', 'corporateauthor_id']) |
354 |
||
355 |
# Adding M2M table for field corporateAuthors on 'Record' |
|
356 |
db.create_table(u'p4l_record_corporateAuthors', ( |
|
357 |
('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), |
|
358 |
('record', models.ForeignKey(orm['p4l.record'], null=False)), |
|
359 |
('corporateauthor', models.ForeignKey(orm['p4l.corporateauthor'], null=False)) |
|
360 |
)) |
|
361 |
db.create_unique(u'p4l_record_corporateAuthors', ['record_id', 'corporateauthor_id']) |
|
| 0 | 362 |
|
| 97 | 363 |
# Adding M2M table for field audiences on 'Record' |
364 |
db.create_table(u'p4l_record_audiences', ( |
|
365 |
('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), |
|
366 |
('record', models.ForeignKey(orm['p4l.record'], null=False)), |
|
367 |
('audience', models.ForeignKey(orm['p4l.audience'], null=False)) |
|
368 |
)) |
|
369 |
db.create_unique(u'p4l_record_audiences', ['record_id', 'audience_id']) |
|
370 |
||
| 0 | 371 |
|
372 |
def backwards(self, orm): |
|
|
104
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
373 |
# Deleting model 'User' |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
374 |
db.delete_table(u'p4l_user') |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
375 |
|
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
376 |
# Removing M2M table for field groups on 'User' |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
377 |
db.delete_table('p4l_user_groups') |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
378 |
|
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
379 |
# Removing M2M table for field user_permissions on 'User' |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
380 |
db.delete_table('p4l_user_user_permissions') |
|
b66ca6275115
add creation + modification fields
ymh <ymh.work@gmail.com>
parents:
100
diff
changeset
|
381 |
|
| 0 | 382 |
# Deleting model 'Imprint' |
383 |
db.delete_table(u'p4l_imprint') |
|
384 |
||
385 |
# Deleting model 'Serie' |
|
386 |
db.delete_table(u'p4l_serie') |
|
387 |
||
388 |
# Deleting model 'ProjectName' |
|
389 |
db.delete_table(u'p4l_projectname') |
|
390 |
||
391 |
# Deleting model 'CorporateAuthor' |
|
392 |
db.delete_table(u'p4l_corporateauthor') |
|
393 |
||
394 |
# Deleting model 'Url' |
|
395 |
db.delete_table(u'p4l_url') |
|
396 |
||
397 |
# Deleting model 'Subject' |
|
398 |
db.delete_table(u'p4l_subject') |
|
399 |
||
400 |
# Deleting model 'Theme' |
|
401 |
db.delete_table(u'p4l_theme') |
|
402 |
||
403 |
# Deleting model 'Country' |
|
404 |
db.delete_table(u'p4l_country') |
|
405 |
||
| 97 | 406 |
# Deleting model 'Audience' |
407 |
db.delete_table(u'p4l_audience') |
|
408 |
||
| 0 | 409 |
# Deleting model 'Isbn' |
410 |
db.delete_table(u'p4l_isbn') |
|
411 |
||
412 |
# Deleting model 'Issn' |
|
413 |
db.delete_table(u'p4l_issn') |
|
414 |
||
415 |
# Deleting model 'DocumentCode' |
|
416 |
db.delete_table(u'p4l_documentcode') |
|
417 |
||
418 |
# Deleting model 'Language' |
|
419 |
db.delete_table(u'p4l_language') |
|
420 |
||
421 |
# Deleting model 'Title' |
|
422 |
db.delete_table(u'p4l_title') |
|
423 |
||
424 |
# Deleting model 'AddedTitle' |
|
425 |
db.delete_table(u'p4l_addedtitle') |
|
426 |
||
427 |
# Deleting model 'TitleMainDocument' |
|
428 |
db.delete_table(u'p4l_titlemaindocument') |
|
429 |
||
430 |
# Deleting model 'Abstract' |
|
431 |
db.delete_table(u'p4l_abstract') |
|
432 |
||
433 |
# Deleting model 'Collation' |
|
434 |
db.delete_table(u'p4l_collation') |
|
435 |
||
436 |
# Deleting model 'VolumeIssue' |
|
437 |
db.delete_table(u'p4l_volumeissue') |
|
438 |
||
439 |
# Deleting model 'Author' |
|
440 |
db.delete_table(u'p4l_author') |
|
441 |
||
442 |
# Deleting model 'SubjectPerson' |
|
443 |
db.delete_table(u'p4l_subjectperson') |
|
444 |
||
445 |
# Deleting model 'Periodical' |
|
446 |
db.delete_table(u'p4l_periodical') |
|
447 |
||
448 |
# Deleting model 'Meeting' |
|
449 |
db.delete_table(u'p4l_meeting') |
|
450 |
||
451 |
# Deleting model 'SubjectMeeting' |
|
452 |
db.delete_table(u'p4l_subjectmeeting') |
|
453 |
||
454 |
# Deleting model 'Record' |
|
455 |
db.delete_table(u'p4l_record') |
|
456 |
||
457 |
# Removing M2M table for field subjects on 'Record' |
|
458 |
db.delete_table('p4l_record_subjects') |
|
459 |
||
460 |
# Removing M2M table for field themes on 'Record' |
|
461 |
db.delete_table('p4l_record_themes') |
|
462 |
||
463 |
# Removing M2M table for field countries on 'Record' |
|
464 |
db.delete_table('p4l_record_countries') |
|
465 |
||
466 |
# Removing M2M table for field otherLanguages on 'Record' |
|
467 |
db.delete_table('p4l_record_otherLanguages') |
|
468 |
||
469 |
# Removing M2M table for field projectNames on 'Record' |
|
470 |
db.delete_table('p4l_record_projectNames') |
|
471 |
||
472 |
# Removing M2M table for field subjectCorporateBodies on 'Record' |
|
473 |
db.delete_table('p4l_record_subjectCorporateBodies') |
|
474 |
||
| 15 | 475 |
# Removing M2M table for field corporateAuthors on 'Record' |
476 |
db.delete_table('p4l_record_corporateAuthors') |
|
477 |
||
| 97 | 478 |
# Removing M2M table for field audiences on 'Record' |
479 |
db.delete_table('p4l_record_audiences') |
|
480 |
||
| 0 | 481 |
|
482 |
models = { |
|
483 |
u'auth.group': { |
|
484 |
'Meta': {'object_name': 'Group'}, |
|
485 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
486 |
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), |
|
487 |
'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) |
|
488 |
}, |
|
489 |
u'auth.permission': { |
|
490 |
'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'}, |
|
491 |
'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
|
492 |
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}), |
|
493 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
494 |
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) |
|
495 |
}, |
|
496 |
u'contenttypes.contenttype': { |
|
497 |
'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, |
|
498 |
'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
|
499 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
500 |
'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
|
501 |
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) |
|
502 |
}, |
|
503 |
'p4l.abstract': { |
|
504 |
'Meta': {'object_name': 'Abstract'}, |
|
505 |
'abstract': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), |
|
506 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
507 |
'lang': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '15', 'null': 'True', 'blank': 'True'}), |
|
508 |
'record': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'abstracts'", 'to': "orm['p4l.Record']"}) |
|
509 |
}, |
|
510 |
'p4l.addedtitle': { |
|
511 |
'Meta': {'object_name': 'AddedTitle'}, |
|
512 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
513 |
'lang': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '15', 'null': 'True', 'blank': 'True'}), |
|
514 |
'record': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'addedTitles'", 'to': "orm['p4l.Record']"}), |
|
515 |
'title': ('django.db.models.fields.CharField', [], {'max_length': '2048', 'db_index': 'True'}) |
|
516 |
}, |
|
| 97 | 517 |
'p4l.audience': { |
518 |
'Meta': {'object_name': 'Audience'}, |
|
519 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
520 |
'uri': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '2048', 'db_index': 'True'}) |
|
521 |
}, |
|
| 0 | 522 |
'p4l.author': { |
523 |
'Meta': {'object_name': 'Author'}, |
|
524 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
|
13
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
525 |
'name': ('django.db.models.fields.CharField', [], {'max_length': '2048', 'db_index': 'True'}), |
|
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
526 |
'record': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'authors'", 'to': "orm['p4l.Record']"}) |
| 0 | 527 |
}, |
528 |
'p4l.collation': { |
|
529 |
'Meta': {'object_name': 'Collation'}, |
|
530 |
'collation': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'db_index': 'True'}), |
|
531 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
532 |
'lang': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '15', 'null': 'True', 'blank': 'True'}), |
|
533 |
'record': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'collations'", 'to': "orm['p4l.Record']"}) |
|
534 |
}, |
|
535 |
'p4l.corporateauthor': { |
|
| 19 | 536 |
'Meta': {'object_name': 'CorporateAuthor'}, |
| 0 | 537 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
| 15 | 538 |
'uri': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '2048', 'db_index': 'True'}) |
| 0 | 539 |
}, |
540 |
'p4l.country': { |
|
541 |
'Meta': {'object_name': 'Country'}, |
|
|
13
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
542 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
| 15 | 543 |
'uri': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '2048', 'db_index': 'True'}) |
| 0 | 544 |
}, |
545 |
'p4l.documentcode': { |
|
546 |
'Meta': {'object_name': 'DocumentCode'}, |
|
547 |
'documentCode': ('django.db.models.fields.CharField', [], {'max_length': '128'}), |
|
548 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
549 |
'lang': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '15', 'null': 'True', 'blank': 'True'}), |
|
550 |
'record': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'documentCodes'", 'to': "orm['p4l.Record']"}) |
|
551 |
}, |
|
552 |
'p4l.imprint': { |
|
553 |
'Meta': {'object_name': 'Imprint'}, |
|
554 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
555 |
'imprintCity': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '512', 'null': 'True', 'blank': 'True'}), |
|
556 |
'imprintDate': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '512', 'null': 'True', 'blank': 'True'}), |
|
557 |
'lang': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '15', 'null': 'True', 'blank': 'True'}), |
|
558 |
'publisher': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '512', 'null': 'True', 'blank': 'True'}), |
|
559 |
'record': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'imprints'", 'to': "orm['p4l.Record']"}) |
|
560 |
}, |
|
561 |
'p4l.isbn': { |
|
562 |
'Meta': {'object_name': 'Isbn'}, |
|
563 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
564 |
'isbn': ('django.db.models.fields.CharField', [], {'max_length': '128'}), |
|
565 |
'lang': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '15', 'null': 'True', 'blank': 'True'}), |
|
566 |
'record': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'isbns'", 'to': "orm['p4l.Record']"}) |
|
567 |
}, |
|
568 |
'p4l.issn': { |
|
569 |
'Meta': {'object_name': 'Issn'}, |
|
570 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
571 |
'issn': ('django.db.models.fields.CharField', [], {'max_length': '128'}), |
|
572 |
'lang': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '15', 'null': 'True', 'blank': 'True'}), |
|
573 |
'record': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'issns'", 'to': "orm['p4l.Record']"}) |
|
574 |
}, |
|
575 |
'p4l.language': { |
|
576 |
'Meta': {'object_name': 'Language'}, |
|
577 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
| 15 | 578 |
'uri': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '2048', 'db_index': 'True'}) |
| 0 | 579 |
}, |
580 |
'p4l.meeting': { |
|
|
13
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
581 |
'Meta': {'object_name': 'Meeting'}, |
| 0 | 582 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
583 |
'label': ('django.db.models.fields.CharField', [], {'max_length': '2048', 'db_index': 'True'}), |
|
|
13
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
584 |
'lang': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '15', 'null': 'True', 'blank': 'True'}), |
| 0 | 585 |
'meetingDate': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '2048', 'null': 'True', 'blank': 'True'}), |
586 |
'meetingNumber': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '2048', 'null': 'True', 'blank': 'True'}), |
|
587 |
'meetingPlace': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '2048', 'null': 'True', 'blank': 'True'}), |
|
|
13
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
588 |
'meetingYear': ('django.db.models.fields.PositiveSmallIntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}), |
|
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
589 |
'record': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'meetings'", 'to': "orm['p4l.Record']"}) |
| 0 | 590 |
}, |
591 |
'p4l.periodical': { |
|
592 |
'Meta': {'object_name': 'Periodical'}, |
|
593 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
|
13
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
594 |
'label': ('django.db.models.fields.CharField', [], {'max_length': '2048', 'db_index': 'True'}), |
|
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
595 |
'lang': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '15', 'null': 'True', 'blank': 'True'}), |
|
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
596 |
'record': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'periodicals'", 'to': "orm['p4l.Record']"}) |
| 0 | 597 |
}, |
598 |
'p4l.projectname': { |
|
| 19 | 599 |
'Meta': {'object_name': 'ProjectName'}, |
| 0 | 600 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
| 15 | 601 |
'uri': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '2048', 'db_index': 'True'}) |
| 0 | 602 |
}, |
603 |
'p4l.record': { |
|
604 |
'Meta': {'object_name': 'Record'}, |
|
| 97 | 605 |
'audiences': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['p4l.Audience']", 'symmetrical': 'False'}), |
606 |
'corporateAuthorLabel': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '2048', 'null': 'True', 'blank': 'True'}), |
|
| 15 | 607 |
'corporateAuthors': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'recordsCorporateAuthor'", 'symmetrical': 'False', 'to': "orm['p4l.CorporateAuthor']"}), |
| 0 | 608 |
'countries': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['p4l.Country']", 'symmetrical': 'False'}), |
|
108
c08f9b46a6c5
use PEP8 convention on system fields for Records
ymh <ymh.work@gmail.com>
parents:
104
diff
changeset
|
609 |
'creation_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
| 0 | 610 |
'editionStatement': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}), |
| 100 | 611 |
'hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
| 0 | 612 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
613 |
'identifier': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128', 'db_index': 'True'}), |
|
614 |
'isDocumentPart': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
|
615 |
'language': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['p4l.Language']", 'null': 'True', 'blank': 'True'}), |
|
|
108
c08f9b46a6c5
use PEP8 convention on system fields for Records
ymh <ymh.work@gmail.com>
parents:
104
diff
changeset
|
616 |
'modification_date': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
|
c08f9b46a6c5
use PEP8 convention on system fields for Records
ymh <ymh.work@gmail.com>
parents:
104
diff
changeset
|
617 |
'modified_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['p4l.User']", 'null': 'True', 'blank': 'True'}), |
| 0 | 618 |
'notes': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), |
619 |
'otherLanguages': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'otherLanguage_record'", 'symmetrical': 'False', 'to': "orm['p4l.Language']"}), |
|
620 |
'projectNames': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['p4l.ProjectName']", 'symmetrical': 'False'}), |
|
| 93 | 621 |
'recordType': ('django.db.models.fields.URLField', [], {'max_length': '2048', 'null': 'True', 'blank': 'True'}), |
| 100 | 622 |
'restricted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
| 15 | 623 |
'subjectCorporateBodies': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'recordsSubjectCorporateBody'", 'symmetrical': 'False', 'to': "orm['p4l.CorporateAuthor']"}), |
| 0 | 624 |
'subjects': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['p4l.Subject']", 'symmetrical': 'False'}), |
625 |
'themes': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['p4l.Theme']", 'symmetrical': 'False'}), |
|
626 |
'uri': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '2048', 'db_index': 'True'}) |
|
627 |
}, |
|
|
13
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
628 |
'p4l.serie': { |
|
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
629 |
'Meta': {'object_name': 'Serie'}, |
| 0 | 630 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
631 |
'lang': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '15', 'null': 'True', 'blank': 'True'}), |
|
|
13
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
632 |
'record': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'series'", 'to': "orm['p4l.Record']"}), |
| 0 | 633 |
'title': ('django.db.models.fields.CharField', [], {'max_length': '2048', 'db_index': 'True'}), |
634 |
'volume': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '2048', 'null': 'True', 'blank': 'True'}) |
|
635 |
}, |
|
636 |
'p4l.subject': { |
|
637 |
'Meta': {'object_name': 'Subject'}, |
|
638 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
| 15 | 639 |
'uri': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '2048', 'db_index': 'True'}) |
| 0 | 640 |
}, |
641 |
'p4l.subjectmeeting': { |
|
|
13
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
642 |
'Meta': {'object_name': 'SubjectMeeting'}, |
| 0 | 643 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
644 |
'label': ('django.db.models.fields.CharField', [], {'max_length': '2048', 'db_index': 'True'}), |
|
645 |
'meetingDate': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '2048', 'null': 'True', 'blank': 'True'}), |
|
646 |
'meetingNumber': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '2048', 'null': 'True', 'blank': 'True'}), |
|
647 |
'meetingPlace': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '2048', 'null': 'True', 'blank': 'True'}), |
|
|
13
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
648 |
'meetingYear': ('django.db.models.fields.PositiveSmallIntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}), |
|
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
649 |
'record': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'subjectMeetings'", 'to': "orm['p4l.Record']"}) |
| 0 | 650 |
}, |
651 |
'p4l.subjectperson': { |
|
652 |
'Meta': {'object_name': 'SubjectPerson'}, |
|
653 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
|
13
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
654 |
'name': ('django.db.models.fields.CharField', [], {'max_length': '2048', 'db_index': 'True'}), |
|
6296aa12fd71
model simplification, correct import on language. We do not try to impose a language when none is found. add forgotten abstract field on import.
ymh <ymh.work@gmail.com>
parents:
10
diff
changeset
|
655 |
'record': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'subjectPersons'", 'to': "orm['p4l.Record']"}) |
| 0 | 656 |
}, |
657 |
'p4l.theme': { |
|
658 |
'Meta': {'object_name': 'Theme'}, |
|
659 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
| 15 | 660 |
'uri': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '2048', 'db_index': 'True'}) |
| 0 | 661 |
}, |
662 |
'p4l.title': { |
|
663 |
'Meta': {'object_name': 'Title'}, |
|
664 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
665 |
'lang': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '15', 'null': 'True', 'blank': 'True'}), |
|
666 |
'record': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'titles'", 'to': "orm['p4l.Record']"}), |
|
667 |
'title': ('django.db.models.fields.CharField', [], {'max_length': '2048', 'db_index': 'True'}) |
|
668 |
}, |
|
669 |
'p4l.titlemaindocument': { |
|
670 |
'Meta': {'object_name': 'TitleMainDocument'}, |
|
671 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
672 |
'lang': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '15', 'null': 'True', 'blank': 'True'}), |
|
673 |
'record': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'titlesMainDocument'", 'to': "orm['p4l.Record']"}), |
|
674 |
'title': ('django.db.models.fields.CharField', [], {'max_length': '2048', 'db_index': 'True'}) |
|
675 |
}, |
|
676 |
'p4l.url': { |
|
677 |
'Meta': {'object_name': 'Url'}, |
|
678 |
'address': ('django.db.models.fields.CharField', [], {'max_length': '2048', 'db_index': 'True'}), |
|
679 |
'display': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '2048', 'null': 'True', 'blank': 'True'}), |
|
680 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
681 |
'record': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'urls'", 'to': "orm['p4l.Record']"}) |
|
682 |
}, |
|
683 |
'p4l.user': { |
|
684 |
'Meta': {'object_name': 'User'}, |
|
685 |
'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), |
|
686 |
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), |
|
687 |
'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), |
|
688 |
'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), |
|
689 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
690 |
'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), |
|
691 |
'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
|
692 |
'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
|
693 |
'language': ('django.db.models.fields.CharField', [], {'default': "'en'", 'max_length': '2'}), |
|
694 |
'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), |
|
695 |
'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), |
|
696 |
'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), |
|
697 |
'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), |
|
698 |
'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) |
|
699 |
}, |
|
700 |
'p4l.volumeissue': { |
|
701 |
'Meta': {'object_name': 'VolumeIssue'}, |
|
702 |
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
703 |
'lang': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '15', 'null': 'True', 'blank': 'True'}), |
|
704 |
'number': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '1024', 'null': 'True', 'blank': 'True'}), |
|
705 |
'record': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'volumeIssues'", 'to': "orm['p4l.Record']"}), |
|
706 |
'volume': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '1024', 'null': 'True', 'blank': 'True'}) |
|
707 |
} |
|
708 |
} |
|
709 |
||
710 |
complete_apps = ['p4l'] |