Skip to main content

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:

  1. Install this distribution as a dependency. For example,

    pip install django-postgres-delete-cascade
  2. 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 2 (2015-10-12)

Initial release, in spite of the version (due to some problems with PYPI).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-postgres-delete-cascade-1.0rc2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file django-postgres-delete-cascade-1.0rc2.tar.gz.

File metadata

File hashes

Hashes for django-postgres-delete-cascade-1.0rc2.tar.gz
Algorithm Hash digest
SHA256 a1c3cab5f4ff4f5e0964980eee9dae1bdf0b6fd10fa2248bfebbd43b88f775bd
MD5 4281d5eee908716a3edb4797b56dc751
BLAKE2b-256 92fe06b1d37414473d5f5361c3faf8f187ab7b7cdcda4284fe8130e2c1611c58

See more details on using hashes here.

File details

Details for the file django_postgres_delete_cascade-1.0rc2-py2-none-any.whl.

File metadata

File hashes

Hashes for django_postgres_delete_cascade-1.0rc2-py2-none-any.whl
Algorithm Hash digest
SHA256 66856b9b0525e23d36c8987354410cd26b8e6a8b1d8731b3214af0610670ffb7
MD5 19817ef9659d5a1d6d8fffb97ac30c40
BLAKE2b-256 0f41c33eed1fe9a9438885ab5d8f55499b685ed55676ea82bded5ea14ce176bc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page