aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework
AgeCommit message (Collapse)Author
2014-01-14Override HyperlinkedModelSerializerOptions url field name with ↵S.Prymak
URL_FIELD_NAME setting
2014-01-13Minor tweaksTom Christie
2014-01-13Merge branch 'testing-nested-serializers' of ↵Tom Christie
git://github.com/dustinfarris/django-rest-framework into dustinfarris-testing-nested-serializers
2014-01-13Minor cleanupTom Christie
2014-01-13Move ImportingModelSerializerTests and add comments.Dustin Farris
2014-01-13Merge branch 'master' of git://github.com/cguethle/django-rest-framework ↵Tom Christie
into cguethle-master
2014-01-13Move models.resolve_model to serializers._resolve_modelDustin Farris
2014-01-13Minor tweaks to 'lookup_value_regex' workTom Christie
2014-01-13Merge pull request #1333 from bodylabs/2.4.0+lookup_regexTom Christie
Let viewsets specify their regex
2014-01-13Make HyperlinkedModelSerializer `url` field name customizableS.Prymak
2014-01-12Add a sanity check to avoid running into unresolved related models.Dustin Farris
2014-01-12Check the modelfield's class insteadYuri Prezument
2014-01-12Test for setting allow_none=True for nullable CharFieldsYuri Prezument
2014-01-12Set `allow_none = True` for CharFields with null=TrueYuri Prezument
2014-01-12CharField - add allow_null argumentYuri Prezument
2014-01-12Possible fix for #1330Yuri Prezument
Coerce None to '' in CharField.to_native()
2014-01-12Regression test for #1330 (Coerce None to '')Yuri Prezument
2014-01-09Removed useless try/exceptXavier Ordoquy
2014-01-09Test case for #1129Xavier Ordoquy
2014-01-09Move serializer import to top-level causes test errorDustin Farris
2014-01-09Merge pull request #1341 from fredrikmollerstrand/docstring-typo-fixTom Christie
fix docstring typos.
2014-01-09fix docstring typos.Fredrik Möllerstrand
2014-01-08Testing nested serializers with models that have str foreign key references.Dustin Farris
2014-01-08Use www.django-rest-framework.org for docs instead of ↵Tom Christie
django-rest-framework.org due to issues with naked domains
2014-01-06Added "nofollow" against docs link.Tom Christie
2014-01-04Router: Do not automatically adjust lookup_regex when trailing_slash is TruePaul Melnikow
BREAKING CHANGE When trailing_slash is set to True, the router no longer will adjust the lookup regex to allow it to include periods. To simulate the old behavior, the programmer should specify `lookup_regex = '[^/]+'` on the viewset. https://github.com/tomchristie/django-rest-framework/pull/1328#issuecomment-31517099
2014-01-04Allow viewset to specify lookup value regex for routingPaul Melnikow
This patch allows a viewset to define a pattern for its lookup field, which the router will honor. Without this patch, any characters are allowed in the lookup field, and overriding this behavior requires subclassing router and copying and pasting the implementation of get_lookup_regex. It's possible it would be better to remove this functionality from the routers and simply expose a parameter to get_lookup_regex which allows overriding the lookup_regex. That way the viewset config logic could be in the a subclass, which could invoke the super method directly. I'm using this now for PostgreSQL UUID fields using https://github.com/dcramer/django-uuidfield . Without this patch, that field passes the lookup string to the database driver, which raises a DataError to complain about the invalid UUID. It's possible the field ought to signal this error in a different way, which could obviate the need to specify a pattern.
2014-01-02FIX BaseSerializer.from_native has an altered signatureSteven Cummings
* base classes define it with one parameter * BaseSerializer currently defines a second parameter, which we make optional here for method-dispatch passivity
2013-12-23fix for genericrelation savingS. Andrew Sheppard
2013-12-23can't save genericrelations via nested serializers in django 1.6S. Andrew Sheppard
2013-12-23Tweak test styleTom Christie
2013-12-23Updated tests to pass in python 3Tom Christie
2013-12-23Merge branch 'bennbollay-patch-1' into 2.4.0Tom Christie
Conflicts: .travis.yml docs/api-guide/routers.md rest_framework/compat.py tox.ini
2013-12-23fix url double quoted in Django 1.6Yin Jifeng
get_full_path returns unicode, so we use build_absolute_uri which returns iri_to_uri'ed one
2013-12-22Simplified some functionsamatellanes
2013-12-21Merge pull request #1309 from lukaszb/errors-for-renamed-fieldsTom Christie
Should it be that way?
2013-12-21Additional test for 'source' behaviour. Refs #1302Tom Christie
2013-12-21Less brittle through relationship testing. Closes #1292.Tom Christie
2013-12-20Should it be that way?Lukasz Balcerzak
2013-12-20Merge pull request #1308 from lukaszb/missing-custom-validation-method-testTom Christie
Added missing custom validation method test
2013-12-20Added missing custom validation method testLukasz Balcerzak
2013-12-20Updated test class name to be uniqueLukasz Balcerzak
2013-12-16Merge branch 'nullbooleanfield_testcase' of ↵Tom Christie
git://github.com/dpetzel/django-rest-framework into dpetzel-nullbooleanfield_testcase Conflicts: rest_framework/tests/test_serializer.py
2013-12-16Merge pull request #1184 from dpetzel/nullbooleanfield_fixTom Christie
Fix infered field type for models.NullBooleanField
2013-12-16Merge pull request #1298 from craigds/fix-nested-serializers-with-renamed-fieldsTom Christie
Fix nested serializers with renamed fields
2013-12-16Don't import compat.py from authtoken.models. Closes #1297Tom Christie
2013-12-16Fix expansion of writable nested serializers where the inner fields have ↵Craig de Stigter
source set.
2013-12-13Compat fixes for django-oauth-plus versions 2.0-2.2.1Tom Christie
2013-12-13Merge branch 'master' of git://github.com/philipforget/django-rest-framework ↵Tom Christie
into philipforget-master
2013-12-13Add notes on lookup_prefix argument and why it's there even though unused by ↵Tom Christie
the default implementations.