| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 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 | Added a new file 'relations_slug.py' that tests Nullable Foreign Keys and ↵ | Steven Gregory | |
| the SlugRelatedField | |||
| 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ß | |
| 2013-01-15 | Merge pull request #583 from shezi/master | Stephan Groß | |
| Fixed a minor template bug | |||
| 2013-01-15 | correcting template: closing tag was missing | Johannes Spielmann | |
| 2013-01-15 | Update docstrings | Tom Christie | |
| 2013-01-15 | Modify tutorial to work with pygments 1.6rc. Fixes #581. | Tom Christie | |
| 2013-01-14 | Tweak messagepack links | Tom Christie | |
| 2013-01-14 | Add link to @mjumbewu's CSV package | Tom Christie | |
| 2013-01-14 | Version 2.1.162.1.16 | Tom Christie | |
| 2013-01-13 | Merge pull request #578 from Wackerbarth/tutorial | Tom Christie | |
| Format extensions have already been introduced. | |||
| 2013-01-13 | Format extensions have already been introduced. | Richard Wackerbarth | |
| If format extensions are used, they must be used in the creation of the reverse URLs. | |||
| 2013-01-12 | Merge pull request #577 from Wackerbarth/tutorial | Stephan Groß | |
| A minor gramatical correction | |||
| 2013-01-12 | Minor gramatical correction | Richard Wackerbarth | |
| 2013-01-12 | Update django-filter link to pypi | Stephan Groß | |
| 2013-01-12 | Update django-filter link to pypi | Stephan Groß | |
| 2013-01-12 | Update release notes. | Tom Christie | |
| 2013-01-12 | PK fields should only be read-only if they are an AutoField. Fixes #563 | Tom Christie | |
| 2013-01-12 | auto_now and auto_now_add fields should be read only by default | Tom Christie | |
| 2013-01-11 | Fix typo in permission_classes | Stephan Groß | |
| 2013-01-11 | Added @wackerbarth. Thanks! | Tom Christie | |
| 2013-01-11 | Merge pull request #573 from Wackerbarth/tutorial | Tom Christie | |
| Make the whitespace uniform | |||
| 2013-01-10 | Make the whitespace uniform | Richard Wackerbarth | |
| 2013-01-10 | Merge pull request #550 from Wackerbarth/tutorial | Tom Christie | |
| Revised Tutorial | |||
| 2013-01-10 | Bringing up the Web API | Richard Wackerbarth | |
| 2013-01-10 | Some comment on the tutorial repository | Richard Wackerbarth | |
| 2013-01-10 | Imply an additional element in infinite lists | Richard Wackerbarth | |
| This is to allow the addition of elements without having to change existing lines of code | |||
| 2013-01-10 | Merge pull request #572 from juanriaza/master | Tom Christie | |
| Unused imports | |||
| 2013-01-10 | unused imports | Juan Riaza | |
| 2013-01-09 | Include CSRF note in SessionAuthentication docs. | Tom Christie | |
| 2013-01-08 | Merge pull request #553 from maspwr/null-one-to-one | Mark Shirley | |
| Handle ObjectDoesNotExist exceptions when serializing null reverse one-to-one | |||
| 2013-01-08 | Update release notes | Mark Aaron Shirley | |
| 2013-01-08 | Merge remote-tracking branch 'upstream/master' into null-one-to-one | Mark Aaron Shirley | |
| 2013-01-08 | Merge pull request #566 from mjtamlyn/patch-1 | Tom Christie | |
| ObtainAuthToken pluggable Serializer. | |||
| 2013-01-08 | Merge branch 'master' of https://github.com/tomchristie/django-rest-framework | Tom Christie | |
| 2013-01-08 | Fix inconsistent view_name logic. Fixes #567. | Tom Christie | |
| 2013-01-08 | ObtainAuthToken pluggable Serializer. | Marc Tamlyn | |
| It should have serializer_class in the same way as any other API view. | |||
| 2013-01-08 | Merge pull request #565 from mjtamlyn/patch-1 | Stephan Groß | |
| Fix reference to BasicAuthentication in settings. | |||
| 2013-01-08 | Fix reference to BasicAuthentication in settings. | Marc Tamlyn | |
| 2013-01-07 | Create separate *NullableOneToOneTests TestCase | Mark Aaron Shirley | |
| 2013-01-07 | Clean up test slightly. Refs #552 | Tom Christie | |
| 2013-01-07 | Note paginate_by=None usage. Fixes #555. | Tom Christie | |
