-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from TNRIS/feature/csv-training
Feature/csv training
- Loading branch information
Showing
15 changed files
with
514 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
-- this sql needs to be run to create the rest endpoint properly formatted date/time for training courses | ||
|
||
select title, start_date_time, end_date_time, | ||
to_char(start_date_time at time zone 'America/Chicago', 'DD-MON-YYYY HH12:MI'), | ||
to_char(end_date_time at time zone 'America/Chicago', 'DD-MON-YYYY HH12:MI' ) | ||
from tnris_training | ||
|
||
-- returns two new columns. one column example: 'Monday October 21 08:00'. second column example ' - 12:00 PM'. | ||
-- mash these two columsn together to get proper formatted date/time for tnris.org front end | ||
-- final example format: 'Monday October 21 08:00 - 12:00 PM' | ||
select title, start_date_time, end_date_time, | ||
to_char(start_date_time at time zone 'America/Chicago', 'DayMonthDD HH24:MI'), | ||
to_char(end_date_time at time zone 'America/Chicago', '- HH24:MI PM' ) | ||
from tnris_forum_training |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
src/data_hub/tnris_org/migrations/0004_tnrisforumtraining_tnristraining.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Generated by Django 2.0.13 on 2019-07-16 19:39 | ||
|
||
from django.db import migrations, models | ||
import uuid | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('tnris_org', '0003_auto_20190711_1119'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='TnrisForumTraining', | ||
fields=[ | ||
('training_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, verbose_name='Training ID')), | ||
('training_day', models.PositiveSmallIntegerField(verbose_name='Forum Training Day')), | ||
('title', models.CharField(max_length=255, verbose_name='Training Title')), | ||
('start_date_time', models.DateTimeField(verbose_name='Training Start Date & Time')), | ||
('end_date_time', models.DateTimeField(verbose_name='Training End Date & Time')), | ||
('instructor', models.CharField(max_length=100, verbose_name='Training Instructor')), | ||
('cost', models.DecimalField(decimal_places=2, max_digits=6, verbose_name='Training Cost')), | ||
('registration_open', models.BooleanField(default=False, verbose_name='Registration Open')), | ||
('location', models.CharField(max_length=255, verbose_name='Training Location')), | ||
('room', models.CharField(max_length=255, verbose_name='Training Room')), | ||
('max_students', models.PositiveSmallIntegerField(verbose_name='Max Student Amount')), | ||
('instructor_bio', models.TextField(verbose_name='Training Instructor Bio')), | ||
('description', models.TextField(verbose_name='Training Description')), | ||
('teaser', models.TextField(verbose_name='Training Teaser')), | ||
('created', models.DateTimeField(auto_now_add=True, verbose_name='Created')), | ||
('last_modified', models.DateTimeField(auto_now=True, verbose_name='Last Modified')), | ||
], | ||
options={ | ||
'verbose_name': 'Tnris Forum Training', | ||
'verbose_name_plural': 'Tnris Forum Trainings', | ||
'db_table': 'tnris_forum_training', | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='TnrisTraining', | ||
fields=[ | ||
('training_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, verbose_name='Training ID')), | ||
('start_date_time', models.DateTimeField(verbose_name='Training Start Date & Time')), | ||
('end_date_time', models.DateTimeField(verbose_name='Training End Date & Time')), | ||
('title', models.CharField(max_length=255, verbose_name='Training Title')), | ||
('instructor', models.CharField(max_length=100, verbose_name='Training Instructor')), | ||
('cost', models.DecimalField(decimal_places=2, max_digits=6, verbose_name='Training Cost')), | ||
('registration_open', models.BooleanField(default=False, verbose_name='Registration Open')), | ||
('instructor_bio', models.TextField(verbose_name='Training Instructor Bio')), | ||
('description', models.TextField(verbose_name='Training Description')), | ||
('created', models.DateTimeField(auto_now_add=True, verbose_name='Created')), | ||
('last_modified', models.DateTimeField(auto_now=True, verbose_name='Last Modified')), | ||
], | ||
options={ | ||
'verbose_name': 'Tnris Training', | ||
'verbose_name_plural': 'Tnris Trainings', | ||
'db_table': 'tnris_training', | ||
}, | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
src/data_hub/tnris_org/migrations/0005_auto_20190716_1531.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.0.13 on 2019-07-16 20:31 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('tnris_org', '0004_tnrisforumtraining_tnristraining'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='tnrisforumtraining', | ||
name='instructor_bio', | ||
field=models.TextField(blank=True, verbose_name='Training Instructor Bio'), | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
src/data_hub/tnris_org/migrations/0006_auto_20190716_1532.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.0.13 on 2019-07-16 20:32 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('tnris_org', '0005_auto_20190716_1531'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='tnristraining', | ||
name='instructor_bio', | ||
field=models.TextField(blank=True, verbose_name='Training Instructor Bio'), | ||
), | ||
] |
33 changes: 33 additions & 0 deletions
33
src/data_hub/tnris_org/migrations/0007_auto_20190716_1543.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Generated by Django 2.0.13 on 2019-07-16 20:43 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('tnris_org', '0006_auto_20190716_1532'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='tnrisforumtraining', | ||
name='public', | ||
field=models.BooleanField(default=False, verbose_name='Public'), | ||
), | ||
migrations.AddField( | ||
model_name='tnristraining', | ||
name='public', | ||
field=models.BooleanField(default=False, verbose_name='Public'), | ||
), | ||
migrations.AlterField( | ||
model_name='tnrisforumtraining', | ||
name='max_students', | ||
field=models.PositiveSmallIntegerField(blank=True, verbose_name='Max Student Amount'), | ||
), | ||
migrations.AlterField( | ||
model_name='tnrisforumtraining', | ||
name='teaser', | ||
field=models.TextField(blank=True, verbose_name='Training Teaser'), | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
src/data_hub/tnris_org/migrations/0008_auto_20190717_0733.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.0.13 on 2019-07-17 12:33 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('tnris_org', '0007_auto_20190716_1543'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='tnrisforumtraining', | ||
name='room', | ||
field=models.CharField(blank=True, max_length=255, verbose_name='Training Room'), | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
src/data_hub/tnris_org/migrations/0009_auto_20190717_1453.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.0.13 on 2019-07-17 19:53 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('tnris_org', '0008_auto_20190717_0733'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='tnrisforumtraining', | ||
name='max_students', | ||
field=models.PositiveSmallIntegerField(blank=True, null=True, verbose_name='Max Student Amount'), | ||
), | ||
] |
Oops, something went wrong.