DISALLOWED_USER_AGENTS is a list of compiled regular expression objects not a list of strings
|Reported by:||Simon Blanchard||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
https://docs.djangoproject.com/en/dev/ref/middleware/ says "Forbids access to user agents in the DISALLOWED_USER_AGENTS setting, which should be a list of strings."
But it's actually expected to be a list of compiled regex objects as stated in the settings docs https://docs.djangoproject.com/en/1.5/ref/settings/#disallowed-user-agents