Commit Graph

6950 Commits

Author SHA1 Message Date
HyunSol
bacaa0e91a Merge branch 'master' into writable-Nested-ModelSerializer 2016-12-06 01:15:08 +09:00
sol HYUN
f5d6925312 Modify '_writable_fields Method'
Reinforce against errors.
2016-12-06 01:00:51 +09:00
sol HYUN
50c51c335e 'to_internal_value method' is reverted
If I manipulate the list, I get a lot of errors.
Although multi-upload operations are limited,
It works fine when doing a single upload from a nested serializer.
2016-12-06 00:58:51 +09:00
sol HYUN
8d441e31d1 'get_value method' is reverted
If I manipulate the List, I get a lot of errors.
Although multi-upload operations are limited,
It works fine when doing a single upload from a nested serializer.
2016-12-06 00:56:44 +09:00
sol HYUN
f7b2829b03 Create lists only under certain conditions 2016-12-06 00:20:08 +09:00
sol HYUN
7ed8a480a3 Create lists only under certain conditions 2016-12-06 00:18:33 +09:00
sol HYUN
8e332ad16f add import re 2016-12-05 21:43:35 +09:00
Xavier Ordoquy
792b50feee Merge pull request #4738 from netsyno/master
Updated Link ti Django Docs
2016-12-05 11:38:55 +01:00
Daniel Rech
761d53e923 Updated Link ti Django Docs
The Url to the settings/#caches Link changed in Django documentation.
2016-12-05 11:36:03 +01:00
sol HYUN
c66df67c49 Modify 'to_internal_value' method for handling list
modified the 'get_value' method in fields.py,
The value of primitive_value is a list of values to match the field.

Validate the primitive_value (list) elements one by one using the
run_validation method.

The verified value is appended to the validated_list

Finally, only when there are two or more elements of validated_list, they are
returned as a list.
2016-12-05 19:16:01 +09:00
sol HYUN
d4cc5478dd modify get_value method for get multi-value
Because dictionary is queryDict,
If you send multiple values with the same field_name,
When using the '__get__' method, only the last element is reflected.

Use the 'getlist' method to return a list with multiple values
2016-12-05 18:51:03 +09:00
sol HYUN
5e7497bfe0 modify _writable_fields in serializers.py
Sometimes 'self' instance is not a field (used in rest_framework)
If the 'serializer' that contains 'field' is 'self', only the subelements of
the serializer, the 'fields', are returned.
in the case of a serializer that contains 'field' as a 'child' element,
Only instances of `.source` ending with` _set '(following relationships
"backward") are found using regular expressions.
Then use the child elements again to find the field using '_writable_fields'.

Do not modify '_readable_fields' because it does not address the issue of what
is currently being viewed.
2016-12-05 18:02:09 +09:00
Raphael Pierzina
238783f2ed Change DEFAULT_PERMISSION_CLASSES to a list in quickstart.md (#4733) 2016-12-02 17:01:37 +00:00
Asif Saifuddin Auvi
932d04a4be Browsable API tests asserts to pytest (#4725) 2016-12-01 16:17:36 +00:00
Carlton Gibson
16f5d42cbc Add additional link to HTML & Forms topic page (#4726)
Just makes the topic page easier to find.

Closes #1673
2016-12-01 09:11:25 +00:00
Xavier Ordoquy
22578525ef Documentation update (#4717) 2016-11-30 12:58:34 +00:00
Asif Saifuddin Auvi
4f6c326a99 converted remaining unittes asserts of fields test to pytest (#4724) 2016-11-30 12:52:32 +00:00
Asif Saifuddin Auvi
1a741bb2a2 converted asserts of exceptions test to pytest (#4723) 2016-11-30 11:12:01 +00:00
Xavier Ordoquy
6e30dc75e0 Merge pull request #4722 from auvipy/pytest7
converted descriptions and ecoders test asserts to pytest
2016-11-30 12:00:29 +01:00
Asif Saifuddin Auvi
7e8b01dbd2 converted asserts of encoders test to pytest 2016-11-30 16:45:48 +06:00
Asif Saifuddin Auvi
9a3f8d9a9c converted asserts of descriptions test to pytest 2016-11-30 16:42:43 +06:00
Xavier Ordoquy
01cd09155b Merge pull request #4721 from auvipy/pytest6
converted asserts of atomic requests and decorators tests to pytest
2016-11-30 11:34:02 +01:00
Asif Saifuddin Auvi
a9b6c97485 converted asserts of decorators test to pytest 2016-11-30 16:24:48 +06:00
Asif Saifuddin Auvi
504f4b44c6 converted asserts of atomic requests test to pytest 2016-11-30 16:17:30 +06:00
Asif Saifuddin Auvi
e03d88ced7 more pytest style assert (#4719) 2016-11-30 09:48:33 +00:00
Xavier Ordoquy
4c41f2bfea Merge pull request #4715 from auvipy/pytest4
converted test asserts of generics-test to pytest
2016-11-30 07:53:58 +01:00
Asif Saifuddin Auvi
10b5f36fec added fixes 2016-11-30 12:35:34 +06:00
Xavier Ordoquy
f2a8252660 Merge pull request #4718 from jfw/patch-4
typo
2016-11-30 07:35:22 +01:00
Asif Saifuddin Auvi
f5a900a404 some reverts to fix test 2016-11-30 10:01:37 +06:00
Asif Saifuddin Auvi
a5bb9825f3 attempt to fix test again 2016-11-30 09:56:22 +06:00
Jeff Fein-Worton
a5c8a8c226 typo 2016-11-29 18:00:10 -08:00
Asif Saifuddin Auvi
4a0829d6ec attempt to fix test 2016-11-30 02:08:37 +06:00
Asif Saifuddin Auvi
27641e07b5 converted test asserts of generics-test to pytest 2016-11-30 01:13:21 +06:00
Germán Larraín
aed8387e05 docs: Fix description of DecimalField's max_digits (#4714)
As of PR #4377, `max_digits=None` is allowed for `DecimalField`.
2016-11-29 15:35:43 +00:00
Xavier Ordoquy
1e0988686c Update the Python doc links to use https and point to Python 3 (#4713) 2016-11-29 12:27:00 +00:00
Ryan P Kilby
6498766749 Fix django deprecation warnings (#4712) 2016-11-29 09:49:18 +00:00
Asif Saifuddin Auvi
9f4c9691f4 converted filters tests asserts to pytest style (#4711) 2016-11-28 14:31:27 +00:00
Asif Saifuddin Auvi
42d6098c74 converted primary key relations test asserts to pytest (#4709) 2016-11-28 09:43:48 +00:00
Xavier Ordoquy
ea8fc99d6a Merge pull request #4708 from auvipy/pytest2
converted generic relations assert to pytest style
2016-11-28 07:40:20 +01:00
Asif Saifuddin Auvi
cd3fd36d0e converted generic relations assert to pytest style 2016-11-27 23:55:09 +06:00
Nik Nyby
abc62afddb docs typo fix (#4701)
Remove unnecessary "a"
2016-11-24 09:39:18 +00:00
Nik Nyby
eaec60ae1d docs: grammar fix - it's -> its (#4698) 2016-11-23 16:10:39 +00:00
Xavier Ordoquy
36552eb5fe Merge pull request #4699 from nikolas/patch-4
docs: grammar fix
2016-11-23 16:19:02 +01:00
Nik Nyby
a13b8d5560 docs: grammar fix 2016-11-23 10:13:03 -05:00
Asif Saifuddin Auvi
5ec223bca0 converted validators and write_only_fields test to pytest style (#4697) 2016-11-23 14:05:34 +00:00
Asif Saifuddin Auvi
4b59ec27fa convert tests asserts to pytest style (#4696) 2016-11-23 13:17:00 +00:00
Carlton Gibson
3e1b31bb9b Merge pull request #4694 from auvipy/patch-1
update django-filter to version 1.0.0
2016-11-23 11:20:12 +01:00
Xavier Ordoquy
f0872a6201 Merge pull request #4695 from vinayan3/patch-1
Edit to the import in Setting filter backends
2016-11-23 07:47:29 +01:00
Vinay Anantharaman
8030f5b74f Edit to the import in Setting filter backends
`django_filters` doesn't export `rest_framework` by default so it's required to import it.
2016-11-22 14:50:47 -08:00
Asif Saifuddin Auvi
1b9013ebae update django-filter to version 1.0.0 2016-11-22 19:46:12 +06:00