#686 closed enhancement (fixed)
sqlreset references django_admin_log
| Reported by: | 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 , 20 years ago
comment:3 by , 20 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:4 by , 19 years ago
| Component: | Admin interface → Generic views |
|---|---|
| priority: | lowest → normal |
| Severity: | trivial → major |
| Type: | defect → enhancement |
| Version: | → 0.9 |
Note:
See TracTickets
for help on using tickets.
Ah, it just needs to check for the existence of that table before spitting out the DELETE statement. Thanks for the report...