Skip to content

Only pass tenant to forms that explicitly declare a tenant parameter#1

Closed
ewilhelm1979-netizen wants to merge 1 commit into
mainfrom
codex/update-git-login-credentials
Closed

Only pass tenant to forms that explicitly declare a tenant parameter#1
ewilhelm1979-netizen wants to merge 1 commit into
mainfrom
codex/update-git-login-credentials

Conversation

@ewilhelm1979-netizen

Copy link
Copy Markdown
Owner

Motivation

  • Prevent passing a tenant keyword to form classes that only accept **kwargs, so tenant is only provided when the form explicitly declares a tenant parameter.

Description

  • Update get_form_kwargs to set accepts_tenant using only 'tenant' in init_signature.parameters, removing the previous inspect.Parameter.VAR_KEYWORD check so tenant is supplied only for forms with an explicit tenant parameter.

Testing

  • Ran the project test suite with pytest and all tests passed.

Codex Task

@ewilhelm1979-netizen ewilhelm1979-netizen deleted the codex/update-git-login-credentials branch April 18, 2026 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant