#457 closed defect (invalid)
sqlreset doesn't clean up model-specific user permission record
| Reported by: | 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.
Note:
See TracTickets
for help on using tickets.
django-admin.py sqlclearandsqlresetdo indeed delete from the auth_permissions table.