omab / python-social-auth

Social auth made simple
http://psa.matiasaguirre.net
BSD 3-Clause "New" or "Revised" License
2.83k stars 1.09k forks source link

Add ON DELETE CASCADE for user fk #1015

Closed artofhuman closed 7 years ago

artofhuman commented 8 years ago

Now fk looks like "user_id_refs_id_eb775862" FOREIGN KEY (user_id) REFERENCES membership_user(id) DEFERRABLE INITIALLY DEFERRED

It`s problem if we want to delete user in db

omab commented 7 years ago

I've ported this PR into social-app-django.

Thanks!