Opened 9 years ago

Closed 9 years ago

Last modified 7 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.

Attachments (0)

Change History (1)

comment:1 Changed 9 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.