Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

admin added

  • Loading branch information...
commit cf7517f6c690d87d3c2b972dc10d7276824a9fd4 1 parent 39b6e4b
Amit Kumat Pathak authored
Showing with 11 additions and 1 deletion.
  1. +10 −0 admin.py
  2. +1 −1  models.py
10 admin.py
View
@@ -0,0 +1,10 @@
+from django.contrib import admin
+from feedback.models import FeedBack
+
+class AdminFeddbackClass(admin.ModelAdmin):
+ list_display = ('feedback_name', 'feedback_type', 'post_date')
+ list_filter = ('feedback_type',)
+ readonly_fields = ('feedback_name', 'feedback_email', 'feedback_contact_number', 'feedback_type',
+ 'post_date', 'feedback')
+
+admin.site.register(FeedBack, AdminFeddbackClass)
2  models.py
View
@@ -19,4 +19,4 @@ class Meta:
ordering = ('-post_date',)
def __unicode__(self):
- return self.name + ' - ' + self.type
+ return self.feedback_name + ' - ' + self.feedback_type
Please sign in to comment.
Something went wrong with that request. Please try again.