from django.contrib import admin

from feedback.models import Feedback


admin.site.register(Feedback)

@@ -1,12 +1,37 @@
+from django import forms%0A
 from django.
@@ -91,16 +91,902 @@
 dback%0A%0A%0A
+class FeedbackAdminForm(forms.ModelForm):%0A    class Meta:%0A        model = Feedback%0A        fields = '__all__'%0A        widgets = %7B%0A            'comments': forms.Textarea(attrs=%7B'cols': 80, 'rows': 5%7D),%0A            'user_agent': forms.Textarea(attrs=%7B'cols': 80, 'rows': 5%7D),%0A            'redux_state': forms.Textarea(attrs=%7B'cols': 80, 'rows': 20%7D),%0A        %7D%0A%0A%0Aclass FeedbackAdmin(admin.ModelAdmin):%0A    model = Feedback%0A    form = FeedbackAdminForm%0A    list_display = (%0A        'player',%0A        'get_type',%0A        'created',%0A        'comments',%0A    )%0A    list_filter = (%0A        'type',%0A        'created',%0A    )%0A    search_fields = (%0A        'comments',%0A        'user_agent',%0A        'redux_state',%0A        'player__username',%0A    )%0A%0A    def get_type(self, obj):%0A        return obj.get_type_display()%0A    get_type.short_description = 'Type'%0A    get_type.admin_order_field = 'type'%0A%0A%0A
 admin.si
@@ -1005,10 +1005,25 @@
 Feedback
+, FeedbackAdmin
 )%0A

Add admin for feedback