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

Changelog for #8894, #8998, #9122; PEP8 fix

This commit is contained in:
jeremystretch
2022-05-04 14:19:09 -04:00
parent c2fe2ba56f
commit da1aabdfc1
2 changed files with 4 additions and 1 deletions

View File

@@ -44,7 +44,7 @@ class UserSerializer(ValidatedModelSerializer):
user.save()
return user
def get_display(self, obj):
if full_name := obj.get_full_name():
return f"{obj.username} ({full_name})"