We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb3b74e commit 3063535Copy full SHA for 3063535
contact/admin.py
@@ -1,3 +1,16 @@
1
from django.contrib import admin
2
3
-# Register your models here.
+from contact.models import Contact
4
+
5
6
+class ContactAdmin(admin.ModelAdmin):
7
+ list_display = ['email', 'subject', 'active', 'created']
8
+ list_display_links = ['email']
9
+ list_filter = ['active', 'created']
10
+ search_fields = ['subject']
11
+ list_editable = ['active']
12
+ list_per_page = 10
13
+ ordering = ('-id',)
14
15
16
+admin.site.register(Contact, ContactAdmin)
0 commit comments