1
0
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:
Jeremy Stretch
2017-04-27 11:27:34 -04:00
parent f73693206f
commit d17efce4f5
2 changed files with 3 additions and 3 deletions

View File

@@ -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