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.
1 parent 8731daf commit a085998Copy full SHA for a085998
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
@@ -48,7 +48,6 @@ def import_data(request):
48
if request.method == "POST":
49
form = UploadFileForm(request.POST, request.FILES)
50
def choice_func(row):
51
- print row[0]
52
q = Question.objects.filter(slug=row[0])[0]
53
row[0] = q
54
return row
0 commit comments