Asif Saif Uddin
aa49378941
fixed lint errors
2019-05-03 09:59:48 +06:00
Asif Saif Uddin
1bef4e8b8d
Merge branch 'master' of https://github.com/encode/django-rest-framework into 34
2019-05-03 09:50:41 +06:00
Jimmy Merrild Krag
14fad0d690
Fix capitalization, markdown syntax link in docs ( #6621 )
...
The `Pygments` and `Markdown` python packages have first letter capital.
Fixed link to markdown syntax to go directly to the syntax page.
2019-05-02 18:17:33 -07:00
Asif Saif Uddin
b37eb5f2fa
Merge branch 'master' of https://github.com/encode/django-rest-framework into 34
2019-05-02 12:55:27 +06:00
Asif Saif Uddin
2a39ad8eeb
Merge branch '34' of https://github.com/auvipy/django-rest-framework into 34
2019-05-02 12:54:55 +06:00
Asif Saif Uddin
3ead1df728
Fixed errors n un needed checks
2019-05-02 12:53:17 +06:00
Jon Dufresne
1e519486e1
Fixup isort command/config ( #6639 )
2019-05-01 17:42:10 -07:00
Afnarel
67d2eabd6c
Fix username in template for custom user models ( #6612 )
2019-05-01 17:23:23 -07:00
Jon Dufresne
f669395dd8
Fix BytesWarning in test_schemas.py ( #6638 )
2019-05-01 16:47:01 -07:00
Jon Dufresne
e16273a658
Simplify import_from_string() with Django's import_string() ( #6617 )
2019-05-01 15:32:28 -07:00
vu3jej
1c976f2ac8
Fix typo in docs ( #6628 )
2019-05-01 15:24:38 -07:00
Jon Dufresne
23db0bee00
Update setup.py
...
Co-Authored-By: auvipy <auvipy@gmail.com>
2019-05-01 21:13:07 +06:00
Jon Dufresne
059947028b
Update docs on django-oauth-toolkit ( #6618 )
...
Since django-oauth-toolkit 1.2.0 (2018-06-03), the package requires
Python 3.4+.
https://github.com/jazzband/django-oauth-toolkit/blob/master/CHANGELOG.md#120-2018-06-03
2019-05-01 07:52:26 +02:00
Jon Dufresne
5e1619bc9e
Remove unnecessary assignments immediately before a return statement ( #6619 )
...
Cleans up the pattern:
...
myvar = <expression>
return myvar
To:
...
return <expression>
2019-05-01 07:51:54 +02:00
Jon Dufresne
565794bedc
Replace virtualenv references with venv in the docs ( #6636 )
...
On Python 3, creating virtual environments is available through the
stdlib module venv.
https://docs.python.org/3/library/venv.html
2019-05-01 07:51:02 +02:00
Jon Dufresne
8687f6135f
Remove references to Python 2 from the docs ( #6635 )
2019-05-01 07:50:28 +02:00
Jon Dufresne
3f19e66d9f
Replace all usage ugettext functions with the non-u versions ( #6634 )
...
On Python 3, the ugettext functions are a simple aliases of their non-u
counterparts (the 'u' represents Python 2 unicode type). Starting with
Django 3.0, the u versions will be deprecated.
https://docs.djangoproject.com/en/dev/releases/3.0/#id2
> django.utils.translation.ugettext(), ugettext_lazy(), ugettext_noop(),
> ungettext(), and ungettext_lazy() are deprecated in favor of the
> functions that they’re aliases for:
> django.utils.translation.gettext(), gettext_lazy(), gettext_noop(),
> ngettext(), and ngettext_lazy().
2019-05-01 07:49:54 +02:00
Jon Dufresne
513a49d63b
Drop default 'utf-8' to .encode()/.decode() ( #6633 )
...
A Python 3 cleanup that allows for less noise in the code.
https://docs.python.org/3/library/stdtypes.html#bytes.decode
https://docs.python.org/3/library/stdtypes.html#str.encode
2019-05-01 07:49:16 +02:00
Jon Dufresne
734ca7ca8c
Remove unneeded repo() test ( #6632 )
2019-05-01 07:46:30 +02:00
Jon Dufresne
b4e80ac721
Remove unnecessary coerce to str() in test_decorators.py ( #6637 )
...
Was added only for Python 2 compatibility.
2019-05-01 07:45:16 +02:00
Jon Dufresne
ff86f09f74
Remove unnecessary compatibility shims from rest_framework/compat.py ( #6631 )
...
For Python 3, collections.abc.Mapping and collections.abc.MutableMapping
are always available from the stdlib.
2019-05-01 07:44:33 +02:00
Asif Saif Uddin
c4d8be9564
fixed build error
2019-04-30 22:27:20 +06:00
Asif Saif Uddin
a1bea5beac
fixed merge conflicts
2019-04-30 22:12:16 +06:00
Carlton Gibson
0407a0df8a
Dropped Python 2 compatibility. ( #6615 )
...
Thanks to Jon Dufresne (@jdufresne) for review.
Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Co-authored-by: Rizwan Mansuri <Rizwan@webbyfox.com>
2019-04-30 17:53:44 +02:00
Xavier Ordoquy
5c992baf32
Merge pull request #6627 from vu3jej/docs
...
Correct misspelled class name in validators docs
2019-04-30 14:55:27 +02:00
Jithesh Eriyakkadan Janardhanan
908236a576
Correct misspelled class name
2019-04-30 18:01:17 +05:30
Asif Saif Uddin
cffacc268d
Dropped Python 3.4 compat import
2019-04-30 15:36:16 +06:00
Asif Saif Uddin
ffe7a79ad0
Dropped Python 3.4 support
2019-04-30 14:56:32 +06:00
Jon Dufresne
1a0a8dde00
Correct misspelled module 'typing' ( #6616 )
...
https://docs.python.org/3/library/typing.html
2019-04-30 09:44:01 +01:00
Carlton Gibson
7f16ed7727
Correct version number in release notes.
2019-04-29 16:35:17 +02:00
Carlton Gibson
83d09c7bc5
Update version and release notes for v3.9.3.
2019-04-29 16:30:44 +02:00
Carlton Gibson
bf9859de51
Adjust django-guardian check for PY2 compatible version. ( #6613 )
2019-04-29 16:08:39 +02:00
Xavier Ordoquy
59a5a5a868
Merge pull request #6611 from dsanders11/patch-1
...
Fix typo in docs
2019-04-27 22:04:07 +02:00
David Sanders
95e28b2252
Fix typo in docs
2019-04-27 12:07:49 -07:00
Dmitry Alimov
1ac0f63aa9
Fix private attributes ignore in documentation ( #6601 )
2019-04-21 17:27:13 +01:00
Xavier Ordoquy
db65282163
Merge pull request #6588 from rawteech/master
...
Add some words about `extra_kwargs` and explicitly defined fields.
2019-04-15 02:31:07 +02:00
Billy Rotich
f8c4e5079e
Minor documentation fixes ( #6581 )
2019-04-13 15:02:19 +02:00
Asif Saif Uddin
29cbe574a3
Fix DeprecationWarning in tests ( #6551 )
2019-04-05 14:27:07 -07:00
jozo
cceb416098
Link DRF Condition (cache headers) third party package. ( #6557 )
2019-04-04 11:31:08 +02:00
Carlton Gibson
b1122a441a
Update tox to use Django 2.2 final. ( #6556 )
2019-04-01 16:30:26 +02:00
Matt Hegarty
f34a0a4e6a
Minor documentation fixes ( #6543 )
2019-03-28 23:32:25 -07:00
Asif Saif Uddin
13b9b0fb98
Upgraded to Django 2.2rc1 on Tox ( #6544 )
2019-03-28 21:19:06 +01:00
Jabi
ac19c69539
Corrected typo in permissions docs. ( #6540 )
2019-03-28 11:45:13 +01:00
Turfa Auliarachman
d784e42207
Fix basename
deprecation warnings in tests ( #6529 )
2019-03-25 10:42:27 -07:00
Patrickcai
b25d245b89
Merge multiple isinstance() calls to one ( #6513 )
...
* Merge multiple isinstance() calls to one
See https://docs.python.org/3/library/functions.html#isinstance
* Fix `)` mismatch
Fix `)` mismatch
2019-03-22 12:29:45 +00:00
Ryan Siemens
d2d1888217
Document DateTimeField default_timezone argument ( #6469 )
2019-03-12 21:15:12 -07:00
Matt Hegarty
6f24c21cfb
Fixed typo: /Janurary/January/ ( #6506 )
2019-03-12 12:46:02 +01:00
Tom Christie
9bfb58746e
Update README.md
2019-03-07 11:02:43 +00:00
Tom Christie
bcdfcf7e49
Sponsor updates ( #6495 )
2019-03-07 11:00:50 +00:00
Kevin Brown
86c72bb226
Fix schema generation of ManyRelatedField
to detect the child type ( #6489 )
...
* Introspect ManyRelatedField data type recursively
For all `ManyRelatedField` objects, we were assuming that the inner type was always a `String`. While this may be true for the default output, a `ManyRelatedField` is a wrapper for a lot of other classes which includes more than just strings. This should allow us to document lists of things other than strings.
* Added test for schemas for many-to-many fields
This adds a test that makes sure we generate the schema for a many-to-many field such that it actually has the right type. For some reason we did not previously have any tests for schema generation that included them, so hopefully this will prevent any future issues from popping up.
This should serve as a regression test for the `items` field on to-many relationships, which was previously forced to a `String` even though in most cases it is a different inner type within the array.
2019-03-07 11:26:03 +01:00