|
1 | 1 | # -*- coding: utf-8 -*- |
| 2 | +# Generated by Django 1.11.10 on 2018-02-20 10:52 |
2 | 3 | from __future__ import unicode_literals |
3 | 4 |
|
4 | | -from django.db import models, migrations |
| 5 | +from django.db import migrations, models |
| 6 | +import django.db.models.deletion |
| 7 | +import ietf.utils.models |
5 | 8 |
|
6 | 9 |
|
7 | 10 | class Migration(migrations.Migration): |
8 | 11 |
|
| 12 | + initial = True |
| 13 | + |
9 | 14 | dependencies = [ |
10 | 15 | ] |
11 | 16 |
|
12 | 17 | operations = [ |
13 | 18 | migrations.CreateModel( |
14 | 19 | name='CommunityList', |
15 | 20 | fields=[ |
16 | | - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), |
17 | | - ('secret', models.CharField(max_length=255, null=True, blank=True)), |
18 | | - ('cached', models.TextField(null=True, blank=True)), |
19 | | - ], |
20 | | - options={ |
21 | | - }, |
22 | | - bases=(models.Model,), |
23 | | - ), |
24 | | - migrations.CreateModel( |
25 | | - name='DisplayConfiguration', |
26 | | - fields=[ |
27 | | - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), |
28 | | - ('sort_method', models.CharField(default=b'by_filename', max_length=100, choices=[(b'by_filename', b'Alphabetical by I-D filename and RFC number'), (b'by_title', b'Alphabetical by document title'), (b'by_wg', b'Alphabetical by associated WG'), (b'date_publication', b'Date of publication of current version of the document'), (b'recent_change', b'Date of most recent change of status of any type'), (b'recent_significant', b'Date of most recent significant change of status')])), |
29 | | - ('display_fields', models.TextField(default=b'filename,title,date')), |
30 | | - ], |
31 | | - options={ |
32 | | - }, |
33 | | - bases=(models.Model,), |
34 | | - ), |
35 | | - migrations.CreateModel( |
36 | | - name='DocumentChangeDates', |
37 | | - fields=[ |
38 | | - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), |
39 | | - ('new_version_date', models.DateTimeField(null=True, blank=True)), |
40 | | - ('normal_change_date', models.DateTimeField(null=True, blank=True)), |
41 | | - ('significant_change_date', models.DateTimeField(null=True, blank=True)), |
| 21 | + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
42 | 22 | ], |
43 | | - options={ |
44 | | - }, |
45 | | - bases=(models.Model,), |
46 | 23 | ), |
47 | 24 | migrations.CreateModel( |
48 | 25 | name='EmailSubscription', |
49 | 26 | fields=[ |
50 | | - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), |
51 | | - ('email', models.CharField(max_length=200)), |
52 | | - ('significant', models.BooleanField(default=False)), |
53 | | - ], |
54 | | - options={ |
55 | | - }, |
56 | | - bases=(models.Model,), |
57 | | - ), |
58 | | - migrations.CreateModel( |
59 | | - name='ExpectedChange', |
60 | | - fields=[ |
61 | | - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), |
62 | | - ('expected_date', models.DateField(verbose_name=b'Expected date')), |
63 | | - ], |
64 | | - options={ |
65 | | - }, |
66 | | - bases=(models.Model,), |
67 | | - ), |
68 | | - migrations.CreateModel( |
69 | | - name='ListNotification', |
70 | | - fields=[ |
71 | | - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), |
72 | | - ('significant', models.BooleanField(default=False)), |
| 27 | + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
| 28 | + ('notify_on', models.CharField(choices=[(b'all', b'All changes'), (b'significant', b'Only significant state changes')], default=b'all', max_length=30)), |
73 | 29 | ], |
74 | | - options={ |
75 | | - }, |
76 | | - bases=(models.Model,), |
77 | 30 | ), |
78 | 31 | migrations.CreateModel( |
79 | | - name='Rule', |
| 32 | + name='SearchRule', |
80 | 33 | fields=[ |
81 | | - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), |
82 | | - ('rule_type', models.CharField(max_length=30, choices=[(b'wg_asociated', b'All I-Ds associated with a particular WG'), (b'area_asociated', b'All I-Ds associated with all WGs in a particular Area'), (b'ad_responsible', b'All I-Ds with a particular responsible AD'), (b'author', b'All I-Ds with a particular author'), (b'shepherd', b'All I-Ds with a particular document shepherd'), (b'with_text', b'All I-Ds that contain a particular text string in the name'), (b'in_iab_state', b'All I-Ds that are in a particular IAB state'), (b'in_iana_state', b'All I-Ds that are in a particular IANA state'), (b'in_iesg_state', b'All I-Ds that are in a particular IESG state'), (b'in_irtf_state', b'All I-Ds that are in a particular IRTF state'), (b'in_ise_state', b'All I-Ds that are in a particular ISE state'), (b'in_rfcEdit_state', b'All I-Ds that are in a particular RFC Editor state'), (b'in_wg_state', b'All I-Ds that are in a particular Working Group state'), (b'wg_asociated_rfc', b'All RFCs associated with a particular WG'), (b'area_asociated_rfc', b'All RFCs associated with all WGs in a particular Area'), (b'author_rfc', b'All RFCs with a particular author')])), |
83 | | - ('value', models.CharField(max_length=255)), |
84 | | - ('last_updated', models.DateTimeField(auto_now=True)), |
| 34 | + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
| 35 | + ('rule_type', models.CharField(choices=[(b'group', b'All I-Ds associated with a particular group'), (b'area', b'All I-Ds associated with all groups in a particular Area'), (b'group_rfc', b'All RFCs associated with a particular group'), (b'area_rfc', b'All RFCs associated with all groups in a particular Area'), (b'state_iab', b'All I-Ds that are in a particular IAB state'), (b'state_iana', b'All I-Ds that are in a particular IANA state'), (b'state_iesg', b'All I-Ds that are in a particular IESG state'), (b'state_irtf', b'All I-Ds that are in a particular IRTF state'), (b'state_ise', b'All I-Ds that are in a particular ISE state'), (b'state_rfceditor', b'All I-Ds that are in a particular RFC Editor state'), (b'state_ietf', b'All I-Ds that are in a particular Working Group state'), (b'author', b'All I-Ds with a particular author'), (b'author_rfc', b'All RFCs with a particular author'), (b'ad', b'All I-Ds with a particular responsible AD'), (b'shepherd', b'All I-Ds with a particular document shepherd'), (b'name_contains', b'All I-Ds with particular text/regular expression in the name')], max_length=30)), |
| 36 | + ('text', models.CharField(blank=True, default=b'', max_length=255, verbose_name=b'Text/RegExp')), |
| 37 | + ('community_list', ietf.utils.models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='community.CommunityList')), |
85 | 38 | ], |
86 | | - options={ |
87 | | - }, |
88 | | - bases=(models.Model,), |
89 | 39 | ), |
90 | 40 | ] |
0 commit comments