mirror of
https://github.com/Findus23/RPGnotes.git
synced 2024-09-19 15:43:45 +02:00
order users
This commit is contained in:
parent
2c9b31b127
commit
66ae8245f9
2 changed files with 20 additions and 0 deletions
17
users/migrations/0003_alter_tenantuser_options.py
Normal file
17
users/migrations/0003_alter_tenantuser_options.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
# Generated by Django 3.2.7 on 2021-09-29 18:55
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('users', '0002_alter_tenantuser_name'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='tenantuser',
|
||||
options={'ordering': ['name']},
|
||||
),
|
||||
]
|
|
@ -18,6 +18,9 @@ class TenantUser(UserProfile):
|
|||
db_index=True,
|
||||
)
|
||||
|
||||
class Meta:
|
||||
ordering = ["name"]
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
|
|
Loading…
Reference in a new issue