error loading /add_extension/

Bug #645320 reported by Riccardo Magliocchetti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
WikiPBX
Fix Committed
Low
Stas Shtin

Bug Description

This is wikipbx trunk. I have only an endpoint with an extension added with wikipbx.

IIndexError at /add_extension/

list index out of range

Request Method: GET
Request URL: http://127.0.0.1:8000/add_extension/
Django Version: 1.2.1
Exception Type: IndexError
Exception Value:

list index out of range

The problem is at views.py:195 models.ActionTemplate.objects.all()[0] where models.ActionTemplate.objects.all() is empty.

Revision history for this message
Stas Shtin (stas.shtin) wrote :

You should run "./manage.py loaddata extension_actions.json" . It's not in documentation because it hasn't been updated for trunk changes yet.

I'll change wikiPBX to give a more meaningful error message soon.

Revision history for this message
Stas Shtin (stas.shtin) wrote :

Updated wikiPBX to handle such cases.

Changed in wikipbx:
assignee: nobody → Stas Shtin (stas.shtin)
importance: Undecided → Low
milestone: none → 0.9.0
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.