Remove "Description for Community Event" from form and deprecrate for admins.
authorJonathan S. Katz <jonathan.katz@excoventures.com>
Sun, 4 Nov 2018 15:47:54 +0000 (10:47 -0500)
committerJonathan S. Katz <jonathan.katz@excoventures.com>
Mon, 5 Nov 2018 15:33:41 +0000 (10:33 -0500)
This was used primarily to collect information about potential community
events in the beginning of the process. Now that we have about a years'
worth of data, we don't need this form anymore, and can start to sunset
it out.

pgweb/events/forms.py
pgweb/events/migrations/0002_event_badged.py
pgweb/events/models.py

index b0028b9a0b3445895769ef5826c983860d1b19c0..9dfce0c8311f081e68219fa92cf16c3eee424239 100644 (file)
@@ -11,11 +11,6 @@ class EventForm(forms.ModelForm):
                        'invert': True,
                        'fields': ['city', 'state', 'country',]
                },
-               {
-                       'name': 'badged',
-                       'invert': False,
-                       'fields': ['description_for_badged',]
-               },
        ]
        def __init__(self, *args, **kwargs):
                super(EventForm, self).__init__(*args, **kwargs)
@@ -51,4 +46,4 @@ class EventForm(forms.ModelForm):
 
        class Meta:
                model = Event
-               exclude = ('submitter', 'approved', )
+               exclude = ('submitter', 'approved', 'description_for_badged')
index 8f0c79e54644fcfc7d2efd33ea3ea80d24ae541e..e10e720a859b8687fad7c4bf51b7e483ecd99b00 100644 (file)
@@ -19,6 +19,6 @@ class Migration(migrations.Migration):
         migrations.AddField(
             model_name='event',
             name='description_for_badged',
-            field=models.TextField(help_text=b'Please describe how this is a community recognized event following the <a href="/community/recognition/#conferences" target="_blank">community event guidelines</a>. Please be as detailed as possible.', null=True, blank=True, verbose_name=b'Description for community event'),
+            field=models.TextField(help_text=b'DEPRECRATED: This was used in the beginning of community events to collect additional information.', null=True, blank=True, verbose_name=b'Description for community event'),
         ),
     ]
index 45add27273a6e3c723fde162e71ef6a111dff625..02a3714653d3074ad2176d2ce7575037d0c1bea1 100644 (file)
@@ -15,7 +15,7 @@ class Event(models.Model):
 
        training = models.BooleanField(null=False, blank=False, default=False)
        badged = models.BooleanField(null=False, blank=False, default=False, verbose_name='Community event', help_text='Choose "Community event" if this is a community recognized event following the <a href="/community/recognition/#conferences" target="_blank">community event guidelines</a>.')
-       description_for_badged = models.TextField(blank=True, null=True, verbose_name='Description for community event', help_text='Please describe how this is a community recognized event following the <a href="/community/recognition/#conferences" target="_blank">community event guidelines</a>. Please be as detailed as possible.')
+       description_for_badged = models.TextField(blank=True, null=True, verbose_name='Description for community event', help_text='DEPRECRATED: This was used in the beginning of community events to collect additional information.')
        startdate = models.DateField(null=False, blank=False, verbose_name="Start date")
        enddate = models.DateField(null=False, blank=False, verbose_name="End date")