Hi,

Using today's newform-admin (rev 6098) I consistently get the below  
exception, even with a brand new project initialized with ./manage  
syncdb, including a superuser. List page shows User, detail page  
creates exception.

Hadn't tried this in a while so I am not sure if it has been there a  
bit longer. My own tables produce this message when I forget to  
change 'fields' into 'fieldsets' in the Admin class.

Thanks,
Rob


KeyError at /admin/auth/user/1/
'Key None not found in Form'

Request Method:
GET
Request URL:
http://localhost:8000/admin/auth/user/1/
Exception Type:
KeyError
Exception Value:
'Key None not found in Form'
Exception Location:
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- 
packages/django/newforms/forms.py in __getitem__, line 93
Python Executable:
/Library/Frameworks/Python.framework/Versions/2.5/Resources/ 
Python.app/Contents/MacOS/Python
Python Version:
2.5.1
Template error

In template /Library/Frameworks/Python.framework/Versions/Current/lib/ 
python2.5/site-packages/django/contrib/admin/templates/admin/ 
change_form.html, error at line 43
Caught an exception while rendering: 'Key None not found in Form'

33
<form {% if has_file_field %}enctype="multipart/form-data" {% endif %} 
action="{{ form_url }}" method="post" id="{{ opts.module_name }} 
_form">{% block form_top %}{% endblock %}
34
<div>
35
{% if is_popup %}<input type="hidden" name="_popup" value="1" />{%  
endif %}
36
{% if save_on_top %}{% submit_row %}{% endif %}
37
{% if adminform.form.errors %}
38
     <p class="errornote">
39
     {% blocktrans count adminform.form.errors.items|length as  
counter %}Please correct the error below.{% plural %}Please correct  
the errors below.{% endblocktrans %}
40
     </p>
41
{% endif %}
42

43
{% for fieldset in adminform %}
44
     <fieldset class="module aligned {{ fieldset.classes }}">
45
     {% if fieldset.name %}<h2>{{ fieldset.name }}</h2>{% endif %}
46
     {% if fieldset.description %}<div class="description"> 
{{ fieldset.description }}</div>{% endif %}
47
     {% for line in fieldset %}
48
         <div class="form-row{% if line.errors %} errors{% endif %}">
49
         {{ line.errors }}
50
         {% for field in line %}
51
             {% if field.is_checkbox %}
52
                 {{ field.field }}{{ field.label_tag }}
53
             {% else %}


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to