from django.contrib import admin
from .models import RuleType, QuestionDataType, VirtualOptionType, Survey, TranslationSurvey, Chart, ResultsIntake

#Results_Intake, Results_Monthly

class ResultsIntake_Admin(admin.ModelAdmin):
    list_display = ('id','user','timestamp')
    search_fields = ['id']

class Results_Monthly_Admin(admin.ModelAdmin):
    #list_display = ('id','surveruser','timestamp')
    list_display = ('id','timestamp')

admin.site.register(RuleType)
admin.site.register(QuestionDataType)
admin.site.register(VirtualOptionType)
admin.site.register(Survey)
admin.site.register(TranslationSurvey)
admin.site.register(Chart)
admin.site.register(ResultsIntake, ResultsIntake_Admin)
#admin.site.register(Results_Monthly, Results_Monthly_Admin)

@@ -26,16 +26,60 @@
 t admin%0A
+from django.contrib.auth.models import User%0A
 from .mo
@@ -188,25 +188,8 @@
 take
-%0A%0A#Results_Intake
 , Re
@@ -189,25 +189,24 @@
 ake, Results
-_
 Monthly%0A%0Acla
@@ -275,24 +275,25 @@
 'id','user',
+ 
 'timestamp')
@@ -326,33 +326,32 @@
 %5D%0A%0Aclass Results
-_
 Monthly_Admin(ad
@@ -371,17 +371,16 @@
 n):%0A    
-#
 list_dis
@@ -397,14 +397,8 @@
 d','
-surver
 user
@@ -412,24 +412,25 @@
 stamp')%0A    
+#
 list_display
@@ -709,17 +709,16 @@
 _Admin)%0A
-#
 admin.si
@@ -732,25 +732,24 @@
 ster(Results
-_
 Monthly, Res
@@ -752,17 +752,16 @@
  Results
-_
 Monthly_

Add user in admin view