FAQ
#22647: redirect_field_name keyword argument for user_passes_test missing in
documentation
--------------------------------------+------------------------
      Reporter: valberg | Owner: nobody
          Type: Cleanup/optimization | Status: new
     Component: Documentation | Version: 1.7-beta-2
      Severity: Normal | Keywords:
  Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------
  When using the `user_passes_test` decorator to hinder access for non
  superusers, I got annoyed that I couldn't remove the '?next=' part of the
  URL, until I read the source code and saw that there is a mismatch between
  the source code and documentation. There is in fact an optional
  `redirect_field_name` argument for the `user_passes_test` decorator, and
  setting that to `None` removes that part of the URL.

--
Ticket URL: <https://code.djangoproject.com/ticket/22647>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscribe@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/050.03bd2bd070842a119dec8277deb27418%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

  • Django at May 17, 2014 at 10:09 am
    #22647: redirect_field_name keyword argument for user_passes_test missing in
    documentation
    -------------------------------------+-------------------------------------
          Reporter: valberg | Owner: valberg
              Type: | Status: assigned
       Cleanup/optimization | Version:
         Component: Documentation | 1.7-beta-2
          Severity: Normal | Resolution:
          Keywords: | Triage Stage:
         Has patch: 1 | Unreviewed
       Needs tests: 0 | Needs documentation: 0
    Easy pickings: 0 | Patch needs improvement: 0
    UI/UX: 0
    -------------------------------------+-------------------------------------
    Changes (by valberg):

      * status: new => assigned
      * needs_better_patch: => 0
      * owner: nobody => valberg
      * needs_tests: => 0
      * needs_docs: => 0


    Comment:

      Pull request here: https://github.com/django/django/pull/2675

    --
    Ticket URL: <https://code.djangoproject.com/ticket/22647#comment:1>
    Django <https://code.djangoproject.com/>
    The Web framework for perfectionists with deadlines.

    --
    You received this message because you are subscribed to the Google Groups "Django updates" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscribe@googlegroups.com.
    To post to this group, send email to django-updates@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.415d30f5cca3579379027b739b476153%40djangoproject.com.
    For more options, visit https://groups.google.com/d/optout.
  • Django at May 17, 2014 at 12:42 pm
    #22647: redirect_field_name keyword argument for user_passes_test missing in
    documentation
    -------------------------------------+-------------------------------------
          Reporter: valberg | Owner: timo
              Type: | Status: assigned
       Cleanup/optimization | Version:
         Component: Documentation | 1.7-beta-2
          Severity: Normal | Resolution:
          Keywords: | Triage Stage: Accepted
         Has patch: 1 | Needs documentation: 0
       Needs tests: 0 | Patch needs improvement: 0
    Easy pickings: 0 | UI/UX: 0
    -------------------------------------+-------------------------------------
    Changes (by timo):

      * owner: valberg => timo
      * stage: Unreviewed => Accepted


    Comment:

      Reviewing now.

    --
    Ticket URL: <https://code.djangoproject.com/ticket/22647#comment:2>
    Django <https://code.djangoproject.com/>
    The Web framework for perfectionists with deadlines.

    --
    You received this message because you are subscribed to the Google Groups "Django updates" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscribe@googlegroups.com.
    To post to this group, send email to django-updates@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.dcc6c1d1eab6b0982b823d925688600f%40djangoproject.com.
    For more options, visit https://groups.google.com/d/optout.
  • Django at May 17, 2014 at 1:46 pm
    #22647: redirect_field_name keyword argument for user_passes_test missing in
    documentation
    -------------------------------------+-------------------------------------
          Reporter: valberg | Owner: timo
              Type: | Status: closed
       Cleanup/optimization | Version:
         Component: Documentation | 1.7-beta-2
          Severity: Normal | Resolution: fixed
          Keywords: | Triage Stage: Accepted
         Has patch: 1 | Needs documentation: 0
       Needs tests: 0 | Patch needs improvement: 0
    Easy pickings: 0 | UI/UX: 0
    -------------------------------------+-------------------------------------
    Changes (by Tim Graham <timograham@…>):

      * status: assigned => closed
      * resolution: => fixed


    Comment:

      In [changeset:"268670a3a40aac87ed8c5570a97ed01aa0f2c0ab"]:
      {{{
      #!CommitTicketReference repository=""
      revision="268670a3a40aac87ed8c5570a97ed01aa0f2c0ab"
      Fixed #22647 -- Documented redirect_field_name keyword argument for
      user_passes_test.
      }}}

    --
    Ticket URL: <https://code.djangoproject.com/ticket/22647#comment:3>
    Django <https://code.djangoproject.com/>
    The Web framework for perfectionists with deadlines.

    --
    You received this message because you are subscribed to the Google Groups "Django updates" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscribe@googlegroups.com.
    To post to this group, send email to django-updates@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.2dcfacc5544bf403db470ad301e5cf56%40djangoproject.com.
    For more options, visit https://groups.google.com/d/optout.
  • Django at May 17, 2014 at 1:46 pm
    #22647: redirect_field_name keyword argument for user_passes_test missing in
    documentation
    -------------------------------------+-------------------------------------
          Reporter: valberg | Owner: timo
              Type: | Status: closed
       Cleanup/optimization | Version:
         Component: Documentation | 1.7-beta-2
          Severity: Normal | Resolution: fixed
          Keywords: | Triage Stage: Accepted
         Has patch: 1 | Needs documentation: 0
       Needs tests: 0 | Patch needs improvement: 0
    Easy pickings: 0 | UI/UX: 0
    -------------------------------------+-------------------------------------

    Comment (by Tim Graham <timograham@…>):

      In [changeset:"f3b082901774463319fbb6e918b0d846289620bf"]:
      {{{
      #!CommitTicketReference repository=""
      revision="f3b082901774463319fbb6e918b0d846289620bf"
      [1.6.x] Fixed #22647 -- Documented redirect_field_name keyword argument
      for user_passes_test.

      Backport of 268670a3a4 from master
      }}}

    --
    Ticket URL: <https://code.djangoproject.com/ticket/22647#comment:4>
    Django <https://code.djangoproject.com/>
    The Web framework for perfectionists with deadlines.

    --
    You received this message because you are subscribed to the Google Groups "Django updates" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscribe@googlegroups.com.
    To post to this group, send email to django-updates@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.253234b488af5a7db4a817fc7376bf6a%40djangoproject.com.
    For more options, visit https://groups.google.com/d/optout.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdjango-updates @
categoriesdjango, python
postedMay 17, '14 at 10:08a
activeMay 17, '14 at 1:46p
posts5
users1
websitedjangoproject.com

1 user in discussion

Django: 5 posts

People

Translate

site design / logo © 2018 Grokbase