﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
20745	Document the template language's silencing of TypeError	Robin	Baptiste Mispelon <bmispelon@…>	"Say I create '''myapp/admin.py''' which contains:


{{{
from django.contrib import admin
from myapp.models import MyModel

class MyModelAdmin(admin.ModelAdmin):
    
    list_display = ('pk','abc')

    def abc(self, user):
        return 999+None

admin.site.register(MyModel, MyModelAdmin)
}}}

Then when you visit http://localhost:8000/admin/myapp/mymodel/ a '''TypeError''' will raise because you cannot add 999 and None together. This is the '''expected outcome'''.

However if I add '''templates/admin/myapp/mymodel/change_list.html''' which contains:

{{{
{% extends ""admin/change_list.html"" %}

{% block content %}
    {{ block.super }}
{% endblock %}

}}}

The '''TypeError will not appear''' and the page renders but without any content, which is '''not the expected outcome'''.

This ticket seems similar to https://code.djangoproject.com/ticket/18169"	Bug	closed	Template system	1.5	Normal	fixed		bmispelon@…	Ready for checkin	1	0	0	0	0	0
