Skip to content

Commit

Permalink
fix: added ordering in user builtin field table (#2025)
Browse files Browse the repository at this point in the history
  • Loading branch information
rolin999 authored Dec 26, 2024
1 parent 9ed8d90 commit 7a4a0bf
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 4.2.16 on 2024-12-26 10:54

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
("tenant", "0006_alter_tenantuseridgenerateconfig_rule"),
]

operations = [
migrations.AlterModelOptions(
name="userbuiltinfield",
options={"ordering": ["id"]},
),
]
3 changes: 3 additions & 0 deletions src/bk-user/bkuser/apps/tenant/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ class UserBuiltinField(TimestampedModel):
default = models.JSONField("默认值", default="")
options = models.JSONField("配置项", default=list)

class Meta:
ordering = ["id"]


class TenantUserCustomField(TimestampedModel):
"""租户用户自定义字段"""
Expand Down

0 comments on commit 7a4a0bf

Please sign in to comment.