PostgreSQL engine for Django that supports "ON DELETE CASCADE" at the database level
Project description
This is a temporary workaround until Django’s ticket #21961 is fixed. It has been tested with Python 2.7, Django 1.6 and Psycopg2 2.6, but should work with other combinations.
To use it, you just have to:
Install this distribution as a dependency. For example,
pip install django-postgres-delete-cascade
Replace the django.db.backends.postgresql_psycopg2 engine with django_postgres_delete_cascade. For example:
DATABASES = { 'default': { 'ENGINE': 'django_postgres_delete_cascade', 'NAME': 'mydatabase', 'USER': 'mydatabaseuser', 'PASSWORD': 'mypassword', 'HOST': '127.0.0.1', 'PORT': '5432', } }
Change log
Version 1.0 Release Candidate 3 (2015-10-12)
Fixed packaging issue.
Version 1.0 Release Candidate 2 (2015-10-12)
Initial release, in spite of the version (due to some problems with PYPI).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-postgres-delete-cascade-2.0a1.tar.gz
.
File metadata
- Download URL: django-postgres-delete-cascade-2.0a1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70d97f541f250b0f84b223c5f8a679965a6437021bde0542b202aef21a73517d |
|
MD5 | 834c6402d5c34b4c17eae9e9998ad686 |
|
BLAKE2b-256 | 00aa344c55c16dd329518bd5dc664cd17a8a2100d283149003ba76119b7d57ad |
File details
Details for the file django_postgres_delete_cascade-2.0a1-py2-none-any.whl
.
File metadata
- Download URL: django_postgres_delete_cascade-2.0a1-py2-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f5c430bc6542abbfab791eb6acb1bd0ac75f790d6f9324de71b146e61767659 |
|
MD5 | 3361560055d1bb12bfb61f4b31f69683 |
|
BLAKE2b-256 | 3304874e743a4f348c307c798d4798fac96c19a184f1d6769c65480557512dca |