Skip to content

Commit

Permalink
Create a flag on Sponsors for Job Fair Participation
Browse files Browse the repository at this point in the history
Issue #638 and #643 both relate to determining if a Sponsor is participating in the Job Fair or not!

This adds a Boolean that can annotate Job Fair Participation for each sponsor individually and exposes that in the the Django Admin.

PyCon staff can now explicitly set or unset Job Fair Participation so that we can auto generate the list of Job Fair Participants for #643 and hopefully expose the boolean for templates to contain different content for Sponsors who are and are not participating in the job fair.
  • Loading branch information
ewdurbin committed Mar 13, 2018
1 parent 6d673ed commit 00afd54
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pycon/sponsorship/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ class SponsorAdmin(admin.ModelAdmin):
"fields": ["wants_table", "wants_booth", "small_entity_discount"],
}),
("Sponsor Data", {
"fields": ["booth_number", "job_fair_table_number",
"registration_promo_codes", "expo_promo_codes"],
"fields": ["booth_number", "job_fair_participant",
"job_fair_table_number", "registration_promo_codes",
"expo_promo_codes"],
}),
("Contact Information", {
"fields": ["contact_name", "contact_emails", "contact_phone",
Expand Down
19 changes: 19 additions & 0 deletions pycon/sponsorship/migrations/0018_sponsor_job_fair_participant.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('sponsorship', '0017_sponsorship_form_fields'),
]

operations = [
migrations.AddField(
model_name='sponsor',
name='job_fair_participant',
field=models.BooleanField(default=False),
),
]
1 change: 1 addition & 0 deletions pycon/sponsorship/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ class Sponsor(models.Model):
registration_promo_codes = models.CharField(max_length=200, blank=True, default='')
expo_promo_codes = models.CharField(max_length=200, blank=True, default='')
booth_number = models.IntegerField(blank=True, null=True, default=None)
job_fair_participant = models.BooleanField(default=False)
job_fair_table_number = models.IntegerField(blank=True, null=True, default=None)

web_description = models.TextField(
Expand Down

0 comments on commit 00afd54

Please sign in to comment.