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-1.0rc3.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.0rc3.tar.gz.

File metadata

File hashes

Hashes for django-postgres-delete-cascade-1.0rc3.tar.gz
Algorithm Hash digest
SHA256 e2a4f9405ea844d845bc0713c8e78d9b76fd872432fed49326ca3c94818283c6
MD5 6d2a095af9a3ca1ab1aa369580bfc23a
BLAKE2b-256 cdc4175995c3757c6fa4f6660b8c32e61a22b3dba36cab7508bc6c422008a3f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_postgres_delete_cascade-1.0rc3-py2-none-any.whl
Algorithm Hash digest
SHA256 247d4592f7a4e9b9ac9717b482c67254d1370a2d3f438fd7c83ab4484a7642cc
MD5 8054edf13c4b76fee4ff3124c9b6609e
BLAKE2b-256 2e167d805087e4e3b22cc001cd6295cf915cbb53b81daa7fb05570690b5478e5

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