Opened 19 years ago

Closed 19 years ago

Last modified 17 years ago

#457 closed defect (invalid)

sqlreset doesn't clean up model-specific user permission record

Reported by: wgunadi@… Owned by: Adrian Holovaty
Component: Database layer (models, ORM) Version:
Severity: normal Keywords:
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Context: When a django user has been created with permissions to add/change/delete a model object (e.g. Poll), the information is recorded in auth_users_user_permissions table.

Problem: This record is not cleared when django-admin sqlclear or sqlreset is issued.

Symptom: This results in a database constraint error that aborted the whole transaction. Which means the database tables cannot be cleared until the permissions are removed.

Change History (1)

comment:1 by Adrian Holovaty, 19 years ago

Resolution: invalid
Status: newclosed

django-admin.py sqlclear and sqlreset do indeed delete from the auth_permissions table.

Note: See TracTickets for help on using tickets.
Back to Top