{{{
# inside the request.method == 'POST' and form.isValid() block:
opts = { ... }
if extra_context is not None:
opts.update(extra_context)
form.save(**opts)
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24944>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* component: Uncategorized => contrib.auth
* needs_tests: => 0
* needs_docs: => 0
* has_patch: 1 => 0
* stage: Unreviewed => Accepted
Comment:
I guess it's unlikely, but we'd have a small backwards compatibility issue
if someone is using `extra_context` with a key that clashes with one in
`opts`. For that reason, it might be better to use a separate parameter.
There is also the idea of converting these views to class-based views in
#17209 which might help here.
--
Ticket URL: <https://code.djangoproject.com/ticket/24944#comment:1>
* status: new => assigned
* cc: sujay.skumar141295@… (added)
* owner: nobody => SujaySKumar
--
Ticket URL: <https://code.djangoproject.com/ticket/24944#comment:2>
* status: assigned => closed
* needs_docs: 0 => 1
* has_patch: 0 => 1
* resolution: => fixed
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/24944#comment:3>
* status: closed => new
* resolution: fixed =>
Comment:
A ticket isn't marked fixed until the patch is committed to Django. Also
your patch is missing tests and documentation as outlined in our
[https://docs.djangoproject.com/en/dev/internals/contributing/writing-code
/submitting-patches/#patch-review-checklist patch review checklist]. Also
your patch has a problem if someone is using `extra_context` with a key
that clashes with one in `opts` as I mentioned in comment 1.
--
Ticket URL: <https://code.djangoproject.com/ticket/24944#comment:4>
* needs_tests: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/24944#comment:5>
Comment (by SujaySKumar):
Replying to [comment:4 timgraham]:
> A ticket isn't marked fixed until the patch is committed to Django. Also
your patch is missing tests and documentation as outlined in our
[https://docs.djangoproject.com/en/dev/internals/contributing/writing-code
/submitting-patches/#patch-review-checklist patch review checklist]. Also
your patch has a problem if someone is using `extra_context` with a key
that clashes with one in `opts` as I mentioned in comment 1.
I am new to contributing to open source. I am not able to understand where
to put the documentation for this new feature. I would be grateful if you
could point to the file in which I should add the documentation.
--
Ticket URL: <https://code.djangoproject.com/ticket/24944#comment:6>
Comment (by timgraham):
The password reset function is documented in
`docs/topics/auth/default.txt`.
--
Ticket URL: <https://code.djangoproject.com/ticket/24944#comment:7>
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/24944#comment:8>
* needs_docs: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/24944#comment:9>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/24944#comment:10>
* needs_tests: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/24944#comment:11>
* needs_better_patch: 0 => 1
Comment:
Left some trivial review comments. Tim also reviewed the pull request
yesterday.
--
Ticket URL: <https://code.djangoproject.com/ticket/24944#comment:12>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/24944#comment:13>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"d8d853378b3ff75c03d8bd91ea026d2b8c642b0f" d8d85337]:
{{{
#!CommitTicketReference repository=""
revision="d8d853378b3ff75c03d8bd91ea026d2b8c642b0f"
Fixed #24944 -- Added extra_email_context parameter to password_reset()
view.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24944#comment:14>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"aff61790a326f214f5ea608bac8298c3a8716b1b" aff61790]:
{{{
#!CommitTicketReference repository=""
revision="aff61790a326f214f5ea608bac8298c3a8716b1b"
Refs #24944 -- Added test for overriding domain in email context in
PasswordResetView.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24944#comment:15>