diff options
author | prashantsinalkar | 2018-08-23 17:25:06 +0530 |
---|---|---|
committer | prashantsinalkar | 2018-08-23 17:25:06 +0530 |
commit | 07c0150abaa36086cab2a0047125d7e0219f15b0 (patch) | |
tree | 840a015b9bb62c4b7715212453f1235411f5efb1 /website/migrations | |
parent | 756d9e437cc0e573558046d7ad2b1e629487865d (diff) | |
download | SciPy2018-07c0150abaa36086cab2a0047125d7e0219f15b0.tar.gz SciPy2018-07c0150abaa36086cab2a0047125d7e0219f15b0.tar.bz2 SciPy2018-07c0150abaa36086cab2a0047125d7e0219f15b0.zip |
updated code according to pep8
Diffstat (limited to 'website/migrations')
-rw-r--r-- | website/migrations/0001_initial.py | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/website/migrations/0001_initial.py b/website/migrations/0001_initial.py index 5ffde4c..09389c6 100644 --- a/website/migrations/0001_initial.py +++ b/website/migrations/0001_initial.py @@ -18,14 +18,16 @@ class Migration(migrations.Migration): migrations.CreateModel( name='Comments', fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('id', models.AutoField(auto_created=True, + primary_key=True, serialize=False, verbose_name='ID')), ('comment', models.CharField(max_length=700)), ], ), migrations.CreateModel( name='Proposal', fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('id', models.AutoField(auto_created=True, + primary_key=True, serialize=False, verbose_name='ID')), ('about_me', models.TextField(max_length=500)), ('email', models.CharField(max_length=128)), ('phone', models.CharField(max_length=20)), @@ -33,32 +35,39 @@ class Migration(migrations.Migration): ('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)), + ('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)), - ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), + ('user', models.ForeignKey( + on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Ratings', fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('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)), + ('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.AddField( model_name='comments', name='proposal', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='website.Proposal'), + field=models.ForeignKey( + on_delete=django.db.models.deletion.CASCADE, to='website.Proposal'), ), migrations.AddField( model_name='comments', name='user', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), + field=models.ForeignKey( + on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), ] |