jatin-practice / django-rest-interface

Automatically exported from code.google.com/p/django-rest-interface
0 stars 0 forks source link

model_resource.py Line 99 "_headers" should be "headers" #25

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a arbitrary model
2. create a collection with authentication = HttpBasicAuthentication
3. try to access

What is the expected output? What do you see instead?
displays a error, the attr _headers does not exist

replace _headers in line 99 of model_resoruce.py with headers, fixes the
problem for me.

Original issue reported on code.google.com by nebukadn...@gmail.com on 22 Feb 2008 at 7:53

GoogleCodeExporter commented 8 years ago
Thank you for the report. This issue has been fixed in trunk. To conform to 
Django
trunk, using dictionary style access with the response object is the way to go.

Original comment by alaasal...@gmail.com on 29 Jul 2008 at 10:41