Opened 11 years ago

Closed 11 years ago

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

Change History (4)

comment:1 Changed 11 years ago by Adrian Holovaty

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 11 years ago by Adrian Holovaty

#713 was a duplicate.

comment:3 Changed 11 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

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

comment:4 Changed 10 years ago by anonymous

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