New django-1.7 initial migrations. Circular references exist, requiring explicit --fake migration for doc, dbtemplate and community apps.

- Legacy-Id: 8823
This commit is contained in:
Henrik Levkowetz 2014-12-22 17:07:38 +00:00
parent 76881655d3
commit 25eb00c925
14 changed files with 2312 additions and 0 deletions

View file

@ -0,0 +1,90 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='CommunityList',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('secret', models.CharField(max_length=255, null=True, blank=True)),
('cached', models.TextField(null=True, blank=True)),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='DisplayConfiguration',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('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')])),
('display_fields', models.TextField(default=b'filename,title,date')),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='DocumentChangeDates',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('new_version_date', models.DateTimeField(null=True, blank=True)),
('normal_change_date', models.DateTimeField(null=True, blank=True)),
('significant_change_date', models.DateTimeField(null=True, blank=True)),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='EmailSubscription',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('email', models.CharField(max_length=200)),
('significant', models.BooleanField(default=False)),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='ExpectedChange',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('expected_date', models.DateField(verbose_name=b'Expected date')),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='ListNotification',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('significant', models.BooleanField(default=False)),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='Rule',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('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')])),
('value', models.CharField(max_length=255)),
('last_updated', models.DateTimeField(auto_now=True)),
],
options={
},
bases=(models.Model,),
),
]

View file

@ -0,0 +1,88 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('group', '0001_initial'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('community', '0001_initial'),
('doc', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='rule',
name='cached_ids',
field=models.ManyToManyField(to='doc.Document'),
preserve_default=True,
),
migrations.AddField(
model_name='rule',
name='community_list',
field=models.ForeignKey(to='community.CommunityList'),
preserve_default=True,
),
migrations.AlterUniqueTogether(
name='rule',
unique_together=set([('community_list', 'rule_type', 'value')]),
),
migrations.AddField(
model_name='listnotification',
name='event',
field=models.ForeignKey(to='doc.DocEvent'),
preserve_default=True,
),
migrations.AddField(
model_name='expectedchange',
name='community_list',
field=models.ForeignKey(to='community.CommunityList'),
preserve_default=True,
),
migrations.AddField(
model_name='expectedchange',
name='document',
field=models.ForeignKey(to='doc.Document'),
preserve_default=True,
),
migrations.AddField(
model_name='emailsubscription',
name='community_list',
field=models.ForeignKey(to='community.CommunityList'),
preserve_default=True,
),
migrations.AddField(
model_name='documentchangedates',
name='document',
field=models.ForeignKey(to='doc.Document'),
preserve_default=True,
),
migrations.AddField(
model_name='displayconfiguration',
name='community_list',
field=models.ForeignKey(to='community.CommunityList'),
preserve_default=True,
),
migrations.AddField(
model_name='communitylist',
name='added_ids',
field=models.ManyToManyField(to='doc.Document'),
preserve_default=True,
),
migrations.AddField(
model_name='communitylist',
name='group',
field=models.ForeignKey(blank=True, to='group.Group', null=True),
preserve_default=True,
),
migrations.AddField(
model_name='communitylist',
name='user',
field=models.ForeignKey(blank=True, to=settings.AUTH_USER_MODEL, null=True),
preserve_default=True,
),
]

View file

@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='DBTemplate',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('path', models.CharField(unique=True, max_length=255)),
('title', models.CharField(max_length=255)),
('variables', models.TextField(null=True, blank=True)),
('content', models.TextField()),
],
options={
},
bases=(models.Model,),
),
]

View file

@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('group', '0001_initial'),
('name', '0001_initial'),
('dbtemplate', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='dbtemplate',
name='group',
field=models.ForeignKey(blank=True, to='group.Group', null=True),
preserve_default=True,
),
migrations.AddField(
model_name='dbtemplate',
name='type',
field=models.ForeignKey(to='name.DBTemplateTypeName'),
preserve_default=True,
),
]

View file

@ -0,0 +1,308 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
class Migration(migrations.Migration):
dependencies = [
('name', '0001_initial'),
('person', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='BallotType',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('slug', models.SlugField()),
('name', models.CharField(max_length=255)),
('question', models.TextField(blank=True)),
('used', models.BooleanField(default=True)),
('order', models.IntegerField(default=0)),
],
options={
'ordering': ['order'],
},
bases=(models.Model,),
),
migrations.CreateModel(
name='DeletedEvent',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('json', models.TextField(help_text=b'Deleted object in JSON format, with attribute names chosen to be suitable for passing into the relevant create method.')),
('time', models.DateTimeField(default=datetime.datetime.now)),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='DocAlias',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('name', models.CharField(max_length=255, db_index=True)),
],
options={
'verbose_name': 'document alias',
'verbose_name_plural': 'document aliases',
},
bases=(models.Model,),
),
migrations.CreateModel(
name='DocEvent',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('time', models.DateTimeField(default=datetime.datetime.now, help_text=b'When the event happened', db_index=True)),
('type', models.CharField(max_length=50, choices=[(b'new_revision', b'Added new revision'), (b'changed_document', b'Changed document metadata'), (b'added_comment', b'Added comment'), (b'deleted', b'Deleted document'), (b'changed_state', b'Changed state'), (b'changed_stream', b'Changed document stream'), (b'expired_document', b'Expired document'), (b'extended_expiry', b'Extended expiry of document'), (b'requested_resurrect', b'Requested resurrect'), (b'completed_resurrect', b'Completed resurrect'), (b'changed_consensus', b'Changed consensus'), (b'published_rfc', b'Published RFC'), (b'changed_group', b'Changed group'), (b'changed_protocol_writeup', b'Changed protocol writeup'), (b'changed_charter_milestone', b'Changed charter milestone'), (b'initial_review', b'Set initial review time'), (b'changed_review_announcement', b'Changed WG Review text'), (b'changed_action_announcement', b'Changed WG Action text'), (b'started_iesg_process', b'Started IESG process on document'), (b'created_ballot', b'Created ballot'), (b'closed_ballot', b'Closed ballot'), (b'sent_ballot_announcement', b'Sent ballot announcement'), (b'changed_ballot_position', b'Changed ballot position'), (b'changed_ballot_approval_text', b'Changed ballot approval text'), (b'changed_ballot_writeup_text', b'Changed ballot writeup text'), (b'changed_last_call_text', b'Changed last call text'), (b'requested_last_call', b'Requested last call'), (b'sent_last_call', b'Sent last call'), (b'scheduled_for_telechat', b'Scheduled for telechat'), (b'iesg_approved', b'IESG approved document (no problem)'), (b'iesg_disapproved', b'IESG disapproved document (do not publish)'), (b'approved_in_minute', b'Approved in minute'), (b'iana_review', b'IANA review comment'), (b'rfc_in_iana_registry', b'RFC is in IANA registry'), (b'rfc_editor_received_announcement', b'Announcement was received by RFC Editor'), (b'requested_publication', b'Publication at RFC Editor requested')])),
('desc', models.TextField()),
],
options={
'ordering': ['-time', '-id'],
},
bases=(models.Model,),
),
migrations.CreateModel(
name='ConsensusDocEvent',
fields=[
('docevent_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='doc.DocEvent')),
('consensus', models.NullBooleanField(default=None)),
],
options={
},
bases=('doc.docevent',),
),
migrations.CreateModel(
name='BallotPositionDocEvent',
fields=[
('docevent_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='doc.DocEvent')),
('discuss', models.TextField(help_text=b'Discuss text if position is discuss', blank=True)),
('discuss_time', models.DateTimeField(help_text=b'Time discuss text was written', null=True, blank=True)),
('comment', models.TextField(help_text=b'Optional comment', blank=True)),
('comment_time', models.DateTimeField(help_text=b'Time optional comment was written', null=True, blank=True)),
],
options={
},
bases=('doc.docevent',),
),
migrations.CreateModel(
name='BallotDocEvent',
fields=[
('docevent_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='doc.DocEvent')),
],
options={
},
bases=('doc.docevent',),
),
migrations.CreateModel(
name='DocHistory',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('time', models.DateTimeField(default=datetime.datetime.now)),
('title', models.CharField(max_length=255)),
('abstract', models.TextField(blank=True)),
('rev', models.CharField(max_length=16, verbose_name=b'revision', blank=True)),
('pages', models.IntegerField(null=True, blank=True)),
('order', models.IntegerField(default=1, blank=True)),
('expires', models.DateTimeField(null=True, blank=True)),
('notify', models.CharField(max_length=255, blank=True)),
('external_url', models.URLField(blank=True)),
('note', models.TextField(blank=True)),
('internal_comments', models.TextField(blank=True)),
('name', models.CharField(max_length=255)),
],
options={
'verbose_name': 'document history',
'verbose_name_plural': 'document histories',
},
bases=(models.Model,),
),
migrations.CreateModel(
name='DocHistoryAuthor',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('order', models.IntegerField()),
],
options={
'ordering': ['document', 'order'],
},
bases=(models.Model,),
),
migrations.CreateModel(
name='DocReminder',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('due', models.DateTimeField()),
('active', models.BooleanField(default=True)),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='Document',
fields=[
('time', models.DateTimeField(default=datetime.datetime.now)),
('title', models.CharField(max_length=255)),
('abstract', models.TextField(blank=True)),
('rev', models.CharField(max_length=16, verbose_name=b'revision', blank=True)),
('pages', models.IntegerField(null=True, blank=True)),
('order', models.IntegerField(default=1, blank=True)),
('expires', models.DateTimeField(null=True, blank=True)),
('notify', models.CharField(max_length=255, blank=True)),
('external_url', models.URLField(blank=True)),
('note', models.TextField(blank=True)),
('internal_comments', models.TextField(blank=True)),
('name', models.CharField(max_length=255, serialize=False, primary_key=True)),
('ad', models.ForeignKey(related_name='ad_document_set', verbose_name=b'area director', blank=True, to='person.Person', null=True)),
],
options={
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='DocumentAuthor',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('order', models.IntegerField(default=1)),
('author', models.ForeignKey(help_text=b'Email address used by author for submission', to='person.Email')),
('document', models.ForeignKey(to='doc.Document')),
],
options={
'ordering': ['document', 'order'],
},
bases=(models.Model,),
),
migrations.CreateModel(
name='InitialReviewDocEvent',
fields=[
('docevent_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='doc.DocEvent')),
('expires', models.DateTimeField(null=True, blank=True)),
],
options={
},
bases=('doc.docevent',),
),
migrations.CreateModel(
name='LastCallDocEvent',
fields=[
('docevent_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='doc.DocEvent')),
('expires', models.DateTimeField(null=True, blank=True)),
],
options={
},
bases=('doc.docevent',),
),
migrations.CreateModel(
name='NewRevisionDocEvent',
fields=[
('docevent_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='doc.DocEvent')),
('rev', models.CharField(max_length=16)),
],
options={
},
bases=('doc.docevent',),
),
migrations.CreateModel(
name='RelatedDocHistory',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('relationship', models.ForeignKey(to='name.DocRelationshipName')),
('source', models.ForeignKey(to='doc.DocHistory')),
('target', models.ForeignKey(related_name='reversely_related_document_history_set', to='doc.DocAlias')),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='RelatedDocument',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('relationship', models.ForeignKey(to='name.DocRelationshipName')),
('source', models.ForeignKey(to='doc.Document')),
('target', models.ForeignKey(to='doc.DocAlias')),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='State',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('slug', models.SlugField()),
('name', models.CharField(max_length=255)),
('used', models.BooleanField(default=True)),
('desc', models.TextField(blank=True)),
('order', models.IntegerField(default=0)),
('next_states', models.ManyToManyField(related_name='previous_states', to='doc.State', blank=True)),
],
options={
'ordering': ['type', 'order'],
},
bases=(models.Model,),
),
migrations.CreateModel(
name='StateDocEvent',
fields=[
('docevent_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='doc.DocEvent')),
('state', models.ForeignKey(blank=True, to='doc.State', null=True)),
],
options={
},
bases=('doc.docevent',),
),
migrations.CreateModel(
name='StateType',
fields=[
('slug', models.CharField(max_length=30, serialize=False, primary_key=True)),
('label', models.CharField(help_text=b'Label that should be used (e.g. in admin) for state drop-down for this type of state', max_length=255)),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='TelechatDocEvent',
fields=[
('docevent_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='doc.DocEvent')),
('telechat_date', models.DateField(null=True, blank=True)),
('returning_item', models.BooleanField(default=False)),
],
options={
},
bases=('doc.docevent',),
),
migrations.CreateModel(
name='WriteupDocEvent',
fields=[
('docevent_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='doc.DocEvent')),
('text', models.TextField(blank=True)),
],
options={
},
bases=('doc.docevent',),
),
migrations.AddField(
model_name='statedocevent',
name='state_type',
field=models.ForeignKey(to='doc.StateType'),
preserve_default=True,
),
migrations.AddField(
model_name='state',
name='type',
field=models.ForeignKey(to='doc.StateType'),
preserve_default=True,
),
migrations.AddField(
model_name='document',
name='authors',
field=models.ManyToManyField(to='person.Email', through='doc.DocumentAuthor', blank=True),
preserve_default=True,
),
]

View file

@ -0,0 +1,228 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('doc', '0001_initial'),
('group', '0001_initial'),
('name', '0001_initial'),
('contenttypes', '0001_initial'),
('person', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='document',
name='group',
field=models.ForeignKey(blank=True, to='group.Group', null=True),
preserve_default=True,
),
migrations.AddField(
model_name='document',
name='intended_std_level',
field=models.ForeignKey(verbose_name=b'Intended standardization level', blank=True, to='name.IntendedStdLevelName', null=True),
preserve_default=True,
),
migrations.AddField(
model_name='document',
name='shepherd',
field=models.ForeignKey(related_name='shepherd_document_set', blank=True, to='person.Email', null=True),
preserve_default=True,
),
migrations.AddField(
model_name='document',
name='states',
field=models.ManyToManyField(to='doc.State', blank=True),
preserve_default=True,
),
migrations.AddField(
model_name='document',
name='std_level',
field=models.ForeignKey(verbose_name=b'Standardization level', blank=True, to='name.StdLevelName', null=True),
preserve_default=True,
),
migrations.AddField(
model_name='document',
name='stream',
field=models.ForeignKey(blank=True, to='name.StreamName', null=True),
preserve_default=True,
),
migrations.AddField(
model_name='document',
name='tags',
field=models.ManyToManyField(to='name.DocTagName', null=True, blank=True),
preserve_default=True,
),
migrations.AddField(
model_name='document',
name='type',
field=models.ForeignKey(blank=True, to='name.DocTypeName', null=True),
preserve_default=True,
),
migrations.AddField(
model_name='docreminder',
name='event',
field=models.ForeignKey(to='doc.DocEvent'),
preserve_default=True,
),
migrations.AddField(
model_name='docreminder',
name='type',
field=models.ForeignKey(to='name.DocReminderTypeName'),
preserve_default=True,
),
migrations.AddField(
model_name='dochistoryauthor',
name='author',
field=models.ForeignKey(to='person.Email'),
preserve_default=True,
),
migrations.AddField(
model_name='dochistoryauthor',
name='document',
field=models.ForeignKey(to='doc.DocHistory'),
preserve_default=True,
),
migrations.AddField(
model_name='dochistory',
name='ad',
field=models.ForeignKey(related_name='ad_dochistory_set', verbose_name=b'area director', blank=True, to='person.Person', null=True),
preserve_default=True,
),
migrations.AddField(
model_name='dochistory',
name='authors',
field=models.ManyToManyField(to='person.Email', through='doc.DocHistoryAuthor', blank=True),
preserve_default=True,
),
migrations.AddField(
model_name='dochistory',
name='doc',
field=models.ForeignKey(related_name='history_set', to='doc.Document'),
preserve_default=True,
),
migrations.AddField(
model_name='dochistory',
name='group',
field=models.ForeignKey(blank=True, to='group.Group', null=True),
preserve_default=True,
),
migrations.AddField(
model_name='dochistory',
name='intended_std_level',
field=models.ForeignKey(verbose_name=b'Intended standardization level', blank=True, to='name.IntendedStdLevelName', null=True),
preserve_default=True,
),
migrations.AddField(
model_name='dochistory',
name='related',
field=models.ManyToManyField(to='doc.DocAlias', through='doc.RelatedDocHistory', blank=True),
preserve_default=True,
),
migrations.AddField(
model_name='dochistory',
name='shepherd',
field=models.ForeignKey(related_name='shepherd_dochistory_set', blank=True, to='person.Email', null=True),
preserve_default=True,
),
migrations.AddField(
model_name='dochistory',
name='states',
field=models.ManyToManyField(to='doc.State', blank=True),
preserve_default=True,
),
migrations.AddField(
model_name='dochistory',
name='std_level',
field=models.ForeignKey(verbose_name=b'Standardization level', blank=True, to='name.StdLevelName', null=True),
preserve_default=True,
),
migrations.AddField(
model_name='dochistory',
name='stream',
field=models.ForeignKey(blank=True, to='name.StreamName', null=True),
preserve_default=True,
),
migrations.AddField(
model_name='dochistory',
name='tags',
field=models.ManyToManyField(to='name.DocTagName', null=True, blank=True),
preserve_default=True,
),
migrations.AddField(
model_name='dochistory',
name='type',
field=models.ForeignKey(blank=True, to='name.DocTypeName', null=True),
preserve_default=True,
),
migrations.AddField(
model_name='docevent',
name='by',
field=models.ForeignKey(to='person.Person'),
preserve_default=True,
),
migrations.AddField(
model_name='docevent',
name='doc',
field=models.ForeignKey(to='doc.Document'),
preserve_default=True,
),
migrations.AddField(
model_name='docalias',
name='document',
field=models.ForeignKey(to='doc.Document'),
preserve_default=True,
),
migrations.AddField(
model_name='deletedevent',
name='by',
field=models.ForeignKey(to='person.Person'),
preserve_default=True,
),
migrations.AddField(
model_name='deletedevent',
name='content_type',
field=models.ForeignKey(to='contenttypes.ContentType'),
preserve_default=True,
),
migrations.AddField(
model_name='ballottype',
name='doc_type',
field=models.ForeignKey(blank=True, to='name.DocTypeName', null=True),
preserve_default=True,
),
migrations.AddField(
model_name='ballottype',
name='positions',
field=models.ManyToManyField(to='name.BallotPositionName', blank=True),
preserve_default=True,
),
migrations.AddField(
model_name='ballotpositiondocevent',
name='ad',
field=models.ForeignKey(to='person.Person'),
preserve_default=True,
),
migrations.AddField(
model_name='ballotpositiondocevent',
name='ballot',
field=models.ForeignKey(default=None, to='doc.BallotDocEvent', null=True),
preserve_default=True,
),
migrations.AddField(
model_name='ballotpositiondocevent',
name='pos',
field=models.ForeignKey(default=b'norecord', verbose_name=b'position', to='name.BallotPositionName'),
preserve_default=True,
),
migrations.AddField(
model_name='ballotdocevent',
name='ballot_type',
field=models.ForeignKey(to='doc.BallotType'),
preserve_default=True,
),
]

View file

@ -0,0 +1,200 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
class Migration(migrations.Migration):
dependencies = [
('name', '0001_initial'),
('person', '0001_initial'),
('doc', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Group',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('time', models.DateTimeField(default=datetime.datetime.now)),
('name', models.CharField(max_length=80)),
('description', models.TextField(blank=True)),
('list_email', models.CharField(max_length=64, blank=True)),
('list_subscribe', models.CharField(max_length=255, blank=True)),
('list_archive', models.CharField(max_length=255, blank=True)),
('comments', models.TextField(blank=True)),
('acronym', models.SlugField(unique=True, max_length=40)),
('ad', models.ForeignKey(verbose_name=b'AD', blank=True, to='person.Person', null=True)),
('charter', models.OneToOneField(related_name='chartered_group', null=True, blank=True, to='doc.Document')),
('parent', models.ForeignKey(blank=True, to='group.Group', null=True)),
('state', models.ForeignKey(to='name.GroupStateName', null=True)),
('type', models.ForeignKey(to='name.GroupTypeName', null=True)),
('unused_states', models.ManyToManyField(help_text=b'Document states that have been disabled for the group', to='doc.State', blank=True)),
('unused_tags', models.ManyToManyField(help_text=b'Document tags that have been disabled for the group', to='name.DocTagName', blank=True)),
],
options={
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='GroupEvent',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('time', models.DateTimeField(default=datetime.datetime.now, help_text=b'When the event happened')),
('type', models.CharField(max_length=50, choices=[(b'changed_state', b'Changed state'), (b'added_comment', b'Added comment'), (b'info_changed', b'Changed metadata'), (b'requested_close', b'Requested closing group'), (b'changed_milestone', b'Changed milestone'), (b'sent_notification', b'Sent notification')])),
('desc', models.TextField()),
],
options={
'ordering': ['-time', 'id'],
},
bases=(models.Model,),
),
migrations.CreateModel(
name='ChangeStateGroupEvent',
fields=[
('groupevent_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='group.GroupEvent')),
('state', models.ForeignKey(to='name.GroupStateName')),
],
options={
},
bases=('group.groupevent',),
),
migrations.CreateModel(
name='GroupHistory',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('time', models.DateTimeField(default=datetime.datetime.now)),
('name', models.CharField(max_length=80)),
('description', models.TextField(blank=True)),
('list_email', models.CharField(max_length=64, blank=True)),
('list_subscribe', models.CharField(max_length=255, blank=True)),
('list_archive', models.CharField(max_length=255, blank=True)),
('comments', models.TextField(blank=True)),
('acronym', models.CharField(max_length=40)),
('ad', models.ForeignKey(verbose_name=b'AD', blank=True, to='person.Person', null=True)),
('group', models.ForeignKey(related_name='history_set', to='group.Group')),
('parent', models.ForeignKey(blank=True, to='group.Group', null=True)),
('state', models.ForeignKey(to='name.GroupStateName', null=True)),
('type', models.ForeignKey(to='name.GroupTypeName', null=True)),
('unused_states', models.ManyToManyField(help_text=b'Document states that have been disabled for the group', to='doc.State', blank=True)),
('unused_tags', models.ManyToManyField(help_text=b'Document tags that have been disabled for the group', to='name.DocTagName', blank=True)),
],
options={
'verbose_name_plural': 'group histories',
},
bases=(models.Model,),
),
migrations.CreateModel(
name='GroupMilestone',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('desc', models.CharField(max_length=500, verbose_name=b'Description')),
('due', models.DateField()),
('resolved', models.CharField(help_text=b'Explanation of why milestone is resolved (usually "Done"), or empty if still due', max_length=50, blank=True)),
('time', models.DateTimeField(auto_now=True)),
('docs', models.ManyToManyField(to='doc.Document', blank=True)),
('group', models.ForeignKey(to='group.Group')),
('state', models.ForeignKey(to='name.GroupMilestoneStateName')),
],
options={
'ordering': ['due', 'id'],
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='GroupMilestoneHistory',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('desc', models.CharField(max_length=500, verbose_name=b'Description')),
('due', models.DateField()),
('resolved', models.CharField(help_text=b'Explanation of why milestone is resolved (usually "Done"), or empty if still due', max_length=50, blank=True)),
('time', models.DateTimeField()),
('docs', models.ManyToManyField(to='doc.Document', blank=True)),
('group', models.ForeignKey(to='group.Group')),
('milestone', models.ForeignKey(related_name='history_set', to='group.GroupMilestone')),
('state', models.ForeignKey(to='name.GroupMilestoneStateName')),
],
options={
'ordering': ['due', 'id'],
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='GroupStateTransitions',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('group', models.ForeignKey(to='group.Group')),
('next_states', models.ManyToManyField(related_name='previous_groupstatetransitions_states', to='doc.State')),
('state', models.ForeignKey(help_text=b'State for which the next states should be overridden', to='doc.State')),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='GroupURL',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('name', models.CharField(max_length=255)),
('url', models.URLField()),
('group', models.ForeignKey(to='group.Group')),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='MilestoneGroupEvent',
fields=[
('groupevent_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='group.GroupEvent')),
('milestone', models.ForeignKey(to='group.GroupMilestone')),
],
options={
},
bases=('group.groupevent',),
),
migrations.CreateModel(
name='Role',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('email', models.ForeignKey(help_text=b'Email address used by person for this role', to='person.Email')),
('group', models.ForeignKey(to='group.Group')),
('name', models.ForeignKey(to='name.RoleName')),
('person', models.ForeignKey(to='person.Person')),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='RoleHistory',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('email', models.ForeignKey(help_text=b'Email address used by person for this role', to='person.Email')),
('group', models.ForeignKey(to='group.GroupHistory')),
('name', models.ForeignKey(to='name.RoleName')),
('person', models.ForeignKey(to='person.Person')),
],
options={
'verbose_name_plural': 'role histories',
},
bases=(models.Model,),
),
migrations.AddField(
model_name='groupevent',
name='by',
field=models.ForeignKey(to='person.Person'),
preserve_default=True,
),
migrations.AddField(
model_name='groupevent',
name='group',
field=models.ForeignKey(to='group.Group'),
preserve_default=True,
),
]

View file

@ -0,0 +1,320 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('message', '__first__'),
('name', '0001_initial'),
('doc', '0002_auto_20141222_1749'),
('person', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='IprContact',
fields=[
('contact_id', models.AutoField(serialize=False, primary_key=True)),
('contact_type', models.IntegerField(choices=[(1, b'Patent Holder Contact'), (2, b'IETF Participant Contact'), (3, b'Submitter Contact')])),
('name', models.CharField(max_length=255)),
('title', models.CharField(max_length=255, blank=True)),
('department', models.CharField(max_length=255, blank=True)),
('address1', models.CharField(max_length=255, blank=True)),
('address2', models.CharField(max_length=255, blank=True)),
('telephone', models.CharField(max_length=25, blank=True)),
('fax', models.CharField(max_length=25, blank=True)),
('email', models.EmailField(max_length=255)),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='IprDetail',
fields=[
('ipr_id', models.AutoField(serialize=False, primary_key=True)),
('title', models.CharField(max_length=255, db_column=b'document_title', blank=True)),
('legacy_url_0', models.CharField(max_length=255, null=True, db_column=b'old_ipr_url', blank=True)),
('legacy_url_1', models.CharField(max_length=255, null=True, db_column=b'additional_old_url1', blank=True)),
('legacy_title_1', models.CharField(max_length=255, null=True, db_column=b'additional_old_title1', blank=True)),
('legacy_url_2', models.CharField(max_length=255, null=True, db_column=b'additional_old_url2', blank=True)),
('legacy_title_2', models.CharField(max_length=255, null=True, db_column=b'additional_old_title2', blank=True)),
('legal_name', models.CharField(max_length=255, verbose_name=b'Legal Name', db_column=b'p_h_legal_name')),
('rfc_number', models.IntegerField(null=True, editable=False, blank=True)),
('id_document_tag', models.IntegerField(null=True, editable=False, blank=True)),
('other_designations', models.CharField(max_length=255, blank=True)),
('document_sections', models.TextField(max_length=255, verbose_name=b'Specific document sections covered', db_column=b'disclouser_identify', blank=True)),
('patents', models.TextField(max_length=255, verbose_name=b'Patent Applications', db_column=b'p_applications')),
('date_applied', models.CharField(max_length=255)),
('country', models.CharField(max_length=255)),
('notes', models.TextField(verbose_name=b'Additional notes', db_column=b'p_notes', blank=True)),
('is_pending', models.IntegerField(blank=True, null=True, verbose_name=b'Unpublished Pending Patent Application', db_column=b'selecttype', choices=[(0, b'NO'), (1, b'YES'), (2, b'NO')])),
('applies_to_all', models.IntegerField(blank=True, null=True, verbose_name=b'Applies to all IPR owned by Submitter', db_column=b'selectowned', choices=[(0, b'NO'), (1, b'YES'), (2, b'NO')])),
('licensing_option', models.IntegerField(blank=True, null=True, choices=[(0, b''), (1, b'a) No License Required for Implementers.'), (2, b'b) Royalty-Free, Reasonable and Non-Discriminatory License to All Implementers.'), (3, b'c) Reasonable and Non-Discriminatory License to All Implementers with Possible Royalty/Fee.'), (4, b'd) Licensing Declaration to be Provided Later (implies a willingness to commit to the provisions of a), b), or c) above to all implementers; otherwise, the next option "Unwilling to Commit to the Provisions of a), b), or c) Above". - must be selected).'), (5, b'e) Unwilling to Commit to the Provisions of a), b), or c) Above.'), (6, b'f) See Text Below for Licensing Declaration.')])),
('lic_opt_a_sub', models.IntegerField(null=True, editable=False, choices=[(0, b''), (1, b'The licensing declaration is limited solely to standards-track IETF documents.')])),
('lic_opt_b_sub', models.IntegerField(null=True, editable=False, choices=[(0, b''), (1, b'The licensing declaration is limited solely to standards-track IETF documents.')])),
('lic_opt_c_sub', models.IntegerField(null=True, editable=False, choices=[(0, b''), (1, b'The licensing declaration is limited solely to standards-track IETF documents.')])),
('comments', models.TextField(verbose_name=b'Licensing Comments', blank=True)),
('lic_checkbox', models.BooleanField(default=False, verbose_name=b'All terms and conditions has been disclosed')),
('other_notes', models.TextField(blank=True)),
('third_party', models.BooleanField(default=False)),
('generic', models.BooleanField(default=False)),
('comply', models.BooleanField(default=False)),
('status', models.IntegerField(blank=True, null=True, choices=[(0, b'Waiting for approval'), (1, b'Approved and Posted'), (2, b'Rejected by Administrator'), (3, b'Removed by Request')])),
('submitted_date', models.DateField(blank=True)),
('update_notified_date', models.DateField(null=True, blank=True)),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='IprDisclosureBase',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('compliant', models.BooleanField(default=True)),
('holder_legal_name', models.CharField(max_length=255)),
('notes', models.TextField(blank=True)),
('other_designations', models.CharField(max_length=255, blank=True)),
('submitter_name', models.CharField(max_length=255)),
('submitter_email', models.EmailField(max_length=75)),
('time', models.DateTimeField(auto_now_add=True)),
('title', models.CharField(max_length=255, blank=True)),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='HolderIprDisclosure',
fields=[
('iprdisclosurebase_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='ipr.IprDisclosureBase')),
('ietfer_name', models.CharField(max_length=255, blank=True)),
('ietfer_contact_email', models.EmailField(max_length=75, blank=True)),
('ietfer_contact_info', models.TextField(blank=True)),
('patent_info', models.TextField()),
('has_patent_pending', models.BooleanField(default=False)),
('holder_contact_email', models.EmailField(max_length=75)),
('holder_contact_name', models.CharField(max_length=255)),
('holder_contact_info', models.TextField(blank=True)),
('licensing_comments', models.TextField(blank=True)),
('submitter_claims_all_terms_disclosed', models.BooleanField(default=False)),
('licensing', models.ForeignKey(to='name.IprLicenseTypeName')),
],
options={
},
bases=('ipr.iprdisclosurebase',),
),
migrations.CreateModel(
name='GenericIprDisclosure',
fields=[
('iprdisclosurebase_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='ipr.IprDisclosureBase')),
('holder_contact_name', models.CharField(max_length=255)),
('holder_contact_email', models.EmailField(max_length=75)),
('holder_contact_info', models.TextField(blank=True)),
('statement', models.TextField()),
],
options={
},
bases=('ipr.iprdisclosurebase',),
),
migrations.CreateModel(
name='IprDocAlias',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('rev', models.CharField(max_length=2, blank=True)),
('doc_alias', models.ForeignKey(to='doc.DocAlias')),
('ipr', models.ForeignKey(to='ipr.IprDetail')),
],
options={
'verbose_name': 'IPR document alias',
'verbose_name_plural': 'IPR document aliases',
},
bases=(models.Model,),
),
migrations.CreateModel(
name='IprDocRel',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('sections', models.TextField(blank=True)),
('revisions', models.CharField(max_length=16, blank=True)),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='IprEvent',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('time', models.DateTimeField(auto_now_add=True)),
('desc', models.TextField()),
('response_due', models.DateTimeField(null=True, blank=True)),
],
options={
'ordering': ['-time', '-id'],
},
bases=(models.Model,),
),
migrations.CreateModel(
name='IprNotification',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('notification', models.TextField(blank=True)),
('date_sent', models.DateField(null=True, blank=True)),
('time_sent', models.CharField(max_length=25, blank=True)),
('ipr', models.ForeignKey(to='ipr.IprDetail')),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='IprUpdate',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('status_to_be', models.IntegerField(null=True, blank=True)),
('processed', models.IntegerField(null=True, blank=True)),
('ipr', models.ForeignKey(related_name='updates', to='ipr.IprDetail')),
('updated', models.ForeignKey(related_name='updated_by', db_column=b'updated', to='ipr.IprDetail')),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='LegacyMigrationIprEvent',
fields=[
('iprevent_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='ipr.IprEvent')),
],
options={
},
bases=('ipr.iprevent',),
),
migrations.CreateModel(
name='NonDocSpecificIprDisclosure',
fields=[
('iprdisclosurebase_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='ipr.IprDisclosureBase')),
('holder_contact_name', models.CharField(max_length=255)),
('holder_contact_email', models.EmailField(max_length=75)),
('holder_contact_info', models.TextField(blank=True)),
('patent_info', models.TextField()),
('has_patent_pending', models.BooleanField(default=False)),
('statement', models.TextField()),
],
options={
},
bases=('ipr.iprdisclosurebase',),
),
migrations.CreateModel(
name='RelatedIpr',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('relationship', models.ForeignKey(to='name.DocRelationshipName')),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='ThirdPartyIprDisclosure',
fields=[
('iprdisclosurebase_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='ipr.IprDisclosureBase')),
('ietfer_name', models.CharField(max_length=255)),
('ietfer_contact_email', models.EmailField(max_length=75)),
('ietfer_contact_info', models.TextField(blank=True)),
('patent_info', models.TextField()),
('has_patent_pending', models.BooleanField(default=False)),
],
options={
},
bases=('ipr.iprdisclosurebase',),
),
migrations.AddField(
model_name='relatedipr',
name='source',
field=models.ForeignKey(related_name='relatedipr_source_set', to='ipr.IprDisclosureBase'),
preserve_default=True,
),
migrations.AddField(
model_name='relatedipr',
name='target',
field=models.ForeignKey(related_name='relatedipr_target_set', to='ipr.IprDisclosureBase'),
preserve_default=True,
),
migrations.AddField(
model_name='iprevent',
name='by',
field=models.ForeignKey(to='person.Person'),
preserve_default=True,
),
migrations.AddField(
model_name='iprevent',
name='disclosure',
field=models.ForeignKey(to='ipr.IprDisclosureBase'),
preserve_default=True,
),
migrations.AddField(
model_name='iprevent',
name='in_reply_to',
field=models.ForeignKey(related_name='irtoevents', blank=True, to='message.Message', null=True),
preserve_default=True,
),
migrations.AddField(
model_name='iprevent',
name='message',
field=models.ForeignKey(related_name='msgevents', blank=True, to='message.Message', null=True),
preserve_default=True,
),
migrations.AddField(
model_name='iprevent',
name='type',
field=models.ForeignKey(to='name.IprEventTypeName'),
preserve_default=True,
),
migrations.AddField(
model_name='iprdocrel',
name='disclosure',
field=models.ForeignKey(to='ipr.IprDisclosureBase'),
preserve_default=True,
),
migrations.AddField(
model_name='iprdocrel',
name='document',
field=models.ForeignKey(to='doc.DocAlias'),
preserve_default=True,
),
migrations.AddField(
model_name='iprdisclosurebase',
name='by',
field=models.ForeignKey(to='person.Person'),
preserve_default=True,
),
migrations.AddField(
model_name='iprdisclosurebase',
name='docs',
field=models.ManyToManyField(to='doc.DocAlias', through='ipr.IprDocRel'),
preserve_default=True,
),
migrations.AddField(
model_name='iprdisclosurebase',
name='rel',
field=models.ManyToManyField(to='ipr.IprDisclosureBase', through='ipr.RelatedIpr'),
preserve_default=True,
),
migrations.AddField(
model_name='iprdisclosurebase',
name='state',
field=models.ForeignKey(to='name.IprDisclosureStateName'),
preserve_default=True,
),
migrations.AddField(
model_name='iprcontact',
name='ipr',
field=models.ForeignKey(related_name='contact', to='ipr.IprDetail'),
preserve_default=True,
),
]

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,392 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='BallotPositionName',
fields=[
('slug', models.CharField(max_length=32, serialize=False, primary_key=True)),
('name', models.CharField(max_length=255)),
('desc', models.TextField(blank=True)),
('used', models.BooleanField(default=True)),
('order', models.IntegerField(default=0)),
('blocking', models.BooleanField(default=False)),
],
options={
'ordering': ['order'],
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='ConstraintName',
fields=[
('slug', models.CharField(max_length=32, serialize=False, primary_key=True)),
('name', models.CharField(max_length=255)),
('desc', models.TextField(blank=True)),
('used', models.BooleanField(default=True)),
('order', models.IntegerField(default=0)),
('penalty', models.IntegerField(default=0, help_text=b'The penalty for violating this kind of constraint; for instance 10 (small penalty) or 10000 (large penalty)')),
],
options={
'ordering': ['order'],
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='DBTemplateTypeName',
fields=[
('slug', models.CharField(max_length=32, serialize=False, primary_key=True)),
('name', models.CharField(max_length=255)),
('desc', models.TextField(blank=True)),
('used', models.BooleanField(default=True)),
('order', models.IntegerField(default=0)),
],
options={
'ordering': ['order'],
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='DocRelationshipName',
fields=[
('slug', models.CharField(max_length=32, serialize=False, primary_key=True)),
('name', models.CharField(max_length=255)),
('desc', models.TextField(blank=True)),
('used', models.BooleanField(default=True)),
('order', models.IntegerField(default=0)),
('revname', models.CharField(max_length=255)),
],
options={
'ordering': ['order'],
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='DocReminderTypeName',
fields=[
('slug', models.CharField(max_length=32, serialize=False, primary_key=True)),
('name', models.CharField(max_length=255)),
('desc', models.TextField(blank=True)),
('used', models.BooleanField(default=True)),
('order', models.IntegerField(default=0)),
],
options={
'ordering': ['order'],
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='DocTagName',
fields=[
('slug', models.CharField(max_length=32, serialize=False, primary_key=True)),
('name', models.CharField(max_length=255)),
('desc', models.TextField(blank=True)),
('used', models.BooleanField(default=True)),
('order', models.IntegerField(default=0)),
],
options={
'ordering': ['order'],
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='DocTypeName',
fields=[
('slug', models.CharField(max_length=32, serialize=False, primary_key=True)),
('name', models.CharField(max_length=255)),
('desc', models.TextField(blank=True)),
('used', models.BooleanField(default=True)),
('order', models.IntegerField(default=0)),
],
options={
'ordering': ['order'],
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='DraftSubmissionStateName',
fields=[
('slug', models.CharField(max_length=32, serialize=False, primary_key=True)),
('name', models.CharField(max_length=255)),
('desc', models.TextField(blank=True)),
('used', models.BooleanField(default=True)),
('order', models.IntegerField(default=0)),
('next_states', models.ManyToManyField(related_name='previous_states', to='name.DraftSubmissionStateName', blank=True)),
],
options={
'ordering': ['order'],
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='FeedbackTypeName',
fields=[
('slug', models.CharField(max_length=32, serialize=False, primary_key=True)),
('name', models.CharField(max_length=255)),
('desc', models.TextField(blank=True)),
('used', models.BooleanField(default=True)),
('order', models.IntegerField(default=0)),
],
options={
'ordering': ['order'],
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='GroupMilestoneStateName',
fields=[
('slug', models.CharField(max_length=32, serialize=False, primary_key=True)),
('name', models.CharField(max_length=255)),
('desc', models.TextField(blank=True)),
('used', models.BooleanField(default=True)),
('order', models.IntegerField(default=0)),
],
options={
'ordering': ['order'],
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='GroupStateName',
fields=[
('slug', models.CharField(max_length=32, serialize=False, primary_key=True)),
('name', models.CharField(max_length=255)),
('desc', models.TextField(blank=True)),
('used', models.BooleanField(default=True)),
('order', models.IntegerField(default=0)),
],
options={
'ordering': ['order'],
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='GroupTypeName',
fields=[
('slug', models.CharField(max_length=32, serialize=False, primary_key=True)),
('name', models.CharField(max_length=255)),
('desc', models.TextField(blank=True)),
('used', models.BooleanField(default=True)),
('order', models.IntegerField(default=0)),
],
options={
'ordering': ['order'],
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='IntendedStdLevelName',
fields=[
('slug', models.CharField(max_length=32, serialize=False, primary_key=True)),
('name', models.CharField(max_length=255)),
('desc', models.TextField(blank=True)),
('used', models.BooleanField(default=True)),
('order', models.IntegerField(default=0)),
],
options={
'ordering': ['order'],
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='IprDisclosureStateName',
fields=[
('slug', models.CharField(max_length=32, serialize=False, primary_key=True)),
('name', models.CharField(max_length=255)),
('desc', models.TextField(blank=True)),
('used', models.BooleanField(default=True)),
('order', models.IntegerField(default=0)),
],
options={
'ordering': ['order'],
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='IprEventTypeName',
fields=[
('slug', models.CharField(max_length=32, serialize=False, primary_key=True)),
('name', models.CharField(max_length=255)),
('desc', models.TextField(blank=True)),
('used', models.BooleanField(default=True)),
('order', models.IntegerField(default=0)),
],
options={
'ordering': ['order'],
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='IprLicenseTypeName',
fields=[
('slug', models.CharField(max_length=32, serialize=False, primary_key=True)),
('name', models.CharField(max_length=255)),
('desc', models.TextField(blank=True)),
('used', models.BooleanField(default=True)),
('order', models.IntegerField(default=0)),
],
options={
'ordering': ['order'],
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='LiaisonStatementPurposeName',
fields=[
('slug', models.CharField(max_length=32, serialize=False, primary_key=True)),
('name', models.CharField(max_length=255)),
('desc', models.TextField(blank=True)),
('used', models.BooleanField(default=True)),
('order', models.IntegerField(default=0)),
],
options={
'ordering': ['order'],
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='MeetingTypeName',
fields=[
('slug', models.CharField(max_length=32, serialize=False, primary_key=True)),
('name', models.CharField(max_length=255)),
('desc', models.TextField(blank=True)),
('used', models.BooleanField(default=True)),
('order', models.IntegerField(default=0)),
],
options={
'ordering': ['order'],
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='NomineePositionStateName',
fields=[
('slug', models.CharField(max_length=32, serialize=False, primary_key=True)),
('name', models.CharField(max_length=255)),
('desc', models.TextField(blank=True)),
('used', models.BooleanField(default=True)),
('order', models.IntegerField(default=0)),
],
options={
'ordering': ['order'],
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='RoleName',
fields=[
('slug', models.CharField(max_length=32, serialize=False, primary_key=True)),
('name', models.CharField(max_length=255)),
('desc', models.TextField(blank=True)),
('used', models.BooleanField(default=True)),
('order', models.IntegerField(default=0)),
],
options={
'ordering': ['order'],
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='RoomResourceName',
fields=[
('slug', models.CharField(max_length=32, serialize=False, primary_key=True)),
('name', models.CharField(max_length=255)),
('desc', models.TextField(blank=True)),
('used', models.BooleanField(default=True)),
('order', models.IntegerField(default=0)),
],
options={
'ordering': ['order'],
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='SessionStatusName',
fields=[
('slug', models.CharField(max_length=32, serialize=False, primary_key=True)),
('name', models.CharField(max_length=255)),
('desc', models.TextField(blank=True)),
('used', models.BooleanField(default=True)),
('order', models.IntegerField(default=0)),
],
options={
'ordering': ['order'],
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='StdLevelName',
fields=[
('slug', models.CharField(max_length=32, serialize=False, primary_key=True)),
('name', models.CharField(max_length=255)),
('desc', models.TextField(blank=True)),
('used', models.BooleanField(default=True)),
('order', models.IntegerField(default=0)),
],
options={
'ordering': ['order'],
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='StreamName',
fields=[
('slug', models.CharField(max_length=32, serialize=False, primary_key=True)),
('name', models.CharField(max_length=255)),
('desc', models.TextField(blank=True)),
('used', models.BooleanField(default=True)),
('order', models.IntegerField(default=0)),
],
options={
'ordering': ['order'],
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='TimeSlotTypeName',
fields=[
('slug', models.CharField(max_length=32, serialize=False, primary_key=True)),
('name', models.CharField(max_length=255)),
('desc', models.TextField(blank=True)),
('used', models.BooleanField(default=True)),
('order', models.IntegerField(default=0)),
],
options={
'ordering': ['order'],
'abstract': False,
},
bases=(models.Model,),
),
]

View file

@ -0,0 +1,197 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import ietf.nomcom.models
import ietf.nomcom.fields
import django.core.files.storage
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('group', '0001_initial'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('dbtemplate', '0001_initial'),
('name', '0001_initial'),
('person', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Feedback',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('author', models.EmailField(max_length=75, verbose_name=b'Author', blank=True)),
('subject', models.TextField(verbose_name=b'Subject', blank=True)),
('comments', ietf.nomcom.fields.EncryptedTextField(verbose_name=b'Comments')),
('time', models.DateTimeField(auto_now_add=True)),
],
options={
'ordering': ['time'],
},
bases=(models.Model,),
),
migrations.CreateModel(
name='NomCom',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('public_key', models.FileField(storage=django.core.files.storage.FileSystemStorage(location=b'/var/www/nomcom/public_keys/'), null=True, upload_to=ietf.nomcom.models.upload_path_handler, blank=True)),
('send_questionnaire', models.BooleanField(default=False, help_text=b'If you check this box, questionnaires are sent automatically after nominations', verbose_name=b'Send questionnaires automatically"')),
('reminder_interval', models.PositiveIntegerField(help_text=b'If the nomcom user sets the interval field then a cron command will send reminders to the nominees who have not responded using the following formula: (today - nomination_date) % interval == 0', null=True, blank=True)),
('initial_text', models.TextField(verbose_name=b'Help text for nomination form', blank=True)),
('group', models.ForeignKey(to='group.Group')),
],
options={
'verbose_name': 'NomCom',
'verbose_name_plural': 'NomComs',
},
bases=(models.Model,),
),
migrations.CreateModel(
name='Nomination',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('candidate_name', models.CharField(max_length=255, verbose_name=b'Candidate name')),
('candidate_email', models.EmailField(max_length=255, verbose_name=b'Candidate email')),
('candidate_phone', models.CharField(max_length=255, verbose_name=b'Candidate phone', blank=True)),
('nominator_email', models.EmailField(max_length=75, verbose_name=b'Nominator Email', blank=True)),
('time', models.DateTimeField(auto_now_add=True)),
('comments', models.ForeignKey(to='nomcom.Feedback')),
],
options={
'verbose_name_plural': 'Nominations',
},
bases=(models.Model,),
),
migrations.CreateModel(
name='Nominee',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('duplicated', models.ForeignKey(blank=True, to='nomcom.Nominee', null=True)),
('email', models.ForeignKey(to='person.Email')),
('nomcom', models.ForeignKey(to='nomcom.NomCom')),
],
options={
'verbose_name_plural': 'Nominees',
},
bases=(models.Model,),
),
migrations.CreateModel(
name='NomineePosition',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('time', models.DateTimeField(auto_now_add=True)),
('nominee', models.ForeignKey(to='nomcom.Nominee')),
],
options={
'ordering': ['nominee'],
'verbose_name': 'Nominee position',
'verbose_name_plural': 'Nominee positions',
},
bases=(models.Model,),
),
migrations.CreateModel(
name='Position',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('name', models.CharField(max_length=255, verbose_name=b'Name')),
('description', models.TextField(verbose_name=b'Description')),
('is_open', models.BooleanField(default=False, verbose_name=b'Is open')),
('incumbent', models.ForeignKey(blank=True, to='person.Email', null=True)),
('nomcom', models.ForeignKey(to='nomcom.NomCom')),
('questionnaire', models.ForeignKey(related_name='questionnaire', editable=False, to='dbtemplate.DBTemplate', null=True)),
('requirement', models.ForeignKey(related_name='requirement', editable=False, to='dbtemplate.DBTemplate', null=True)),
],
options={
'verbose_name_plural': 'Positions',
},
bases=(models.Model,),
),
migrations.CreateModel(
name='ReminderDates',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('date', models.DateField()),
('nomcom', models.ForeignKey(to='nomcom.NomCom')),
],
options={
},
bases=(models.Model,),
),
migrations.AddField(
model_name='nomineeposition',
name='position',
field=models.ForeignKey(to='nomcom.Position'),
preserve_default=True,
),
migrations.AddField(
model_name='nomineeposition',
name='state',
field=models.ForeignKey(to='name.NomineePositionStateName'),
preserve_default=True,
),
migrations.AlterUniqueTogether(
name='nomineeposition',
unique_together=set([('position', 'nominee')]),
),
migrations.AddField(
model_name='nominee',
name='nominee_position',
field=models.ManyToManyField(to='nomcom.Position', through='nomcom.NomineePosition'),
preserve_default=True,
),
migrations.AlterUniqueTogether(
name='nominee',
unique_together=set([('email', 'nomcom')]),
),
migrations.AddField(
model_name='nomination',
name='nominee',
field=models.ForeignKey(to='nomcom.Nominee'),
preserve_default=True,
),
migrations.AddField(
model_name='nomination',
name='position',
field=models.ForeignKey(to='nomcom.Position'),
preserve_default=True,
),
migrations.AddField(
model_name='nomination',
name='user',
field=models.ForeignKey(editable=False, to=settings.AUTH_USER_MODEL),
preserve_default=True,
),
migrations.AddField(
model_name='feedback',
name='nomcom',
field=models.ForeignKey(to='nomcom.NomCom'),
preserve_default=True,
),
migrations.AddField(
model_name='feedback',
name='nominees',
field=models.ManyToManyField(to='nomcom.Nominee', null=True, blank=True),
preserve_default=True,
),
migrations.AddField(
model_name='feedback',
name='positions',
field=models.ManyToManyField(to='nomcom.Position', null=True, blank=True),
preserve_default=True,
),
migrations.AddField(
model_name='feedback',
name='type',
field=models.ForeignKey(blank=True, to='name.FeedbackTypeName', null=True),
preserve_default=True,
),
migrations.AddField(
model_name='feedback',
name='user',
field=models.ForeignKey(blank=True, editable=False, to=settings.AUTH_USER_MODEL, null=True),
preserve_default=True,
),
]

View file

@ -0,0 +1,85 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Alias',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('name', models.CharField(max_length=255, db_index=True)),
],
options={
'verbose_name_plural': 'Aliases',
},
bases=(models.Model,),
),
migrations.CreateModel(
name='Email',
fields=[
('address', models.CharField(max_length=64, serialize=False, primary_key=True)),
('time', models.DateTimeField(auto_now_add=True)),
('active', models.BooleanField(default=True)),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='Person',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('time', models.DateTimeField(default=datetime.datetime.now)),
('name', models.CharField(max_length=255, db_index=True)),
('ascii', models.CharField(max_length=255)),
('ascii_short', models.CharField(max_length=32, null=True, blank=True)),
('address', models.TextField(max_length=255, blank=True)),
('affiliation', models.CharField(max_length=255, blank=True)),
('user', models.OneToOneField(null=True, blank=True, to=settings.AUTH_USER_MODEL)),
],
options={
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='PersonHistory',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('time', models.DateTimeField(default=datetime.datetime.now)),
('name', models.CharField(max_length=255, db_index=True)),
('ascii', models.CharField(max_length=255)),
('ascii_short', models.CharField(max_length=32, null=True, blank=True)),
('address', models.TextField(max_length=255, blank=True)),
('affiliation', models.CharField(max_length=255, blank=True)),
('person', models.ForeignKey(related_name='history_set', to='person.Person')),
('user', models.ForeignKey(blank=True, to=settings.AUTH_USER_MODEL, null=True)),
],
options={
'abstract': False,
},
bases=(models.Model,),
),
migrations.AddField(
model_name='email',
name='person',
field=models.ForeignKey(to='person.Person', null=True),
preserve_default=True,
),
migrations.AddField(
model_name='alias',
name='person',
field=models.ForeignKey(to='person.Person'),
preserve_default=True,
),
]

View file

@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('meeting', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Registration',
fields=[
('rsn', models.AutoField(serialize=False, primary_key=True)),
('fname', models.CharField(max_length=255)),
('lname', models.CharField(max_length=255)),
('company', models.CharField(max_length=255)),
('country', models.CharField(max_length=2)),
],
options={
'db_table': 'registrations',
},
bases=(models.Model,),
),
migrations.CreateModel(
name='InterimMeeting',
fields=[
],
options={
'proxy': True,
},
bases=('meeting.meeting',),
),
]

View file

@ -0,0 +1,73 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
import ietf.utils.accesstoken
class Migration(migrations.Migration):
dependencies = [
('group', '0001_initial'),
('name', '0001_initial'),
('person', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Preapproval',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('name', models.CharField(max_length=255, db_index=True)),
('time', models.DateTimeField(default=datetime.datetime.now)),
('by', models.ForeignKey(to='person.Person')),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='Submission',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('remote_ip', models.CharField(max_length=100, blank=True)),
('access_key', models.CharField(default=ietf.utils.accesstoken.generate_random_key, max_length=255)),
('auth_key', models.CharField(max_length=255, blank=True)),
('name', models.CharField(max_length=255, db_index=True)),
('title', models.CharField(max_length=255, blank=True)),
('abstract', models.TextField(blank=True)),
('rev', models.CharField(max_length=3, blank=True)),
('pages', models.IntegerField(null=True, blank=True)),
('authors', models.TextField(help_text=b'List of author names and emails, one author per line, e.g. "John Doe <john@example.org>"', blank=True)),
('note', models.TextField(blank=True)),
('replaces', models.CharField(max_length=255, blank=True)),
('first_two_pages', models.TextField(blank=True)),
('file_types', models.CharField(max_length=50, blank=True)),
('file_size', models.IntegerField(null=True, blank=True)),
('document_date', models.DateField(null=True, blank=True)),
('submission_date', models.DateField(default=datetime.date.today)),
('submitter', models.CharField(help_text=b'Name and email of submitter, e.g. "John Doe <john@example.org>"', max_length=255, blank=True)),
('idnits_message', models.TextField(blank=True)),
('group', models.ForeignKey(blank=True, to='group.Group', null=True)),
('state', models.ForeignKey(to='name.DraftSubmissionStateName')),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='SubmissionEvent',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('time', models.DateTimeField(default=datetime.datetime.now)),
('desc', models.TextField()),
('by', models.ForeignKey(blank=True, to='person.Person', null=True)),
('submission', models.ForeignKey(to='submit.Submission')),
],
options={
'ordering': ('-time', '-id'),
},
bases=(models.Model,),
),
]