Make FeedbackInfo ReadOnly

Brightcells %!s(int64=7) %!d(string=hace) años
padre
commit
d8dc3bb714
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      operation/admin.py

+ 2 - 1
operation/admin.py

@@ -1,5 +1,6 @@
1 1
 # -*- coding: utf-8 -*-
2 2
 
3
+from djadmin import AdvancedExportExcelModelAdmin, ReadOnlyModelAdmin
3 4
 from django.conf import settings
4 5
 from django.contrib import admin
5 6
 from django.template.loader import render_to_string
@@ -121,7 +122,7 @@ class SplashInfoAdmin(admin.ModelAdmin):
121 122
     list_filter = ('src', 'status')
122 123
 
123 124
 
124
-class FeedbackInfoAdmin(admin.ModelAdmin):
125
+class FeedbackInfoAdmin(AdvancedExportExcelModelAdmin, ReadOnlyModelAdmin, admin.ModelAdmin):
125 126
     list_display = ('user_id', 'feedback', 'src', 'status', 'created_at', 'updated_at')
126 127
     list_filter = ('src', 'status')
127 128