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 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


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-2.0a1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file django-postgres-delete-cascade-2.0a1.tar.gz.

File metadata

File hashes

Hashes for django-postgres-delete-cascade-2.0a1.tar.gz
Algorithm Hash digest
SHA256 70d97f541f250b0f84b223c5f8a679965a6437021bde0542b202aef21a73517d
MD5 834c6402d5c34b4c17eae9e9998ad686
BLAKE2b-256 00aa344c55c16dd329518bd5dc664cd17a8a2100d283149003ba76119b7d57ad

See more details on using hashes here.

File details

Details for the file django_postgres_delete_cascade-2.0a1-py2-none-any.whl.

File metadata

File hashes

Hashes for django_postgres_delete_cascade-2.0a1-py2-none-any.whl
Algorithm Hash digest
SHA256 2f5c430bc6542abbfab791eb6acb1bd0ac75f790d6f9324de71b146e61767659
MD5 3361560055d1bb12bfb61f4b31f69683
BLAKE2b-256 3304874e743a4f348c307c798d4798fac96c19a184f1d6769c65480557512dca

See more details on using hashes here.

Supported by

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