Skip to content

Commit

Permalink
Much fail. #174
Browse files Browse the repository at this point in the history
  • Loading branch information
quantum5 committed May 7, 2015
1 parent 6dd3fd9 commit 9c1208f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion judge/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ class SolutionAdmin(reversion.VersionAdmin):
form = SolutionForm

def problem_link(self, obj):
if obj is None:
if obj.problem is None:
return 'N/A'
return format_html('<a href="{}">{}</a>', reverse('admin:judge_problem_change', args=[obj.problem_id]),
obj.problem.name)
Expand Down

0 comments on commit 9c1208f

Please # to comment.