- Fix missing `import json` in leads and opportunity views (runtime bugs) - Remove ~60 unused imports across 30+ files - Remove unused variables and dead code assignments - Convert f-string logging to lazy % formatting (41 instances) - Chain exceptions with `from exc` for proper tracebacks - Replace mutable default arguments with None guards - Fix invalid escape sequences, set comprehensions, f-strings - Remove unnecessary else/elif after return/raise/continue - Modernize: super() without args, remove object inheritance - Replace wildcard import with explicit imports in contacts/views - Fix wrong-import-position in invoices and auth views - Add noqa comments for intentional side-effect imports - Add encoding parameter to open() call - Fix renamed parameter in serializer validate override Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2 lines
93 B
Python
2 lines
93 B
Python
# Views package for common app
|
|
from .org_settings_views import OrgSettingsView # noqa: F401
|