fix: add missing imports and routes for password setup flow
- Added get_user_model import in accounts/views.py - Fixed User variable scope in password_setup_confirm view - Added accounts URLs to urls_public.py for password setup on main domain - Password setup link now accessible from public schema Technical details: - get_user_model() needed to be imported from django.contrib.auth - User model reference moved outside try block to fix UnboundLocalError - accounts.urls included in public URLconf for /accounts/setup-password/ route 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -14,6 +14,7 @@ from django.conf.urls.static import static
|
||||
urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
path('', include('tenants.urls')), # Роуты для регистрации тенантов (/, /register/, /register/success/)
|
||||
path('accounts/', include('accounts.urls')), # Роуты для установки пароля владельцами тенантов
|
||||
]
|
||||
|
||||
# Serve media files in development
|
||||
|
||||
Reference in New Issue
Block a user