Skip to content

Commit

Permalink
add a stub for RedirectURLMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
si14 committed Aug 3, 2023
1 parent b5ec497 commit f2f949c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 9 additions & 0 deletions django-stubs/contrib/auth/views.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ from django.views.generic.edit import FormView

UserModel: Any

class RedirectURLMixin:
next_page: str | None
redirect_field_name: str
success_url_allowed_hosts: set[str]
def get_success_url(self) -> str: ...
def get_redirect_url(self) -> str: ...
def get_success_url_allowed_hosts(self) -> set[str]: ...
def get_default_redirect_url(self) -> str: ...

class SuccessURLAllowedHostsMixin:
success_url_allowed_hosts: Any
def get_success_url_allowed_hosts(self) -> set[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 @@ -255,7 +255,6 @@ django.contrib.auth.views.LogoutView.get_next_page
django.contrib.auth.views.PasswordChangeView.form_class
django.contrib.auth.views.PasswordResetConfirmView.form_class
django.contrib.auth.views.PasswordResetView.form_class
django.contrib.auth.views.RedirectURLMixin
django.contrib.auth.views.SuccessURLAllowedHostsMixin
django.contrib.contenttypes.admin.GenericInlineModelAdmin
django.contrib.contenttypes.admin.GenericInlineModelAdmin.ct_field
Expand Down

0 comments on commit f2f949c

Please sign in to comment.