2022-02-03 13:45:58 -05:00
|
|
|
from django.contrib import admin
|
|
|
|
|
|
|
|
from .models import Member
|
|
|
|
|
|
|
|
|
|
|
|
@admin.register(Member)
|
|
|
|
class MemberAdmin(admin.ModelAdmin):
|
|
|
|
readonly_fields = [field.name for field in Member._meta.get_fields() if field.concrete]
|
2022-02-03 16:36:37 -05:00
|
|
|
search_fields = ['account_name']
|
2022-02-03 13:45:58 -05:00
|
|
|
|
|
|
|
def has_add_permission(self, request, obj=None):
|
|
|
|
return False
|
|
|
|
|
|
|
|
def has_delete_permission(self, request, obj=None):
|
|
|
|
return False
|