把Accessories也弄成一个model,以便在manage.py shell里引用

This commit is contained in:
sxw@401
2015-09-06 08:22:20 +08:00
parent 6a8e327e80
commit 937f77e4bc
2 changed files with 2 additions and 1 deletions

1
Accessories/__init__.py Normal file
View File

@@ -0,0 +1 @@
__author__ = 'root'

View File

@@ -5,5 +5,5 @@ django.setup()
def add_exist_problem_to_contest(problems, contest_id): def add_exist_problem_to_contest(problems, contest_id):
for problem in problems: for problem in problems:
print problem.title print problem.title
return return