Opened 19 years ago

Closed 19 years ago

Last modified 19 years ago

#1419 closed defect (fixed)

[magic-removal] sqlclear tries to find app by field "package" of table "django_content_type"

Reported by: akaihola <antti.kaihola@…> 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 Nebojsa Djordjevic <nesh at studioquattro dot co dot yu>, 19 years ago

I already sent patch for this in #1418, please close.

comment:2 by Nebojsa Djordjevic <nesh at studioquattro dot co dot yu>, 19 years ago

Cc: nesh@… added

Check if my solution works for you first :)

comment:3 by Nebojsa Djordjevic <nesh at studioquattro dot co dot yu>, 19 years ago

Oooops, there is more stuff wrong there, I'll try to send fix shortly

comment:4 by Nebojsa Djordjevic <nesh at studioquattro dot co dot yu>, 19 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:5 by Antti Kaihola, 19 years ago

Resolution: fixed
Status: newclosed

So should this now be closed?

comment:6 by Nebojsa Djordjevic <nesh at studioquattro dot co dot yu>, 19 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.
Back to Top