Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd04c7a2

Browse files
committed
use raw_id_fields for users.Membrerships in admin
1 parent8f113cf commitd04c7a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎users/admin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class MembershipAdmin(admin.ModelAdmin):
6060
date_hierarchy='created'
6161
search_fields= ['creator__username']
6262
list_filter= ['membership_type']
63+
raw_id_fields= ['creator']
6364

6465

6566
classApiKeyAdmin(admin.ModelAdmin):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp