Skip to content

Commit

Permalink
Merge pull request #4058 from gitcoinco/fix/event-bounty
Browse files Browse the repository at this point in the history
Fix required field in admin
  • Loading branch information
SaptakS authored Mar 28, 2019
2 parents 317576e + cd74ef5 commit 3eca6f9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions app/dashboard/migrations/0026_auto_20190328_1314.py
Original file line number Diff line number Diff line change
@@ -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'),
),
]
2 changes: 1 addition & 1 deletion app/dashboard/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3eca6f9

Please sign in to comment.