summaryrefslogtreecommitdiff
path: root/website
diff options
context:
space:
mode:
authorprashantsinalkar2018-08-23 10:31:42 +0530
committerprashantsinalkar2018-08-23 10:31:42 +0530
commit68d88db1e1b9cf5f042e5695eda59a004e78c92d (patch)
tree4414c96ca80368aafc2d3bbd8b97c45813aee5be /website
parent1684b6aad3918228fdcdee2886c29b74d5ef2881 (diff)
downloadSciPy2018-68d88db1e1b9cf5f042e5695eda59a004e78c92d.tar.gz
SciPy2018-68d88db1e1b9cf5f042e5695eda59a004e78c92d.tar.bz2
SciPy2018-68d88db1e1b9cf5f042e5695eda59a004e78c92d.zip
added open to share field
Diffstat (limited to 'website')
-rw-r--r--website/migrations/0002_proposal_open_to_share.py18
-rw-r--r--website/models.py1
2 files changed, 19 insertions, 0 deletions
diff --git a/website/migrations/0002_proposal_open_to_share.py b/website/migrations/0002_proposal_open_to_share.py
new file mode 100644
index 0000000..129b361
--- /dev/null
+++ b/website/migrations/0002_proposal_open_to_share.py
@@ -0,0 +1,18 @@
+# Generated by Django 2.1 on 2018-08-22 14:59
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('website', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='proposal',
+ name='open_to_share',
+ field=models.CharField(default=1, max_length=2),
+ ),
+ ]
diff --git a/website/models.py b/website/models.py
index 352758c..7fa0bd6 100644
--- a/website/models.py
+++ b/website/models.py
@@ -26,6 +26,7 @@ class Proposal(models.Model):
status = models.CharField(max_length = 100, default='Pending', editable=True)
proposal_type = models.CharField(max_length = 100)
tags = models.CharField(max_length = 250)
+ open_to_share = models.CharField(max_length = 2, default=1)
class Ratings(models.Model):
proposal = models.ForeignKey(Proposal,on_delete=models.CASCADE,)