mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-18 13:06:30 -06:00
Fixes #1111: Correct database ordering of SessionKey model
This commit is contained in:
parent
f73693206f
commit
d17efce4f5
@ -1,5 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.10.6 on 2017-03-14 17:19
|
||||
# Generated by Django 1.11 on 2017-04-27 15:26
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.conf import settings
|
||||
@ -23,7 +23,7 @@ class Migration(migrations.Migration):
|
||||
('created', models.DateTimeField(auto_now_add=True)),
|
||||
],
|
||||
options={
|
||||
'ordering': ['user__username'],
|
||||
'ordering': ['userkey__user__username'],
|
||||
},
|
||||
),
|
||||
migrations.AlterField(
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user