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
Xavier Ordoquy
45e90c3398
Merge pull request #4679 from browniebroke/exceptions-docs-typo
...
Correct a small typo in exceptions documentation
2016-11-14 18:03:30 +01:00
Bruno Alla
0c02bbbfa7
Correct a small typo in exceptions documentation
2016-11-14 16:58:16 +00:00
Tom Christie
24791cb353
Invalidate any existing prefetch cache on PUT requests. ( #4668 )
2016-11-11 09:44:35 +00:00
Tom Christie
8bab7f8d58
Only apply the nested writes test to writable fields. ( #4669 )
2016-11-10 16:36:56 +00:00
Michael Barr
388cf7622c
Adds Django/Python Trove Classifiers ( #4662 )
2016-11-09 12:59:11 +00:00
Tom Christie
ea60872e9e
Version 3.5.3 [ci skip]
2016-11-07 13:38:48 +00:00
Tom Christie
8d72535be9
Fix FilterSet warnings. ( #4660 )
2016-11-07 12:55:18 +00:00
Rex Salisbury
06df61e38c
handle error when no links are found ( #4649 )
...
This is to address https://github.com/tomchristie/django-rest-raml/issues/5
The problem is that if you try to generate RAML docs when you haven't set up any views, you get the above error (min called on an empty list).
unfortunately, this PR is not very helpful since it doesn't actually surface a readable error to the user. Not sure what the best way to address this would be...
2016-11-07 11:41:10 +00:00
Angel Velasquez
ee60aaa945
Update versions of Django on tox.ini ( #4651 )
...
Bump release versions to 1.10.3, 1.9.11 and 1.8.16
More info on:
https://www.djangoproject.com/weblog/2016/nov/01/security-releases/
2016-11-07 11:37:58 +00:00