@@ -11,16 +11,16 @@ Django Readonly Field
1111.. image :: https://img.shields.io/codecov/c/github/peopledoc/django-readonly-field/master.svg
1212 :target: https://codecov.io/github/peopledoc/django-readonly-field?branch=master
1313
14- Make Django model fields readonly. In other words, make it so that Django will
15- read from your fields in your database, but never try to write them . It can be
14+ Make some Django model fields readonly. In other words, it lets you tell Django to
15+ read some fields from your database, but never try to write those back . It can be
1616useful if your fields are populated by triggers or something.
1717
1818Requirements
1919------------
2020
2121+ **Postgresql only **
22- + Django, obviously. v1.11+ (until proven otherwise)
23- + Running under Python 2 .7 or 3.5+
22+ + Django, tested from 2.2 to 4.1
23+ + With Python, tested from 3 .7 to 3.11
2424
2525Documentation
2626-------------
@@ -72,19 +72,19 @@ You might have to write an SQL migration for this.
7272Running Tests
7373--------------
7474
75- You will need an usable Postgresql database in ordre to test the project.
75+ You will need a usable Postgresql database in order to test the project.
7676
7777::
7878
7979 source <YOURVIRTUALENV>/bin/activate
8080 export DATABASE_URL=postgres://USER:PASSWORD@HOST:PORT/NAME
81- (myenv) $ pip install -r requirements_test .txt
81+ (myenv) $ pip install -r requirements .txt
8282
8383Run tests for a specific version
8484
8585::
8686
87- (myenv) $ python runtests.py
87+ (myenv) $ pytest
8888
8989
9090Run tests for all versions (if tox is installed globally, you don't need a
@@ -94,15 +94,6 @@ virtual environment)
9494
9595 $ tox
9696
97- Using the project
98- -----------------
99-
100- Many operations are documented in the Makefile. For more information, use:
101-
102- ::
103-
104- $ make help
105-
10697
10798Credits
10899---------
0 commit comments