Commit 055227e30159cdffd4eece47d53fac50708f8eff
1 parent
85937f85
Exists in
master
and in
2 other branches
Bulletin migrations
Showing
1 changed file
with
32 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,32 @@ | @@ -0,0 +1,32 @@ | ||
1 | +# -*- coding: utf-8 -*- | ||
2 | +# Generated by Django 1.10.4 on 2017-07-19 02:17 | ||
3 | +from __future__ import unicode_literals | ||
4 | + | ||
5 | +import bulletin.models | ||
6 | +from django.db import migrations, models | ||
7 | +import django.db.models.deletion | ||
8 | + | ||
9 | + | ||
10 | +class Migration(migrations.Migration): | ||
11 | + | ||
12 | + initial = True | ||
13 | + | ||
14 | + dependencies = [ | ||
15 | + ('topics', '0007_auto_20170123_1911'), | ||
16 | + ] | ||
17 | + | ||
18 | + operations = [ | ||
19 | + migrations.CreateModel( | ||
20 | + name='Bulletin', | ||
21 | + fields=[ | ||
22 | + ('resource_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='topics.Resource')), | ||
23 | + ('content', models.TextField(blank=True, verbose_name='Bulletin Content')), | ||
24 | + ('file_content', models.FileField(blank=True, upload_to='files/', validators=[bulletin.models.validate_file_extension], verbose_name='File')), | ||
25 | + ], | ||
26 | + options={ | ||
27 | + 'verbose_name': 'Bulletin', | ||
28 | + 'verbose_name_plural': 'Bulletins', | ||
29 | + }, | ||
30 | + bases=('topics.resource',), | ||
31 | + ), | ||
32 | + ] |