0024_auto_20180829_1840.py 15.3 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
# Generated by Django 2.0.3 on 2018-08-29 16:40

import backend.models.tools.usefullLinksField
from django.conf import settings
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('backend', '0023_auto_20180829_1815'),
    ]

    operations = [
        migrations.CreateModel(
            name='CampusTaggedItem',
            fields=[
                ('moderated_on', models.DateTimeField(null=True)),
                ('updated_on', models.DateTimeField(null=True)),
                ('comment', models.TextField(blank=True)),
                ('usefull_links', backend.models.tools.usefullLinksField.UsefullLinksField(blank=True, default=[], validators=[backend.models.tools.usefullLinksField.validate_usefull_links])),
                ('custom_content', django.contrib.postgres.fields.jsonb.JSONField(blank=True, default=dict)),
                ('campus', models.OneToOneField(on_delete=django.db.models.deletion.PROTECT, primary_key=True, related_name='city_items', serialize=False, to='backend.Campus')),
                ('moderated_by', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)),
                ('tag', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='backend.Tag')),
                ('updated_by', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='CityTaggedItem',
            fields=[
                ('moderated_on', models.DateTimeField(null=True)),
                ('updated_on', models.DateTimeField(null=True)),
                ('comment', models.TextField(blank=True)),
                ('usefull_links', backend.models.tools.usefullLinksField.UsefullLinksField(blank=True, default=[], validators=[backend.models.tools.usefullLinksField.validate_usefull_links])),
                ('custom_content', django.contrib.postgres.fields.jsonb.JSONField(blank=True, default=dict)),
                ('city', models.OneToOneField(on_delete=django.db.models.deletion.PROTECT, primary_key=True, related_name='city_items', serialize=False, to='backend.City')),
                ('moderated_by', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)),
                ('tag', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='backend.Tag')),
                ('updated_by', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='CountryTaggedItem',
            fields=[
                ('moderated_on', models.DateTimeField(null=True)),
                ('updated_on', models.DateTimeField(null=True)),
                ('comment', models.TextField(blank=True)),
                ('usefull_links', backend.models.tools.usefullLinksField.UsefullLinksField(blank=True, default=[], validators=[backend.models.tools.usefullLinksField.validate_usefull_links])),
                ('custom_content', django.contrib.postgres.fields.jsonb.JSONField(blank=True, default=dict)),
                ('country', models.OneToOneField(on_delete=django.db.models.deletion.PROTECT, primary_key=True, related_name='city_items', serialize=False, to='backend.Country')),
                ('moderated_by', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)),
                ('tag', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='backend.Tag')),
                ('updated_by', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='UniversityTaggedItem',
            fields=[
                ('moderated_on', models.DateTimeField(null=True)),
                ('updated_on', models.DateTimeField(null=True)),
                ('comment', models.TextField(blank=True)),
                ('usefull_links', backend.models.tools.usefullLinksField.UsefullLinksField(blank=True, default=[], validators=[backend.models.tools.usefullLinksField.validate_usefull_links])),
                ('custom_content', django.contrib.postgres.fields.jsonb.JSONField(blank=True, default=dict)),
                ('university', models.OneToOneField(on_delete=django.db.models.deletion.PROTECT, primary_key=True, related_name='city_items', serialize=False, to='backend.University')),
                ('moderated_by', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)),
                ('tag', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='backend.Tag')),
                ('updated_by', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.RemoveField(
            model_name='campusaccommodation',
            name='campus',
        ),
        migrations.RemoveField(
            model_name='campusaccommodation',
            name='moderated_by',
        ),
        migrations.RemoveField(
            model_name='campusaccommodation',
            name='updated_by',
        ),
        migrations.RemoveField(
            model_name='campuscultureandstudentlife',
            name='campus',
        ),
        migrations.RemoveField(
            model_name='campuscultureandstudentlife',
            name='moderated_by',
        ),
        migrations.RemoveField(
            model_name='campuscultureandstudentlife',
            name='updated_by',
        ),
        migrations.RemoveField(
            model_name='campusotherstuff',
            name='campus',
        ),
        migrations.RemoveField(
            model_name='campusotherstuff',
            name='moderated_by',
        ),
        migrations.RemoveField(
            model_name='campusotherstuff',
            name='updated_by',
        ),
        migrations.RemoveField(
            model_name='campustransport',
            name='campus',
        ),
        migrations.RemoveField(
            model_name='campustransport',
            name='moderated_by',
        ),
        migrations.RemoveField(
            model_name='campustransport',
            name='updated_by',
        ),
        migrations.RemoveField(
            model_name='cityotherstuff',
            name='city',
        ),
        migrations.RemoveField(
            model_name='cityotherstuff',
            name='moderated_by',
        ),
        migrations.RemoveField(
            model_name='cityotherstuff',
            name='updated_by',
        ),
        migrations.RemoveField(
            model_name='citytourism',
            name='city',
        ),
        migrations.RemoveField(
            model_name='citytourism',
            name='moderated_by',
        ),
        migrations.RemoveField(
            model_name='citytourism',
            name='updated_by',
        ),
        migrations.RemoveField(
            model_name='citytransport',
            name='city',
        ),
        migrations.RemoveField(
            model_name='citytransport',
            name='moderated_by',
        ),
        migrations.RemoveField(
            model_name='citytransport',
            name='updated_by',
        ),
        migrations.RemoveField(
            model_name='countryculture',
            name='country',
        ),
        migrations.RemoveField(
            model_name='countryculture',
            name='moderated_by',
        ),
        migrations.RemoveField(
            model_name='countryculture',
            name='updated_by',
        ),
        migrations.RemoveField(
            model_name='countryhealthinsurance',
            name='country',
        ),
        migrations.RemoveField(
            model_name='countryhealthinsurance',
            name='moderated_by',
        ),
        migrations.RemoveField(
            model_name='countryhealthinsurance',
            name='updated_by',
        ),
        migrations.RemoveField(
            model_name='countryotherinsurance',
            name='country',
        ),
        migrations.RemoveField(
            model_name='countryotherinsurance',
            name='moderated_by',
        ),
        migrations.RemoveField(
            model_name='countryotherinsurance',
            name='updated_by',
        ),
        migrations.RemoveField(
            model_name='countryotherstuff',
            name='country',
        ),
        migrations.RemoveField(
            model_name='countryotherstuff',
            name='moderated_by',
        ),
        migrations.RemoveField(
            model_name='countryotherstuff',
            name='updated_by',
        ),
        migrations.RemoveField(
            model_name='countrytourism',
            name='country',
        ),
        migrations.RemoveField(
            model_name='countrytourism',
            name='moderated_by',
        ),
        migrations.RemoveField(
            model_name='countrytourism',
            name='updated_by',
        ),
        migrations.RemoveField(
            model_name='countrytransport',
            name='country',
        ),
        migrations.RemoveField(
            model_name='countrytransport',
            name='moderated_by',
        ),
        migrations.RemoveField(
            model_name='countrytransport',
            name='updated_by',
        ),
        migrations.RemoveField(
            model_name='countryvisaadministrative',
            name='country',
        ),
        migrations.RemoveField(
            model_name='countryvisaadministrative',
            name='moderated_by',
        ),
        migrations.RemoveField(
            model_name='countryvisaadministrative',
            name='updated_by',
        ),
        migrations.RemoveField(
            model_name='universitycourses',
            name='moderated_by',
        ),
        migrations.RemoveField(
            model_name='universitycourses',
            name='university',
        ),
        migrations.RemoveField(
            model_name='universitycourses',
            name='updated_by',
        ),
        migrations.RemoveField(
            model_name='universityculture',
            name='moderated_by',
        ),
        migrations.RemoveField(
            model_name='universityculture',
            name='university',
        ),
        migrations.RemoveField(
            model_name='universityculture',
            name='updated_by',
        ),
        migrations.RemoveField(
            model_name='universityinsurance',
            name='moderated_by',
        ),
        migrations.RemoveField(
            model_name='universityinsurance',
            name='university',
        ),
        migrations.RemoveField(
            model_name='universityinsurance',
            name='updated_by',
        ),
        migrations.RemoveField(
            model_name='universityotherstuff',
            name='moderated_by',
        ),
        migrations.RemoveField(
            model_name='universityotherstuff',
            name='university',
        ),
        migrations.RemoveField(
            model_name='universityotherstuff',
            name='updated_by',
        ),
        migrations.RemoveField(
            model_name='universityspecialoffer',
            name='moderated_by',
        ),
        migrations.RemoveField(
            model_name='universityspecialoffer',
            name='university',
        ),
        migrations.RemoveField(
            model_name='universityspecialoffer',
            name='updated_by',
        ),
        migrations.AddField(
            model_name='campus',
            name='custom_content',
            field=django.contrib.postgres.fields.jsonb.JSONField(blank=True, default=dict),
        ),
        migrations.AddField(
            model_name='countrydri',
            name='custom_content',
            field=django.contrib.postgres.fields.jsonb.JSONField(blank=True, default=dict),
        ),
        migrations.AddField(
            model_name='countryscholarship',
            name='custom_content',
            field=django.contrib.postgres.fields.jsonb.JSONField(blank=True, default=dict),
        ),
        migrations.AddField(
            model_name='universitydri',
            name='custom_content',
            field=django.contrib.postgres.fields.jsonb.JSONField(blank=True, default=dict),
        ),
        migrations.AddField(
            model_name='universityinfo',
            name='custom_content',
            field=django.contrib.postgres.fields.jsonb.JSONField(blank=True, default=dict),
        ),
        migrations.AddField(
            model_name='universityscholarship',
            name='custom_content',
            field=django.contrib.postgres.fields.jsonb.JSONField(blank=True, default=dict),
        ),
        migrations.AddField(
            model_name='universitysemestersdates',
            name='custom_content',
            field=django.contrib.postgres.fields.jsonb.JSONField(blank=True, default=dict),
        ),
        migrations.DeleteModel(
            name='CampusAccommodation',
        ),
        migrations.DeleteModel(
            name='CampusCultureAndStudentLife',
        ),
        migrations.DeleteModel(
            name='CampusOtherStuff',
        ),
        migrations.DeleteModel(
            name='CampusTransport',
        ),
        migrations.DeleteModel(
            name='CityOtherStuff',
        ),
        migrations.DeleteModel(
            name='CityTourism',
        ),
        migrations.DeleteModel(
            name='CityTransport',
        ),
        migrations.DeleteModel(
            name='CountryCulture',
        ),
        migrations.DeleteModel(
            name='CountryHealthInsurance',
        ),
        migrations.DeleteModel(
            name='CountryOtherInsurance',
        ),
        migrations.DeleteModel(
            name='CountryOtherStuff',
        ),
        migrations.DeleteModel(
            name='CountryTourism',
        ),
        migrations.DeleteModel(
            name='CountryTransport',
        ),
        migrations.DeleteModel(
            name='CountryVisaAdministrative',
        ),
        migrations.DeleteModel(
            name='UniversityCourses',
        ),
        migrations.DeleteModel(
            name='UniversityCulture',
        ),
        migrations.DeleteModel(
            name='UniversityInsurance',
        ),
        migrations.DeleteModel(
            name='UniversityOtherStuff',
        ),
        migrations.DeleteModel(
            name='UniversitySpecialOffer',
        ),
        migrations.AlterUniqueTogether(
            name='universitytaggeditem',
            unique_together={('university', 'tag')},
        ),
        migrations.AlterUniqueTogether(
            name='countrytaggeditem',
            unique_together={('country', 'tag')},
        ),
        migrations.AlterUniqueTogether(
            name='citytaggeditem',
            unique_together={('city', 'tag')},
        ),
        migrations.AlterUniqueTogether(
            name='campustaggeditem',
            unique_together={('campus', 'tag')},
        ),
    ]