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
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:


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

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

#713 was a duplicate.

comment:3 Changed 11 years ago by adrian

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

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

comment:4 Changed 10 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
Note: See TracTickets for help on using tickets.
Back to Top