Code

Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#686 closed enhancement (fixed)

sqlreset references django_admin_log

Reported by: davidschein@… Owned by: adrian
Component: Generic views Version: 0.90
Severity: major Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

C:\ncauction>django-admin sqlreset auction 1>_builddb.sql
C:\ncauction>sqlite3 c:\ncauction\db\auction.db3 0<_builddb.sql
DELETE FROM django_admin_log WHERE content_type_id = 17;
SQL error: no such table: django_admin_log
...

sqlreset generates bad sql as above in the case where admin is not installed.

Does not really hurt anything though.

Attachments (0)

Change History (4)

comment:1 Changed 8 years ago by adrian

Ah, it just needs to check for the existence of that table before spitting out the DELETE statement. Thanks for the report...

comment:2 Changed 8 years ago by adrian

#713 was a duplicate.

comment:3 Changed 8 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(In [1151]) Fixed #686 -- django-admin.py sqlreset and sqlclear no longer assume the admin app is installed.

comment:4 Changed 8 years ago by anonymous

  • Component changed from Admin interface to Generic views
  • priority changed from lowest to normal
  • Severity changed from trivial to major
  • Type changed from defect to enhancement
  • Version set to 0.9

Add Comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.