Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

magic-removal: Fixed #1222

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1958 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 90baed7dd5257df0dd2a0a0cfa4210ddc02d0303 1 parent 9ab24d4
Joseph Kocherhans authored January 13, 2006

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  django/views/generic/create_update.py
3  django/views/generic/create_update.py
... ...
@@ -1,6 +1,7 @@
1 1
 from django.core.xheaders import populate_xheaders
2 2
 from django.template import loader
3 3
 from django import forms
  4
+from django.db.models import FileField
4 5
 from django.views.auth.login import redirect_to_login
5 6
 from django.template import RequestContext
6 7
 from django.core.paginator import ObjectPaginator, InvalidPage
@@ -26,7 +27,7 @@ def create_object(request, model, template_name=None,
26 27
         # If data was POSTed, we're trying to create a new object
27 28
         new_data = request.POST.copy()
28 29
 
29  
-        if model._meta.has_field_type(meta.FileField):
  30
+        if model._meta.has_field_type(FileField):
30 31
             new_data.update(request.FILES)
31 32
 
32 33
         # Check for errors

0 notes on commit 90baed7

Please sign in to comment.
Something went wrong with that request. Please try again.