Opened 9 years ago

Closed 9 years ago

Last modified 9 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
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: UI/UX:

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 Changed 9 years ago by Nebojsa Djordjevic <nesh at studioquattro dot co dot yu>

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

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

  • Cc nesh@… added

Check if my solution works for you first :)

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

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

comment:4 Changed 9 years ago by Nebojsa Djordjevic <nesh at studioquattro dot co dot yu>

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 Changed 9 years ago by akaihola

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

So should this now be closed?

comment:6 Changed 9 years ago by Nebojsa Djordjevic <nesh at studioquattro dot co dot yu>

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