Skip to content

Commit

Permalink
[3.15] Add optional_logout csrt_token argument (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeHyuckSa authored Apr 16, 2024
1 parent d9d6fd8 commit 166da73
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion rest_framework-stubs/templatetags/rest_framework.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def render_form(serializer: Any, template_pack: Any | None = ...) -> Incomplete:
def render_field(field: Any, style: Any) -> Incomplete: ...
def optional_login(request: Request) -> Incomplete: ...
def optional_docs_login(request: Request) -> Incomplete: ...
def optional_logout(request: Request, user: AnonymousUser | AbstractBaseUser) -> Incomplete: ...
def optional_logout(request: Request, user: AnonymousUser | AbstractBaseUser, csrf_token: str) -> Incomplete: ...
def add_query_param(request: Request, key: str, val: Any) -> Incomplete: ...
def as_string(value: Any) -> str: ...
def as_list_of_strings(value: Any) -> list[str]: ...
Expand Down
1 change: 0 additions & 1 deletion scripts/stubtest/allowlist_todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,4 @@ rest_framework.views.GenericView
rest_framework.filters.search_smart_split
rest_framework.serializers.ListSerializer.run_child_validation
rest_framework.serializers.ModelSerializer.get_unique_together_constraints
rest_framework.templatetags.rest_framework.optional_logout
rest_framework.utils.field_mapping.get_unique_validators

0 comments on commit 166da73

Please sign in to comment.