This commit is contained in:
@@ -30,14 +30,14 @@ class TopicMediaInline(TabularInline):
|
|||||||
|
|
||||||
@admin.register(Activity)
|
@admin.register(Activity)
|
||||||
class ActivityAdmin(ModelAdmin):
|
class ActivityAdmin(ModelAdmin):
|
||||||
list_display = ('title', 'banner_display', 'start_time', 'location', 'signup_count', 'is_active', 'created_at')
|
list_display = ('title', 'banner_display', 'start_time', 'location', 'signup_count', 'is_active', 'auto_confirm', 'created_at')
|
||||||
list_filter = ('is_active', 'start_time')
|
list_filter = ('is_active', 'auto_confirm', 'start_time')
|
||||||
search_fields = ('title', 'location')
|
search_fields = ('title', 'location')
|
||||||
inlines = [ActivitySignupInline]
|
inlines = [ActivitySignupInline]
|
||||||
|
|
||||||
fieldsets = (
|
fieldsets = (
|
||||||
('基本信息', {
|
('基本信息', {
|
||||||
'fields': ('title', 'description', 'banner', 'banner_url', 'is_active')
|
'fields': ('title', 'description', 'banner', 'banner_url', 'is_active', 'auto_confirm')
|
||||||
}),
|
}),
|
||||||
('费用与时间', {
|
('费用与时间', {
|
||||||
'fields': ('is_paid', 'price', 'start_time', 'end_time', 'location'),
|
'fields': ('is_paid', 'price', 'start_time', 'end_time', 'location'),
|
||||||
|
|||||||
Reference in New Issue
Block a user