You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
257 B

  1. from django.contrib import admin
  2. from .models import Member
  3. class MemberAdmin(admin.ModelAdmin):
  4. list_display = ('user', 'role', 'project', )
  5. ordering = ('user',)
  6. search_fields = ('user__username',)
  7. admin.site.register(Member, MemberAdmin)