2
0
jeremystretch 4 жил өмнө
parent
commit
dd848d754f

+ 2 - 0
docs/release-notes/version-3.1.md

@@ -6,6 +6,8 @@
 
 * [#7150](https://github.com/netbox-community/netbox/issues/7150) - Linkify devices on the far side of a rack elevation
 * [#8398](https://github.com/netbox-community/netbox/issues/8398) - Embiggen configuration form fields for banner message content
+* [#8556](https://github.com/netbox-community/netbox/issues/8556) - Add full username column to changelog table
+* [#8620](https://github.com/netbox-community/netbox/issues/8620) - Enable tab completion for `nbshell`
 
 ### Bug Fixes
 

+ 2 - 5
netbox/extras/tables.py

@@ -30,11 +30,8 @@ CONFIGCONTEXT_ACTIONS = """
 """
 
 OBJECTCHANGE_FULL_NAME = """
-{% if record.user.first_name or record.user.last_name %}
-    {{ record.user.first_name }} {{ record.user.last_name }}
-{% else %}
-    {{ record.user|default:record.user_name }}
-{% endif %}
+{% load helpers %}
+{{ record.user.get_full_name|placeholder }}
 """
 
 OBJECTCHANGE_OBJECT = """

+ 4 - 10
netbox/templates/extras/objectchange.html

@@ -36,21 +36,15 @@
                         </td>
                     </tr>
                     <tr>
-                        <th scope="row">Full Name</th>
+                        <th scope="row">User</th>
                         <td>
-                            {% if object.user.first_name or object.user.last_name %}
-                                {{ object.user.first_name }} {{ object.user.last_name }}
+                            {% if object.user.get_full_name %}
+                              {{ object.user.get_full_name }} ({{ object.user_name }})
                             {% else %}
-                                {{ object.user|default:object.user_name }}
+                              {{ object.user_name }}
                             {% endif %}
                         </td>
                     </tr>
-                    <tr>
-                        <th scope="row">Username</th>
-                        <td>
-                            {{ object.user|default:object.user_name }}
-                        </td>
-                    </tr>
                     <tr>
                         <th scope="row">Action</th>
                         <td>