diff --git a/src/data_hub/lore/forms.py b/src/data_hub/lore/forms.py index 70044eaa..d5e86643 100644 --- a/src/data_hub/lore/forms.py +++ b/src/data_hub/lore/forms.py @@ -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 diff --git a/src/data_hub/tnris_org/migrations/0025_tnristraining_training_link.py b/src/data_hub/tnris_org/migrations/0025_tnristraining_training_link.py new file mode 100644 index 00000000..9f2966fd --- /dev/null +++ b/src/data_hub/tnris_org/migrations/0025_tnristraining_training_link.py @@ -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'), + ), + ] diff --git a/src/data_hub/tnris_org/migrations/0026_auto_20200504_1301.py b/src/data_hub/tnris_org/migrations/0026_auto_20200504_1301.py new file mode 100644 index 00000000..1de3a4ad --- /dev/null +++ b/src/data_hub/tnris_org/migrations/0026_auto_20200504_1301.py @@ -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, + ), + ] diff --git a/src/data_hub/tnris_org/models.py b/src/data_hub/tnris_org/models.py index de33ce9d..8a0b506f 100644 --- a/src/data_hub/tnris_org/models.py +++ b/src/data_hub/tnris_org/models.py @@ -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 diff --git a/src/data_hub/tnris_org/serializers.py b/src/data_hub/tnris_org/serializers.py index 9252a0c5..0a803e4e 100644 --- a/src/data_hub/tnris_org/serializers.py +++ b/src/data_hub/tnris_org/serializers.py @@ -23,6 +23,7 @@ class Meta: 'cost', 'registration_open', 'description', + 'training_link', 'created', 'last_modified', 'public',)