Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#457 closed defect (invalid)

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

Reported by: wgunadi@… Owned by: adrian
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: UI/UX:


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 Changed 10 years ago by adrian

  • Resolution set to invalid
  • Status changed from new to closed sqlclear and sqlreset do indeed delete from the auth_permissions table.

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