You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
803 B
26 lines
803 B
from django.contrib import admin
|
|
from practice.models import DataSheet, Workshop, WorkshopTools
|
|
|
|
|
|
class DataSheetAdmin(admin.ModelAdmin):
|
|
list_display = ('title', 'split_char', 'date', 'access', 'key', 'password', 'users_length', )
|
|
search_fields = ['key', 'title']
|
|
list_filter = ['date', 'access']
|
|
|
|
admin.site.register(DataSheet, DataSheetAdmin)
|
|
|
|
|
|
class WorkshopAdmin(admin.ModelAdmin):
|
|
list_display = ('title', 'date', 'access', 'key', 'users_length', 'have_resolve', 'open_resolve', 'get_url', )
|
|
search_fields = ['key', 'title']
|
|
list_filter = ['date', 'access']
|
|
|
|
admin.site.register(Workshop, WorkshopAdmin)
|
|
|
|
|
|
class WorkshopToolsAdmin(admin.ModelAdmin):
|
|
list_display = ('name', 'url', )
|
|
search_fields = ['name']
|
|
|
|
admin.site.register(WorkshopTools, WorkshopToolsAdmin)
|
|
|
|
|