diff options
author | Sashi20 | 2019-09-20 10:13:51 +0530 |
---|---|---|
committer | GitHub | 2019-09-20 10:13:51 +0530 |
commit | 607bbc92996e7cba9820718f1176340d04ebb02a (patch) | |
tree | a786d6a2dcb6a96769eb5607efa884f29f06d325 /website | |
parent | 8d2d50c8061f97e52b1d1c72084afb6ffa354211 (diff) | |
parent | 9925fde5d278278312a2be4458dc4cc675a3b88b (diff) | |
download | SciPy2019-607bbc92996e7cba9820718f1176340d04ebb02a.tar.gz SciPy2019-607bbc92996e7cba9820718f1176340d04ebb02a.tar.bz2 SciPy2019-607bbc92996e7cba9820718f1176340d04ebb02a.zip |
Merge pull request #21 from Sashi20/development
Add field to enable/disable registration details model
Diffstat (limited to 'website')
-rw-r--r-- | website/migrations/0003_auto_20190919_1231.py | 23 | ||||
-rw-r--r-- | website/models.py | 3 |
2 files changed, 25 insertions, 1 deletions
diff --git a/website/migrations/0003_auto_20190919_1231.py b/website/migrations/0003_auto_20190919_1231.py new file mode 100644 index 0000000..47eeeb2 --- /dev/null +++ b/website/migrations/0003_auto_20190919_1231.py @@ -0,0 +1,23 @@ +# Generated by Django 2.2.4 on 2019-09-19 12:31 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('website', '0002_auto_20190917_0525'), + ] + + operations = [ + migrations.AddField( + model_name='registrationdetail', + name='display_registration_type', + field=models.BooleanField(default=True), + ), + migrations.AlterField( + model_name='registrationdetail', + name='registration_type', + field=models.TextField(blank=True, max_length=500, null=True), + ), + ] diff --git a/website/models.py b/website/models.py index dd6f08d..a0f9015 100644 --- a/website/models.py +++ b/website/models.py @@ -156,8 +156,9 @@ class CFP(models.Model): class RegistrationDetail(models.Model): - registration_type = models.CharField(max_length=50, blank= True, null= True) + registration_type = models.TextField(max_length=500, blank= True, null= True) start_date = models.DateTimeField(blank=True, null = True) end_date = models.DateTimeField(blank=True, null=True) registration_ticket = models.CharField(max_length=100, blank=True, null=True) registration_description = models.TextField(max_length=500, blank= True, null= True) + display_registration_type = models.BooleanField(default = True) |