Skip to content

Commit

Permalink
fix project2grants
Browse files Browse the repository at this point in the history
  • Loading branch information
octavioamu committed Oct 14, 2020
1 parent 4d4e4d7 commit dee7f32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/dashboard/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,9 +463,9 @@ class HackathonRegistrationAdmin(admin.ModelAdmin):


class HackathonProjectAdmin(admin.ModelAdmin):
list_display = ['pk', 'img', 'name', 'bounty', 'hackathon_link', 'grant_obj', 'usernames', 'status', 'sponsor']
raw_id_fields = ['profiles', 'bounty', 'hackathon']
search_fields = ['name', 'summary', 'status']
list_display = ['pk', 'img', 'name', 'bounty', 'hackathon_link', 'usernames', 'status', 'sponsor']
raw_id_fields = ['profiles', 'bounty', 'hackathon', 'grant_obj']
search_fields = ['name', 'summary', 'status', 'grant_obj']

def hackathon_link(self, instance):
"""Returns a formatted HTML <a> node.
Expand Down
2 changes: 1 addition & 1 deletion app/grants/templates/grants/new.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ <h5 class="mt-4">Funding Information</h5>
</div>

<div>
<input type="hidden" id="project_pk" name="project_pk" value="{{project_data.project.id}}" />
<input type="hidden" id="project_pk" name="project_pk" value="{{project_data.id}}" />
<input type="hidden" id="transaction_hash" name="transaction_hash" />
<input type="hidden" id="contract_address" name="contract_address" />
<input type="hidden" id="contract_owner_address" name="contract_owner_address">
Expand Down

0 comments on commit dee7f32

Please sign in to comment.