added search and filter to admin dash
This commit is contained in:
parent
3f44260e73
commit
578ff04956
|
@ -2,4 +2,11 @@ from django.contrib import admin
|
||||||
|
|
||||||
from .models import InvitedGuest
|
from .models import InvitedGuest
|
||||||
|
|
||||||
admin.site.register(InvitedGuest)
|
class InvitedGuestAdmin(admin.ModelAdmin):
|
||||||
|
fields = ['name', 'rsvpCode', 'attending']
|
||||||
|
list_display = ('name', 'rsvpCode', 'attending')
|
||||||
|
search_fields = ['name']
|
||||||
|
list_filter = ['attending']
|
||||||
|
|
||||||
|
|
||||||
|
admin.site.register(InvitedGuest, InvitedGuestAdmin)
|
Loading…
Reference in New Issue