Skip to content

Commit

Permalink
Add: 添加数据目录
Browse files Browse the repository at this point in the history
  • Loading branch information
doraemonext committed Jul 13, 2015
1 parent 1d94511 commit 9231ca5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/problem/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ class ProblemSampleInline(admin.TabularInline):

@admin.register(Problem)
class ProblemAdmin(admin.ModelAdmin):
change_form_template = 'problem/admin/change_form.html'
list_display = ('title', 'source', 'judge_type', 'time_limit', 'memory_limit', 'data_input_extension',
'data_output_extension', 'create_datetime')
list_filter = ('title', 'source', 'judge_type', 'time_limit', 'memory_limit', 'data_input_extension',
'data_output_extension', 'create_datetime')
search_fields = ['title', 'source']
inlines = [ProblemCategoryInline, ProblemSampleInline]
change_form_template = 'problem/admin/change_form.html'


@admin.register(Category)
Expand Down
2 changes: 2 additions & 0 deletions media/data/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore

0 comments on commit 9231ca5

Please sign in to comment.