Skip to content

🐛 UnboundLocalError: cannot access local variable 'CustomerDeveloperAssignment' where it is not assoc #11

@glind

Description

@glind

Error Details

Error Type: UnboundLocalError
Error Message: cannot access local variable 'CustomerDeveloperAssignment' where it is not associated with a value

Occurrence Details

URL: /onboarding/admin/developers/16/
Method: GET
User: admin
Timestamp: 2025-12-30T16:59:57.278565

Traceback

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
    return view_func(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/onboarding/views.py", line 2140, in admin_developer_profile
    assignments = CustomerDeveloperAssignment.objects.filter(
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'CustomerDeveloperAssignment' where it is not associated with a value

This issue was automatically created by the error handler middleware.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions