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