Skip to content

Commit

Permalink
Merge pull request #83 from TNRIS/feature/education-links
Browse files Browse the repository at this point in the history
added training_link field to tnris.org training model
  • Loading branch information
JasonKleinert authored May 4, 2020
2 parents 962c8b2 + 62e9366 commit b67d83b
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/data_hub/lore/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from django.db.utils import ProgrammingError

from .models import Collection, County, CountyRelate, Product, Image, ScannedPhotoIndexLink
from lcd.forms import PictureWidget

import boto3, uuid

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 2.0.13 on 2020-05-04 17:53

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('tnris_org', '0024_tnrisdocument_sgm_note'),
]

operations = [
migrations.AddField(
model_name='tnristraining',
name='training_link',
field=models.URLField(blank=True, max_length=255, null=True, verbose_name='Training Course Registration Link'),
),
]
19 changes: 19 additions & 0 deletions src/data_hub/tnris_org/migrations/0026_auto_20200504_1301.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 2.0.13 on 2020-05-04 18:01

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('tnris_org', '0025_tnristraining_training_link'),
]

operations = [
migrations.AlterField(
model_name='tnristraining',
name='training_link',
field=models.URLField(default='https://events.eply.com/TNRIS2020', max_length=255, verbose_name='Training Course Registration Link'),
preserve_default=False,
),
]
5 changes: 5 additions & 0 deletions src/data_hub/tnris_org/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,11 @@ class Meta:
description = models.TextField(
'Training Description'
)
training_link = models.URLField(
'Training Course Registration Link',
max_length=255,
null=False
)
created = models.DateTimeField(
'Created',
auto_now_add=True
Expand Down
1 change: 1 addition & 0 deletions src/data_hub/tnris_org/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class Meta:
'cost',
'registration_open',
'description',
'training_link',
'created',
'last_modified',
'public',)
Expand Down

0 comments on commit b67d83b

Please sign in to comment.