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