Opened 18 years ago
Closed 18 years ago
#3330 closed (invalid)
importing newforms in shell throws AttributeError on URL_VALIDATOR_USER_AGENT
Reported by: | Fred | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | Forms | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In newforms/fields.py line 275 and on a check is done on the existence of URL_VALIDATOR_USER_AGENT with an exception handler on ImportError. But if you import newsforms on the shell (manage.py shell), an dAttributeError is thrown instead of an ImportError.
suggested fix: add AttributeError to the exception handler in newforms/fields.py linke 278
Note:
See TracTickets
for help on using tickets.
Never mind. Somehow my svn checkout and install-dir got out of sync and an old global_settings.py and possibly other files weren't updated.