from .models import Response
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin

class ResponseInline(admin.StackedInline):
    model = Response
    fieldsets = (
        ('User Details',{'fields':('plan','username','email')}),
        ('Used Features',
         {'fields:':
             ('logging','technical',
              'trend','planning','racing','coaching','export','video','interval')}),
        ('Paid Plan Questions',
         {'fields':('capabilities','fallshort','considered','features')})
    )

class ResponseAdmin(admin.ModelAdmin):
    #inlines = (ResponseInline,)
    list_display = ('plan','id','date','capabilities')

admin.site.register(Response,ResponseAdmin)
