Commits

Diego Búrigo Zacarão committed f7dce8d

bugfix: Fixed commit author if users do not fill the first name (#310)

Comments (0)

Files changed (1)

transifex/settings/60-vcs.conf

 # Username/email template to use for submissions
 VCS_USER_TEMPLATE = (u'{% if user.firstname %}'
     '{{ user.firstname }} {{ user.surname }} <{{ user.user.email }}>'
-    '{% else %}{{ user.username }} <{{ user.email }}>{% endif %}')
+    '{% else %}'
+      '{% if user.user %}'
+        '{{ user.user }} <{{ user.user.email }}>'
+      '{% else %}'
+        '{{ user.username }} <{{ user.email }}>'
+      '{% endif %}'
+    '{% endif %}'
+    )