aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/resources.py
AgeCommit message (Collapse)Author
2012-09-20Remove old 'djangorestframework directoriesTom Christie
2012-09-18Initial resources codeTom Christie
2012-08-24Drop out resources & mixinsTom Christie
2012-02-25Massive mergeTom Christie
2012-02-21Merge master into developTom Christie
2012-02-21Merging master into developTom Christie
2012-02-10made suggested fixesSébastien Piquemal
2012-02-07cleaned a bit Response/ResponseMixin code, added some documentation + ↵Sébastien Piquemal
renamed ErrorResponse to ImmediateResponse
2012-02-02Response as a subclass of HttpResponse - first draft, not quite there yet.Sébastien Piquemal
2012-01-21pep8/pyflakes cleanupTom Christie
2012-01-19Turns out it was `self.fields`Alen Mujezinovic
2012-01-19Renamed `unknown_form_fields` to `allow_unknown_form_fields`Alen Mujezinovic
2012-01-17Documentation error.Alen Mujezinovic
2012-01-17Added an additional attribute `unknown_form_fields` to `FormResource`Alen Mujezinovic
If the attribute is set to `True`, the validation method will not raise an `ErrorResponse` with status 400 but silently strip out unexpected fields on the form and only return the validated data.
2011-12-30change the key name "field-errors" to "field_errors".Michael Ding
as "-" is not allowed as a part of key name in javascript
2011-12-29whitespace fixesTom Christie
2011-08-04Merge pull request #57 from ulmus/masterTom Christie
Fixed documentstring misalign in ModelResource
2011-07-27Fixed TypeError that occurs without request data. Danilo Bargen
If no request data gets sent, allowed_extra_fields is a set and can't be joined to a tuple using the + operator.
2011-07-19Fixed misaligned documentation on ModelResource.Jens Alm
Added basic documentation for nested resources Signed-off-by: Jens Alm <jens.alm@mac.com>
2011-07-19Fixed __init__ arguments on ModelResourceJens Alm
Signed-off-by: Jens Alm <jens.alm@mac.com>
2011-07-01FIX: ModelViews can have Resources whose models have unique fields.Fernando Zunino
ReadModelMixin and UpdateModelMixin store model instance as a property. This allows ModelResource to bind the ModelForm using the model instance making the form validate the input data against the model instance and not a brand new instance. When the latter happened and the model used unique fields, the form validation failed whenever a PUT was maintaining the previuos value of the unique field.
2011-06-25Try to be marginally less awful if we can't reverse resolve the URL for a ↵Tom Christie
model. TODO: Give up on even trying to do such black magic in the first place?
2011-06-15Allow related models to be fully serializedTom Christie
2011-06-14Support for nesting resources etc...Tom Christie
--HG-- rename : djangorestframework/tests/resources.py => djangorestframework/tests/serializer.py
2011-06-12Fix file uploadsTom Christie
2011-06-10`bound_form.cleaned_data` already returns the file data if there was any.Alen Mujezinovic
`bound_form.files` returns a `MultiValueDict` which errors when passing `.CONTENT` into a model constructor.
2011-06-08Added possibility to specify what attributes of ForeignKeys and OneToOne ↵Alen Mujezinovic
fields to include via nested tuples
2011-06-02Updating docs for 0.2Tom Christie
2011-05-27strip _accept when validatingTom Christie
2011-05-27Allow .form specified on view. Allow get_form, put_form, post_form. Add ↵Tom Christie
.PARAMS.
2011-05-27forms/models can be set on the view as well as the resourceTom Christie
2011-05-19The core is now documented from the docstrings in the source.markotibold
2011-05-16validators tests -> resources testsTom Christie
2011-05-16Fixing some of the last blocking issuesTom Christie
2011-05-16nested resources now workingTom Christie
2011-05-13Docs on resourcesTom Christie
2011-05-13Sorting out resources. Doing some crazy magic automatic url resolving ↵Tom Christie
stuff. Yum.
2011-05-13cleanupTom Christie