Skip to content

Commit 1ed8e96

Browse files
committed
Merged in ^/personal/henrik/6.72.1-django-1.11@14676: Upgrade to Django 1.11
- Legacy-Id: 14695
2 parents dcbd28f + 0b46cbb commit 1ed8e96

321 files changed

Lines changed: 1636 additions & 17487 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

LICENSE.django

Lines changed: 0 additions & 30 deletions
This file was deleted.

ietf/api/management/commands/makeresources.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ def handle_app_config(self, app, **options):
9696
for field in model._meta.fields:
9797
if isinstance(field, (models.ForeignKey, models.OneToOneField)):
9898
#debug.show('field.name')
99-
#debug.pprint('dir(field.rel.to)')
99+
#debug.pprint('dir(field.remote_field.to)')
100100
#exit()
101-
rel_app=field.rel.to._meta.app_label
102-
rel_model_name=field.rel.to.__name__
101+
rel_app=field.remote_field.to._meta.app_label
102+
rel_model_name=field.remote_field.to.__name__
103103
if rel_model_name == model_name:
104104
# foreign key to self class -- quote
105105
# the rmodel_name
@@ -111,10 +111,10 @@ def handle_app_config(self, app, **options):
111111
name=field.name,
112112
app=rel_app,
113113
module=rel_app.split('.')[-1],
114-
model=field.rel.to,
114+
model=field.remote_field.to,
115115
model_name=rel_model_name,
116116
rmodel_name=rmodel_name,
117-
resource_name=field.rel.to.__name__.lower(),
117+
resource_name=field.remote_field.to.__name__.lower(),
118118
))
119119
imports[rel_app]["module"] = rel_app
120120
imports[rel_app]["names"].append(rel_model_name)
@@ -124,10 +124,10 @@ def handle_app_config(self, app, **options):
124124
m2m_keys = []
125125
for field in model._meta.many_to_many:
126126
#debug.show('field.name')
127-
#debug.pprint('dir(field.rel.to)')
127+
#debug.pprint('dir(field.remote_field.to)')
128128
#exit()
129-
rel_app=field.rel.to._meta.app_label
130-
rel_model_name=field.rel.to.__name__
129+
rel_app=field.remote_field.to._meta.app_label
130+
rel_model_name=field.remote_field.to.__name__
131131
if rel_model_name == model_name:
132132
# foreign key to self class -- quote
133133
# the rmodel_name
@@ -139,10 +139,10 @@ def handle_app_config(self, app, **options):
139139
name=field.name,
140140
app=rel_app,
141141
module=rel_app.split('.')[-1],
142-
model=field.rel.to,
142+
model=field.remote_field.to,
143143
model_name=rel_model_name,
144144
rmodel_name=rmodel_name,
145-
resource_name=field.rel.to.__name__.lower(),
145+
resource_name=field.remote_field.to.__name__.lower(),
146146
))
147147
imports[rel_app]["module"] = rel_app
148148
imports[rel_app]["names"].append(rel_model_name)
Lines changed: 14 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,40 @@
11
# -*- coding: utf-8 -*-
2+
# Generated by Django 1.11.10 on 2018-02-20 10:52
23
from __future__ import unicode_literals
34

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
58

69

710
class Migration(migrations.Migration):
811

12+
initial = True
13+
914
dependencies = [
1015
]
1116

1217
operations = [
1318
migrations.CreateModel(
1419
name='CommunityList',
1520
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')),
4222
],
43-
options={
44-
},
45-
bases=(models.Model,),
4623
),
4724
migrations.CreateModel(
4825
name='EmailSubscription',
4926
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)),
7329
],
74-
options={
75-
},
76-
bases=(models.Model,),
7730
),
7831
migrations.CreateModel(
79-
name='Rule',
32+
name='SearchRule',
8033
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')),
8538
],
86-
options={
87-
},
88-
bases=(models.Model,),
8939
),
9040
]

ietf/community/migrations/0002_auto_20141222_1749.py

Lines changed: 0 additions & 88 deletions
This file was deleted.

ietf/community/migrations/0003_cleanup.py

Lines changed: 0 additions & 120 deletions
This file was deleted.

0 commit comments

Comments
 (0)