mirror of
https://github.com/django-polymorphic/django-polymorphic.git
synced 2026-02-14 02:30:23 +03:00
readme updates
This commit is contained in:
parent
bb7802ade9
commit
7e9c20f87a
10
README.md
10
README.md
|
|
@ -75,8 +75,6 @@ ForeignKeys, ManyToManyFields or OneToOneFields.
|
|||
|
||||
**Note:** While [django-polymorphic](https://pypi.python.org/pypi/django-polymorphic) makes subclassed models easy to use in Django, we still encourage to use them with caution. Each subclassed model will require Django to perform an ``INNER JOIN`` to fetch the model fields from the database. While taking this in mind, there are valid reasons for using subclassed models. That's what this library is designed for!
|
||||
|
||||
The current release of [django-polymorphic](https://pypi.python.org/pypi/django-polymorphic) supports Django 2.2 - 5.2 on Python 3.9+.
|
||||
|
||||
For more information, see the [documentation at Read the Docs](https://django-polymorphic.readthedocs.io).
|
||||
|
||||
### Installation
|
||||
|
|
@ -85,6 +83,14 @@ For more information, see the [documentation at Read the Docs](https://django-po
|
|||
$ pip install django-polymorphic
|
||||
```
|
||||
|
||||
```python
|
||||
INSTALLED_APPS = [
|
||||
...
|
||||
"django.contrib.contenttypes", # we rely on the contenttypes framework
|
||||
"polymorphic"
|
||||
]
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
[django-polymorphic](https://pypi.python.org/pypi/django-polymorphic) uses the same license as Django (BSD-like).
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user