Карусель 1 часть
This commit is contained in:
1 parent
1b3ac28ddf
commit
e83ea1300f
11 files changed
+57
-47
No files matched your search
@@ -11,28 +11,8 @@ class RatingStatusInline(admin.TabularInline):
|
||||
readonly_fields=( 'crit', 'rating')
|
||||
can_delete = False
|
||||
show_change_link = False
|
||||
|
||||
extra = 0
|
||||
|
||||
# class GetRatFilter(admin.SimpleListFilter):
|
||||
# title = 'get_rat'
|
||||
# parameter_name = 'get_rat'
|
||||
|
||||
# def lookups(self, request, model_admin):
|
||||
# return (
|
||||
# ('Yes', 'Yes'),
|
||||
# ('No', 'No'),
|
||||
# )
|
||||
|
||||
# def queryset(self, request, queryset):
|
||||
# value = self.value()
|
||||
# print(self.value(), '---------------------------')
|
||||
|
||||
# if value < 5:
|
||||
# return queryset.filter(comment='Я усталь')
|
||||
# if value > 5:
|
||||
# return queryset.filter(comment='qqqq')
|
||||
|
||||
class UserCommentAdmin(admin.ModelAdmin):
|
||||
fields = ( 'comment', ('get_rat', 'user', 'time_create'))
|
||||
list_display=('user', 'time_create', 'comment', 'get_rat', 'utility')
|
||||
|
||||
Reference in new issue
Block a user