diff --git a/app/dashboard/migrations/0026_auto_20190328_1314.py b/app/dashboard/migrations/0026_auto_20190328_1314.py new file mode 100644 index 00000000000..c249d7e0ee1 --- /dev/null +++ b/app/dashboard/migrations/0026_auto_20190328_1314.py @@ -0,0 +1,19 @@ +# Generated by Django 2.1.7 on 2019-03-28 13:14 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('dashboard', '0025_merge_20190327_1106'), + ] + + operations = [ + migrations.AlterField( + model_name='bounty', + name='event', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='bounties', to='dashboard.HackathonEvent'), + ), + ] diff --git a/app/dashboard/models.py b/app/dashboard/models.py index 0eee9fd2ced..1e02e7b04b0 100644 --- a/app/dashboard/models.py +++ b/app/dashboard/models.py @@ -301,7 +301,7 @@ class Bounty(SuperModel): default=False, help_text=_('Admin override to mark as remarketing ready') ) attached_job_description = models.URLField(blank=True, null=True) - event = models.ForeignKey('dashboard.HackathonEvent', related_name='bounties', null=True, on_delete=models.SET_NULL) + event = models.ForeignKey('dashboard.HackathonEvent', related_name='bounties', null=True, on_delete=models.SET_NULL, blank=True) # Bounty QuerySet Manager objects = BountyQuerySet.as_manager()