Code

Opened 7 years ago

Closed 7 years ago

#4440 closed (fixed)

[oracle] Error when creating a new record using Admin interface

Reported by: pradeep.gowda@… Owned by: adrian
Component: contrib.admin Version: other branch
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: UI/UX:

Description

When I try to add a record using the admin interface, it fails with this error message.
I'm using Oracle XE on windows.

AttributeError at /admin/
'NoneType' object has no attribute 'empty_strings_allowed'
Request Method: GET 
Request URL: http://192.168.1.109:8080/admin/ 
Exception Type: AttributeError 
Exception Value: 'NoneType' object has no attribute 'empty_strings_allowed' 
Exception Location: c:\Python24\Lib\site-packages\django\db\backends\oracle\base.py in resolve_columns, line 473 

Template error
In template C:\Python24\lib\site-packages\django\contrib\admin\templates\admin/index.html, error at line 56

Caught an exception while rendering: 'NoneType' object has no attribute 'empty_strings_allowed'
46 </div>
 
47 {% endblock %}
 
48  
49 {% block sidebar %}
 
50 <div id="content-related">
 
51     <div class="module" id="recent-actions-module">
 
52         <h2>{% trans 'Recent Actions' %}</h2>
 
53         <h3>{% trans 'My Actions' %}</h3>
 
54             {% load log %}
 
55             {% get_admin_log 10 as admin_log for_user user %}
 
56             {% if not admin_log %}
 
57             <p>{% trans 'None available' %}</p>
 
58             {% else %}
 
59             <ul class="actionlist">
 
60             {% for entry in admin_log %}
 
61                 <li class="{% if entry.is_addition %}addlink{% endif %}{% if entry.is_change %}changelink{% endif %}{% if entry.is_deletion %}deletelink{% endif %}">{% if not entry.is_deletion %}<a href="{{ entry.get_admin_url }}">{% endif %}{{ entry.object_repr|escape }}{% if not entry.is_deletion %}</a>{% endif %}<br /><span class="mini quiet">{{ entry.content_type.name|capfirst|escape }}</span></li>
 
62             {% endfor %}
 
63             </ul>
 
64             {% endif %}
 
65     </div>
 
66 </div>

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by bouldersprinters

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

(In [5394]) boulder-oracle-sprint: Fixed #4440.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.