Skip to content

Commit

Permalink
Fixes bug 1269240 - Display pretty platform version in report/index. (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
adngdb authored and Peter Bengtsson committed May 3, 2016
1 parent adbf80e commit 6772ef6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ <h2>{{ report.product }} {{ report.version }} Crash Report [@ {{ report.signatur
</tr>
<tr>
<th scope="row">OS</th>
<td>{{ report.os_name }}</td>
<td>{{ report.os_pretty_version or report.os_name }}</td>
</tr>
<tr>
<th scope="row">OS Version</th>
Expand Down
4 changes: 4 additions & 0 deletions webapp-django/crashstats/crashstats/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
"addons_checked": null,
"product": "WaterWolf",
"os_name": "Mac OS X",
"os_pretty_version": "OS X 10.11",
"last_crash": 371342,
"date_processed": "2012-06-11T06:08:44",
"cpu_name": "amd64",
Expand Down Expand Up @@ -2420,6 +2421,9 @@ def mocked_get(url, params, **options):
# should be a link there to crash analysis
ok_(settings.CRASH_ANALYSIS_URL in response.content)

# The pretty platform version should appear.
ok_('OS X 10.11' in response.content)

# the email address will appear if we log in
user = self._login()
group = self._create_group_with_permission('view_pii')
Expand Down

0 comments on commit 6772ef6

Please sign in to comment.