diff options
author | Sashi20 | 2019-09-03 15:38:47 +0530 |
---|---|---|
committer | GitHub | 2019-09-03 15:38:47 +0530 |
commit | 463e9487c6ee11146a6a8fb3689650af663dfe51 (patch) | |
tree | ae54d42aeba719e5c5f92eb0969b67b759c295da /website/migrations | |
parent | d0ff5d11f935ba5217c1be6357d44891b6e22b3c (diff) | |
parent | ba6097725b5154390e85a0f627b4014f95d6f3fa (diff) | |
download | SciPy2019-463e9487c6ee11146a6a8fb3689650af663dfe51.tar.gz SciPy2019-463e9487c6ee11146a6a8fb3689650af663dfe51.tar.bz2 SciPy2019-463e9487c6ee11146a6a8fb3689650af663dfe51.zip |
Merge pull request #3 from Sashi20/development
Add images and modify cfp templates
Diffstat (limited to 'website/migrations')
-rw-r--r-- | website/migrations/0001_initial.py | 97 | ||||
-rw-r--r-- | website/migrations/__init__.py | 0 |
2 files changed, 97 insertions, 0 deletions
diff --git a/website/migrations/0001_initial.py b/website/migrations/0001_initial.py new file mode 100644 index 0000000..e5cd47f --- /dev/null +++ b/website/migrations/0001_initial.py @@ -0,0 +1,97 @@ +# Generated by Django 2.2.4 on 2019-09-01 16:13 + +from django.conf import settings +import django.core.validators +from django.db import migrations, models +import django.db.models.deletion +import website.models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ] + + operations = [ + migrations.CreateModel( + name='CFP', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('start_date', models.DateTimeField(blank=True, null=True)), + ('end_date', models.DateTimeField(blank=True, null=True)), + ('date_of_announcement', models.DateTimeField(blank=True, null=True)), + ('receive_proposals', models.BooleanField(default=True)), + ], + ), + migrations.CreateModel( + name='Proposal', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name_of_author1', models.CharField(default='None', max_length=200)), + ('name_of_author2', models.CharField(default='None', max_length=200)), + ('about_the_authors', models.TextField(max_length=500)), + ('email', models.CharField(max_length=128)), + ('phone', models.CharField(max_length=20)), + ('title', models.CharField(max_length=250)), + ('abstract', models.TextField(max_length=700)), + ('prerequisite', models.CharField(max_length=750)), + ('duration', models.CharField(max_length=100)), + ('attachment', models.FileField(upload_to=website.models.get_document_dir)), + ('date_created', models.DateTimeField(auto_now_add=True)), + ('date_modified', models.DateTimeField(auto_now=True)), + ('status', models.CharField(default='Pending', max_length=100)), + ('proposal_type', models.CharField(max_length=100)), + ('tags', models.CharField(max_length=250)), + ('open_to_share', models.CharField(default=1, max_length=2)), + ('terms_and_conditions', models.BooleanField(default='True')), + ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), + ], + ), + migrations.CreateModel( + name='RegistrationDetail', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('registration_type', models.CharField(blank=True, max_length=50, null=True)), + ('start_date', models.DateTimeField(blank=True, null=True)), + ('end_date', models.DateTimeField(blank=True, null=True)), + ('registration_ticket', models.CharField(blank=True, max_length=100, null=True)), + ('registration_description', models.CharField(blank=True, max_length=250, null=True)), + ], + ), + migrations.CreateModel( + name='Ratings', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('rating', models.CharField(max_length=700)), + ('proposal', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='website.Proposal')), + ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), + ], + ), + migrations.CreateModel( + name='Profile', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('title', models.CharField(blank=True, choices=[('Mr', 'Mr.'), ('Miss', 'Ms.'), ('Professor', 'Prof.'), ('Doctor', 'Dr.')], max_length=32)), + ('institute', models.CharField(max_length=150)), + ('phone_number', models.CharField(max_length=10, validators=[django.core.validators.RegexValidator(message="Phone number must be entered in the format: '9999999999'. Up to 10 digits allowed.", regex='^.{10}$')])), + ('position', models.CharField(choices=[('student', 'Student'), ('faculty', 'Faculty'), ('industry_people', 'Industry People')], default='student', help_text='Selected catagoery ID shold be required', max_length=32)), + ('how_did_you_hear_about_us', models.CharField(blank=True, choices=[('Poster', 'Poster'), ('FOSSEE website', 'FOSSEE website'), ('Google', 'Google'), ('Social Media', 'Social Media'), ('From other College', 'From other College')], max_length=255)), + ('is_email_verified', models.BooleanField(default=False)), + ('activation_key', models.CharField(blank=True, max_length=255, null=True)), + ('key_expiry_time', models.DateTimeField(blank=True, null=True)), + ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), + ], + ), + migrations.CreateModel( + name='Comments', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('comment', models.CharField(max_length=700)), + ('proposal', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='website.Proposal')), + ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), + ], + ), + ] diff --git a/website/migrations/__init__.py b/website/migrations/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/website/migrations/__init__.py |