Ticket #17907: invalid_setup_patch.diff
File invalid_setup_patch.diff, 769 bytes (added by , 13 years ago) |
---|
-
django/contrib/admin/options.py
1134 1134 # parameter via the query string. If wacky parameters were given 1135 1135 # and the 'invalid=1' parameter was already in the query string, 1136 1136 # something is screwed up with the database, so display an error 1137 # page. 1137 # page if settings.DEBUG is False. 1138 if settings.DEBUG: 1139 raise 1138 1140 if ERROR_FLAG in request.GET.keys(): 1139 1141 return SimpleTemplateResponse('admin/invalid_setup.html', { 1140 1142 'title': _('Database error'),