| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2013-01-20 | Add missing import to tutorial. Fixes #599 | Tom Christie | |
| 2013-01-20 | Added @brutasse for docs fix #600. Thanks! | Tom Christie | |
| 2013-01-20 | Merge pull request #600 from brutasse/fix/authtoken-docs | Tom Christie | |
| Fixed reference to authtoken in the docs | |||
| 2013-01-20 | Fixed reference to authtoken in the docs | Bruno Renié | |
| 2013-01-19 | Include kwargs in included URLs | Tom Christie | |
| 2013-01-19 | Drop print statement | Tom Christie | |
| 2013-01-19 | Update release notes | Tom Christie | |
| 2013-01-19 | `format_suffix_patterns` now support `include`-style nested URL patterns. ↵ | Tom Christie | |
| Fixes #593 | |||
| 2013-01-19 | Raise assertion errors if @api_view decorator is applied incorrectly. Fixes ↵ | Tom Christie | |
| #596. | |||
| 2013-01-19 | Tweak imports in tutorial. Fixes #597. | Tom Christie | |
| 2013-01-19 | Drop unneeded test | Tom Christie | |
| 2013-01-18 | Starting migration from ManyField to Field(many=True) | Tom Christie | |
| 2013-01-18 | Added @nemesisdesign, for documentation on Apache mod_wsgi setup. Thanks! | Tom Christie | |
| Refs #588. | |||
| 2013-01-18 | Rephrasing. | Tom Christie | |
| 2013-01-18 | Merge pull request #588 from nemesisdesign/patch-1 | Tom Christie | |
| mod_wsgi specific documentation for WSGIPassAuthorization | |||
| 2013-01-18 | Drop the curl notes. Unnecessary. | Tom Christie | |
| 2013-01-18 | Note on setting ContentType. Fixes #589. Refs #586. | Tom Christie | |
| 2013-01-18 | Update release notes. | Tom Christie | |
| 2013-01-18 | Raise Validation Errors when relationships receive incorrect types. Fixes #590. | Tom Christie | |
| 2013-01-18 | Revert accidental merge. | Tom Christie | |
| 2013-01-18 | Merge pull request #556 from maspwr/one-to-one-nested | Tom Christie | |
| One-to-one writable, nested serializer support | |||
| 2013-01-18 | Merge branch 'master' of https://github.com/tomchristie/django-rest-framework | Tom Christie | |
| 2013-01-18 | Update docs to reference DabApps commercial support | Tom Christie | |
| 2013-01-17 | Kick travis into action | Tom Christie | |
| 2013-01-17 | Tweak resource docs | Tom Christie | |
| 2013-01-17 | Added PATCH HTTP method to the docs | Michael Elovskikh | |
| 2013-01-16 | Use None to delete nested object as opposed to _delete flag | Mark Aaron Shirley | |
| 2013-01-16 | Move nested serializer logic into .field_from_native() | Mark Aaron Shirley | |
| 2013-01-16 | Add one-to-one nested update and delete functionality | Mark Aaron Shirley | |
| 2013-01-16 | Update errant test comment | Mark Aaron Shirley | |
| 2013-01-16 | Update one-to-one test names | Mark Aaron Shirley | |
| 2013-01-16 | Remove commented out debug code | Mark Aaron Shirley | |
| 2013-01-16 | Add nested create for 1to1 reverse relationships | Mark Aaron Shirley | |
| 2013-01-16 | Update docs/api-guide/authentication.md | Federico Capoano | |
| refined mod_wsgi | |||
| 2013-01-16 | Update docs/api-guide/authentication.md | Federico Capoano | |
| Added mod_wsgi specific instructions | |||
| 2013-01-16 | Note changes to Decimal rendering to json behavior. Fixes #582. | Tom Christie | |
| 2013-01-16 | Updated release notes. | Tom Christie | |
| 2013-01-16 | Added @steve-gregory for nullable slug relation tests. | Tom Christie | |
| See: #585 | |||
| 2013-01-16 | Drop bits of relations_slug tests which don't mirror existing tests. | Tom Christie | |
| 2013-01-16 | Merge branch 'master' of ↵ | Tom Christie | |
| https://github.com/steve-gregory/django-rest-framework into slug-field-fixes | |||
| 2013-01-15 | Tweaks | Tom Christie | |
| 2013-01-15 | Added a new file 'relations_slug.py' that tests Nullable Foreign Keys and ↵ | Steven Gregory | |
| the SlugRelatedField | |||
| 2013-01-15 | Merge with latest master | Tom Christie | |
| 2013-01-15 | Fix implementation | Tom Christie | |
| 2013-01-15 | Update docs | Tom Christie | |
| 2013-01-15 | Added @radiosilence, for the timedelta encoding support. Thanks! | Tom Christie | |
| See: #584 | |||
| 2013-01-15 | Update release notes | Tom Christie | |
| 2013-01-15 | Merge pull request #584 from radiosilence/master | Tom Christie | |
| Adding timedelta support to JSONEncoder, and an example of how to add decode support to a serializer. | |||
| 2013-01-15 | Add timedelta encoder to the JSONEncoder class. | James Cleveland | |
| Whilst this commit adds *encoding* of timedeltas to a string of a floating point value of the seconds, you must add your own serializer field for whatever timedelta model field you are using. This is because Django doesn't support any kind of timedelta field out-of-the-box, so you have to either implement your own or use django-timedelta. If this is the case and you want to serialise timedelta input, you will have to implement your own special field to use for the timedelta, which is not included in core as it is based on a 3rd party library. Here is an example: import datetime import timedelta from django import forms from django.core import validators from django.core.exceptions import ValidationError from django.utils.translation import ugettext_lazy as _ from rest_framework.fields import WritableField class TimedeltaField(WritableField): type_name = 'TimedeltaField' form_field_class = forms.FloatField default_error_messages = { 'invalid': _("'%s' value must be in seconds."), } def from_native(self, value): if value in validators.EMPTY_VALUES: return None try: return datetime.timedelta(seconds=float(value)) except (TypeError, ValueError): msg = self.error_messages['invalid'] % value raise ValidationError(msg) Which is based on the FloatField. This field can then be used in your serializer like this: from yourapp.fields import TimedeltaField class YourSerializer(serializers.ModelSerializer): duration = TimedeltaField() | |||
| 2013-01-15 | Add @shezi thanks! | Stephan Groß | |
