Ticket #17907: invalid_setup_patch.diff

File invalid_setup_patch.diff, 769 bytes (added by Daniel Hepper, 13 years ago)
  • django/contrib/admin/options.py

     
    11341134            # parameter via the query string. If wacky parameters were given
    11351135            # and the 'invalid=1' parameter was already in the query string,
    11361136            # 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
    11381140            if ERROR_FLAG in request.GET.keys():
    11391141                return SimpleTemplateResponse('admin/invalid_setup.html', {
    11401142                    'title': _('Database error'),
Back to Top