Skip to content
This repository has been archived by the owner on Jun 29, 2020. It is now read-only.

Commit

Permalink
ProfileUpdateのテストで落ちてたのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
giginet committed Oct 18, 2014
1 parent 40aa3bb commit 11f8753
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/kawaz/apps/profiles/forms.py
Expand Up @@ -57,7 +57,10 @@ def render_option(self, selected_choices, option_value, option_label):
selected_html = ''
if option_value.isdigit():
service = Service.objects.get(pk=int(option_value))
url = service.icon.url
try:
url = service.icon.url
except:
pass
return format_html('<option value="{0}" icon-url="{1}"{2}>{3}</option>',
option_value,
url,
Expand Down

0 comments on commit 11f8753

Please sign in to comment.