File tree Expand file tree Collapse file tree 4 files changed +11
-0
lines changed Expand file tree Collapse file tree 4 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ Authors
68
68
- Adnan Umer (@uadnan)
69
69
- Jonathan Zvesper (@zvesp)
70
70
- Matheus Cansian (@mscansian)
71
+ - Jim Gomez
71
72
72
73
Background
73
74
==========
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Unreleased
5
5
-----------
6
6
- Add `'+' ` as the `history_type ` for each instance in `bulk_history_create ` (gh-449)
7
7
- Add support for `history_change_reason ` for each instance in `bulk_history_create ` (gh-449)
8
+ - Add `history_change_reason ` in the history list view under the `Change reason ` display name
8
9
9
10
2.5.0 (2018-10-18)
10
11
------------------
Original file line number Diff line number Diff line change 13
13
< th scope ="col "> {% trans 'Date/time' %}</ th >
14
14
< th scope ="col "> {% trans 'Comment' %}</ th >
15
15
< th scope ="col "> {% trans 'Changed by' %}</ th >
16
+ < th scope ="col "> {% trans 'Change reason' %}</ th >
16
17
</ tr >
17
18
</ thead >
18
19
< tbody >
36
37
{% trans "None" %}
37
38
{% endif %}
38
39
</ td >
40
+ < td >
41
+ {{ action.history_change_reason }}
42
+ </ td >
39
43
</ tr >
40
44
{% endfor %}
41
45
</ tbody >
Original file line number Diff line number Diff line change @@ -71,12 +71,17 @@ def test_history_list(self):
71
71
self .assertEqual (model_name , 'customuser' )
72
72
self .login ()
73
73
poll = Poll (question = "why?" , pub_date = today )
74
+ poll .changeReason = 'A random test reason'
74
75
poll ._history_user = self .user
75
76
poll .save ()
77
+
76
78
response = self .app .get (get_history_url (poll ))
77
79
self .assertIn (get_history_url (poll , 0 ), response .unicode_normal_body )
78
80
self .assertIn ("Poll object" , response .unicode_normal_body )
79
81
self .assertIn ("Created" , response .unicode_normal_body )
82
+ self .assertIn ("Changed by" , response .unicode_normal_body )
83
+ self .assertIn ("Change reason" , response .unicode_normal_body )
84
+ self .assertIn ("A random test reason" , response .unicode_normal_body )
80
85
self .assertIn (self .user .username , response .unicode_normal_body )
81
86
82
87
def test_history_list_custom_fields (self ):
You can’t perform that action at this time.
0 commit comments