#5920: Error AttributeError: 'function' object has no attribute 'status_code' in
6668 version
---------------------+------------------------------------------------------
   Reporter:  aaloy  |                Owner:  nobody       
     Status:  new    |            Component:  Uncategorized
    Version:  SVN    |           Resolution:               
   Keywords:         |                Stage:  Unreviewed   
  Has_patch:  0      |           Needs_docs:  0            
Needs_tests:  0      |   Needs_better_patch:  0            
---------------------+------------------------------------------------------
Changes (by aaloy):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 It seems the issue is not with http but with the cache_page decorator. The
 decorator worked with the previos version and does not work with the trunk
 versions.

 This worke on version 6473
 {{{
 def ajax_zonas(request):
     """Get all ojects from table Provincia odrdereb by name"""
     listado = Provincia.objects.all().order_by('name')
     json = serialize('json', listado,ensure_ascii=True)
     return  HttpResponse(json, mimetype='text/javascript')
 ajax_zonas = cache_page(ajax_zonas, 60)
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5920#comment:1>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to