Skip to content
This repository has been archived by the owner on Feb 27, 2020. It is now read-only.

PostgreSQL engine for Django that supports "ON DELETE CASCADE" at the database level

Notifications You must be signed in to change notification settings

2degrees/django-postgres-delete-cascade

Repository files navigation

PostgreSQL engine for Django that supports "ON DELETE CASCADE" at the database level

This project is no longer maintained.

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

About

PostgreSQL engine for Django that supports "ON DELETE CASCADE" at the database level

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages