django-cms + django-debug-toolbar == broken admin interface #1757

Closed
egut opened this Issue May 1, 2013 · 7 comments

Projects

None yet

4 participants

@egut

Hi

I just noticed that if you have django-debug-toolbar enabled in the admin interface a couple of bad thing happens:

1; Duplicated pages will be created every time
2; In the list page http://localhost:8000/en/admin/cms/page/ buttons for pushing to menu and so stops working.

I did a quick search but didn't find any about this...

$  pip freeze
Django==1.5.1
Mako==0.7.3
MarkupSafe==0.15
PAM==0.4.2
Pillow==2.0.0
South==0.7.6
Twisted-Core==12.3.0
Twisted-Names==12.3.0
Twisted-Web==12.3.0
adium-theme-ubuntu==0.3.3
apt-xapian-index==0.45
argparse==1.2.1
chardet==2.0.1
cmsplugin-filer==0.9.5
configglue==1.0
debtagshw==0.1
defer==1.0.6
dirspec==4.2.0
distribute==0.6.34
django-classy-tags==0.4
django-cms==2.4.1
django-debug-toolbar==0.9.4
django-extensions==1.1.1
django-filer==0.9.4
django-mptt==0.5.2
django-polymorphic==0.4.2
django-reversion==1.7
django-sekizai==0.7
duplicity==0.6.21
easy-thumbnails==1.2
html5lib==0.95
httplib2==0.7.7
jockey==0.9.7
lxml==3.1.0
oauthlib==0.3.7
oneconf==0.3.3
pexpect==2.4
piston-mini-client==0.7.5
protobuf==2.4.1
pyOpenSSL==0.13
pycrypto==2.6
pycups==1.9.62
pycurl==7.19.0
pygobject==3.8.0
pyinotify==0.9.3
pyserial==2.6
pysmbc==1.0.13
python-apt==0.8.8ubuntu6
python-debian==0.1.21-nmu2ubuntu1
pyxdg==0.25
reportlab==2.6
rhythmbox-ubuntuone==4.2.0
screen-resolution-extra==0.0.0
sessioninstaller==0.0.0
six==1.2.0
software-center-aptd-plugins==0.0.0
system-service==0.1.6
ubuntuone-storage-protocol==4.2.0
unity-lens-photos==0.9
wsgiref==0.1.2
xdiagnose==3.5
xkit==0.0.0
zope.interface==4.0.5
@digi604
Divio AG member

what do you mean by: buttons for pushing to menu and so stops working?
In 2.4.x we have a new feature publisher.... it creates 2 version of a page: draft and public. Do you see this 2 pages in the tree as well or only in the DB?

@erikgunther

Oh I was not very clear was I, sorry about that.

New page
First enable debug-toolbar

  1. Create new page (by pressing 'add page').
  2. Fill in the name and maybe the slug.
  3. Save.

Now if you look in the list view of all pages I see two pages with the same name and they have different ID:s
If I try to open one of them and do save again it complain that this page slug already exists.

If I do the same thing with out debug-toolbar enabled everything works as advertised. Only one page is being created.

The buttons in page list view
Have one page created and published but not in menu and enable debug-toolbar.

  1. Click on the checkbox for show in menu.
  2. Click on the publish icon.

Now the checkbox is not filled in any longer and the page isn't showing in the menu. The same gose for other buttons in the page-list-view when debug-toolbar is enabled.

Disabling debug-toolbar and everything works as advertised.

Note that I still run this with sqlite3 and not mysql just jet.

Hope that was a bit clearer

/BR Erik

@digi604
Divio AG member

Mmmh this is strange... maybe debugtoolbar messes with the signals...

@digi604
Divio AG member

is this still an issue?

@digi604 digi604 added this to the Some Day milestone Feb 10, 2014
@yakky

This should have been fixed (and documented)
Ping @erikgunther

@egut
@yakky

No longer relevant

@yakky yakky closed this Jul 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment