# Path: feedback/models.py
# class Feedback(db.Model):
#     page = db.StringProperty(required=True)
#     message = db.StringProperty(required=True)
#     points = db.IntegerProperty(default=1)
#     ip = db.StringProperty()
#     submitter = db.ReferenceProperty(User)
#     submitted = db.DateTimeProperty(auto_now_add=True)
# 
#     def __unicode__(self):
#         return self.message[:50]


from django.contrib import admin
from feedback.models import Feedback



class FeedbackAdmin(admin.ModelAdmin):
    list_display = ('message', 'page', 'points', 'submitter', 'submitted')
    search_fields = ('message', 'page')



# Path: feedback/models.py
# class Feedback(db.Model):
#     page = db.StringProperty(required=True)
#     message = db.StringProperty(required=True)
#     points = db.IntegerProperty(default=1)
#     ip = db.StringProperty()
#     submitter = db.ReferenceProperty(User)
#     submitted = db.DateTimeProperty(auto_now_add=True)
# 
#     def __unicode__(self):
#         return self.message[:50]


# Path: feedback/admin.py
from django.contrib import admin
from feedback.models import Feedback




class FeedbackAdmin(admin.ModelAdmin):
    list_display = ('message', 'page', 'points', 'submitter', 'submitted')
    search_fields = ('message', 'page')



admin.site.register(Feedback, FeedbackAdmin)