@@ -27,14 +27,15 @@ Collection of various tricks for
2727Prerequisites
2828=============
2929
30- - Django 1.8, 1.9, 1.10, 1.11, 2. 0, 2.1, 2.2 and 3.0 .
31- - Python 2.7 , 3.5 , 3.6 , 3.7, 3.8
30+ - Django 2.2, 3. 0, 3.1 and 3.2 .
31+ - Python 3.6 , 3.7 , 3.8 , 3.9 and 3.10.
3232
3333Dependencies
3434============
3535
36- - djangorestframework: Written with 3.6.3, tested with >=3.5.0,<=3.11.0. May
37- work on earlier versions, although not guaranteed.
36+ - djangorestframework: Initially written with 3.6.3, but nowadays tested
37+ with >=3.9,<3.13. May (still) work on earlier- or (even) support
38+ later- versions, although not guaranteed.
3839
3940Installation
4041============
@@ -45,17 +46,11 @@ Installation
4546
4647 pip install django-rest-framework-tricks
4748
48- or latest stable version from GitHub:
49+ or latest development version from GitHub:
4950
5051 .. code-block :: sh
5152
52- pip install https://github.com/barseghyanartur/django-rest-framework-tricks/archive/stable.tar.gz
53-
54- or latest stable version from BitBucket:
55-
56- .. code-block :: sh
57-
58- pip install https://bitbucket.org/barseghyanartur/django-rest-framework-tricks/get/stable.tar.gz
53+ pip install https://github.com/barseghyanartur/django-rest-framework-tricks/archive/master.tar.gz
5954
6055 (2) Add ``rest_framework `` and ``rest_framework_tricks `` to ``INSTALLED_APPS ``:
6156
@@ -81,7 +76,7 @@ Documentation is available on `Read the Docs
8176Main features and highlights
8277============================
8378
84- - `Nested serializers `_: Nested serializers for non-relational fields.
79+ - `Nested serializers `_: Nested (writable) serializers for non-relational fields.
8580- `Ordering filter `_: Developer friendly names for ordering options (for
8681 instance, for related field names).
8782
@@ -705,28 +700,19 @@ To test against specific environment, type:
705700
706701.. code-block :: sh
707702
708- tox -e py38-django30
703+ tox -e py39-django32
709704
710705 To test just your working environment type:
711706
712707.. code-block :: sh
713708
714- ./runtests.py
709+ pytest -vvv
715710
716711 To run a single test in your working environment type:
717712
718713.. code-block :: sh
719714
720- ./runtests.py src/rest_framework_tricks/tests/test_nested_proxy_field.py
721-
722- Or:
723-
724- .. code-block :: sh
725-
726- ./manage.py test rest_framework_tricks.tests.test_nested_proxy_field
727-
728- It's assumed that you have all the requirements installed. If not, first
729- install the test requirements:
715+ pytest -vvv src/rest_framework_tricks/tests/test_nested_proxy_field.py
730716
731717 .. code-block :: sh
732718
0 commit comments