1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixed Unicode support in forms

This commit is contained in:
Jeremy Stretch
2016-07-21 10:47:38 -04:00
parent 9a9e3c1479
commit 8ee083f7c1
4 changed files with 24 additions and 24 deletions

View File

@@ -103,7 +103,7 @@ class SecretBulkDeleteForm(ConfirmationForm):
def secret_role_choices():
role_choices = SecretRole.objects.annotate(secret_count=Count('secrets'))
return [(r.slug, '{} ({})'.format(r.name, r.secret_count)) for r in role_choices]
return [(r.slug, u'{} ({})'.format(r.name, r.secret_count)) for r in role_choices]
class SecretFilterForm(forms.Form, BootstrapMixin):