  from django.core.paginator import ObjectPaginator, InvalidPage
  from django.utils.httpwrappers import HttpResponse, HttpResponseRedirect
  from django.core.exceptions import Http404, ObjectDoesNotExist, ImproperlyConfigured
  
  def create_object(request, app_label, module_name, template_name=None, 
                   template_loader=template_loader, extra_context={}, 
                   post_save_redirect=None, login_required=False, follow=None):
      """
      Generic object-creation function.
      
      Templates: ``<app_label>/<module_name>_form``
 
</s> remove from django.core import template_loader, formfields
 </s> add from django.core import template_loader, formfields, meta </s> remove def delete_object(request, app_label, module_name, post_delete_redirect, 
                  object_id=None, slug=None, slug_field=None, template_name=None, 
                  template_loader=template_loader, extra_lookup_kwargs={}, 
 </s> add def delete_object(request, app_label, module_name, post_delete_redirect,
                  object_id=None, slug=None, slug_field=None, template_name=None,
                  template_loader=template_loader, extra_lookup_kwargs={}, </s> remove     
    The given template will be used to confirm deletetion if this view is 
 </s> add     The given template will be used to confirm deletetion if this view is </s> remove         
 </s> add         if mod.Klass._meta.has_field_type(meta.FileField):
            new_data.update(request.FILES)

def create_object(request, app_label, module_name, template_name=None,
                 template_loader=template_loader, extra_context={},
  from django.core.paginator import ObjectPaginator, InvalidPage
  from django.utils.httpwrappers import HttpResponse, HttpResponseRedirect
  from django.core.exceptions import Http404, ObjectDoesNotExist, ImproperlyConfigured
  
def create_object(request, app_label, module_name, template_name=None,
                 template_loader=template_loader, extra_context={},
def create_object(request, app_label, module_name, template_name=None,
                 template_loader=template_loader, extra_context={},
                   post_save_redirect=None, login_required=False, follow=None):
      """
      Generic object-creation function.
      
      Templates: ``<app_label>/<module_name>_form``
keep keep keep keep replace replace keep keep keep keep keep
 Fixed #816 -- FileFields now work in the create_update generic view. Thanks, limodou

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1519 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/views/generic/create_update.py