Limited lines to 119 characters in django/{contrib,db}.

Refs #23395.

https://code.djangoproject.com/ticket/23395
please check flake8, I believe this is a warning because the line identation isn't distinguished from the next (fix by add 4 more spaces to this line)