Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

magic-removal: Fixed #1222

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 90baed7dd5257df0dd2a0a0cfa4210ddc02d0303 1 parent 9ab24d4
@jkocherhans jkocherhans authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django/views/generic/
3  django/views/generic/
@@ -1,6 +1,7 @@
from django.core.xheaders import populate_xheaders
from django.template import loader
from django import forms
+from django.db.models import FileField
from django.views.auth.login import redirect_to_login
from django.template import RequestContext
from django.core.paginator import ObjectPaginator, InvalidPage
@@ -26,7 +27,7 @@ def create_object(request, model, template_name=None,
# If data was POSTed, we're trying to create a new object
new_data = request.POST.copy()
- if model._meta.has_field_type(meta.FileField):
+ if model._meta.has_field_type(FileField):
# Check for errors
Please sign in to comment.
Something went wrong with that request. Please try again.