#1419 closed defect (fixed)
[magic-removal] sqlclear tries to find app by field "package" of table "django_content_type"
| Reported by: | Owned by: | Adrian Holovaty | |
|---|---|---|---|
| Component: | Core (Management commands) | Version: | magic-removal |
| Severity: | normal | Keywords: | |
| Cc: | nesh@… | Triage Stage: | Unreviewed |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
The sqlclear procedure fails in [2434]:
$ manage.py sqlclear myapp
BEGIN;
Traceback (most recent call last):
File "/projectpath/manage.py", line 11, in ?
execute_manager(settings)
File "django/core/management.py", line 1264, in execute_manager
execute_from_command_line(action_mapping)
File "django/core/management.py", line 1232, in execute_from_command_line
output = action_mapping[action](mod)
File "django/core/management.py", line 311, in get_sql_delete
backend.quote_name('package')), [app_label])
File "django/db/backends/util.py", line 11, in execute
result = self.cursor.execute(sql, params)
psycopg.ProgrammingError: ERROR: column "package" does not exist
SELECT "id" FROM "django_content_type" WHERE "package" = 'myapp'
Change History (6)
comment:1 by , 20 years ago
comment:4 by , 20 years ago
I'm posting a temporary fix in #1418.
Permissions table don't work at all for now (see TODO comments in management.py)
comment:6 by , 20 years ago
Well, I fixed content type problem (and is integrated into trunk). Permissions will have to wait for now ;)
Note:
See TracTickets
for help on using tickets.
I already sent patch for this in #1418, please close.