Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#686 closed enhancement (fixed)

sqlreset references django_admin_log

Reported by: davidschein@… Owned by: Adrian Holovaty
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: no UI/UX: no

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.

Change History (4)

comment:1 by Adrian Holovaty, 19 years ago

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

comment:2 by Adrian Holovaty, 19 years ago

#713 was a duplicate.

comment:3 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: newclosed

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

comment:4 by anonymous, 18 years ago

Component: Admin interfaceGeneric views
priority: lowestnormal
Severity: trivialmajor
Type: defectenhancement
Version: 0.9
Note: See TracTickets for help on using tickets.
Back to Top