mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #1111: Correct database ordering of SessionKey model
This commit is contained in:
@@ -195,7 +195,7 @@ class SessionKey(models.Model):
|
||||
key = None
|
||||
|
||||
class Meta:
|
||||
ordering = ['user__username']
|
||||
ordering = ['userkey__user__username']
|
||||
|
||||
def __str__(self):
|
||||
return self.userkey.user.username
|
||||
|
||||
Reference in New Issue
Block a user