We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents db00be1 + a085998 commit 3e0d102Copy full SHA for 3e0d102
polls/admin.py
@@ -1,5 +1,5 @@
1
from django.contrib import admin
2
-from models import Question, Choice
+from polls.models import Question, Choice
3
# Register your models here.
4
admin.site.register(Question)
5
admin.site.register(Choice)
polls/views.py
@@ -55,7 +55,6 @@ def import_data(request):
55
if request.method == "POST":
56
form = UploadFileForm(request.POST, request.FILES)
57
def choice_func(row):
58
- print row[0]
59
q = Question.objects.filter(slug=row[0])[0]
60
row[0] = q
61
return row
0 commit comments