Re: [Django] #6903: Go back to old change_list view after hitting save

2020-07-02 Thread Django
#6903: Go back to old change_list view after hitting save
-+-
 Reporter:   |Owner:  Tomek
 |  Paczkowski
 Type:  New feature  |   Status:  closed
Component:  contrib.admin|  Version:  master
 Severity:  Normal   |   Resolution:  fixed
 Keywords:  admin| Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  1
-+-

Comment (by Mariusz Felisiak ):

 In [changeset:"9e4f55757dcdb171c515d65a4d8e9ff5dc33a8f8" 9e4f5575]:
 {{{
 #!CommitTicketReference repository=""
 revision="9e4f55757dcdb171c515d65a4d8e9ff5dc33a8f8"
 [3.0.x] Refs #6903 -- Adjusted ModelAdmin.preserve_filters docs.

 Backport of b142bd4a1b83b77c5c81a8cf5a80a63608f96ad4 from master
 }}}

-- 
Ticket URL: 
Django 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.9a8445914d42b9994d490e103bf2b796%40djangoproject.com.


Re: [Django] #6903: Go back to old change_list view after hitting save

2020-07-02 Thread Django
#6903: Go back to old change_list view after hitting save
-+-
 Reporter:   |Owner:  Tomek
 |  Paczkowski
 Type:  New feature  |   Status:  closed
Component:  contrib.admin|  Version:  master
 Severity:  Normal   |   Resolution:  fixed
 Keywords:  admin| Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  1
-+-

Comment (by Mariusz Felisiak ):

 In [changeset:"268ba2db8e0b94359f19c3f387a2af701154" 268ba2d]:
 {{{
 #!CommitTicketReference repository=""
 revision="268ba2db8e0b94359f19c3f387a2af701154"
 [3.1.x] Refs #6903 -- Adjusted ModelAdmin.preserve_filters docs.

 Backport of b142bd4a1b83b77c5c81a8cf5a80a63608f96ad4 from master
 }}}

-- 
Ticket URL: 
Django 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.b537be49112a3f7c4f1bc0751aa78158%40djangoproject.com.


Re: [Django] #6903: Go back to old change_list view after hitting save

2020-07-02 Thread Django
#6903: Go back to old change_list view after hitting save
-+-
 Reporter:   |Owner:  Tomek
 |  Paczkowski
 Type:  New feature  |   Status:  closed
Component:  contrib.admin|  Version:  master
 Severity:  Normal   |   Resolution:  fixed
 Keywords:  admin| Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  1
-+-

Comment (by Mariusz Felisiak ):

 In [changeset:"b142bd4a1b83b77c5c81a8cf5a80a63608f96ad4" b142bd4a]:
 {{{
 #!CommitTicketReference repository=""
 revision="b142bd4a1b83b77c5c81a8cf5a80a63608f96ad4"
 Refs #6903 -- Adjusted ModelAdmin.preserve_filters docs.
 }}}

-- 
Ticket URL: 
Django 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.5a005924dedf16d2fcc7cef5c6a254f4%40djangoproject.com.


Re: [Django] #6903: Go back to old change_list view after hitting save

2014-03-31 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:  oinopion
 Type:  New feature|   Status:  closed
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:  fixed
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by Tim Graham ):

 In [changeset:"a5297c1ef4c4c010d1eb979177d4633beb5f9cad"]:
 {{{
 #!CommitTicketReference repository=""
 revision="a5297c1ef4c4c010d1eb979177d4633beb5f9cad"
 [1.6.x] Fixed #21795 -- Made add_preserved_filters account for url
 prefixes.

 Thanks to trac username honyczek for the report. Refs #6903.

 Backport of 4339e9a92d from master
 }}}

-- 
Ticket URL: 
Django 
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+unsubscr...@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/064.ede8c4d88c0b2b8fee07db256110d4f0%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #6903: Go back to old change_list view after hitting save

2014-03-31 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:  oinopion
 Type:  New feature|   Status:  closed
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:  fixed
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by Tim Graham ):

 In [changeset:"5268d71f18d12c362d74010210309c1cec8e8a1a"]:
 {{{
 #!CommitTicketReference repository=""
 revision="5268d71f18d12c362d74010210309c1cec8e8a1a"
 [1.7.x] Fixed #21795 -- Made add_preserved_filters account for url
 prefixes.

 Thanks to trac username honyczek for the report. Refs #6903.

 Backport of 4339e9a92d from master
 }}}

-- 
Ticket URL: 
Django 
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+unsubscr...@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/064.0d6c26f3757a7e5c68001e12b8acbc7d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #6903: Go back to old change_list view after hitting save

2014-03-31 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:  oinopion
 Type:  New feature|   Status:  closed
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:  fixed
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by Tim Graham ):

 In [changeset:"4339e9a92d98371a50a6fe54ab7ea0c602ecee28"]:
 {{{
 #!CommitTicketReference repository=""
 revision="4339e9a92d98371a50a6fe54ab7ea0c602ecee28"
 Fixed #21795 -- Made add_preserved_filters account for url prefixes.

 Thanks to trac username honyczek for the report. Refs #6903.
 }}}

-- 
Ticket URL: 
Django 
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+unsubscr...@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/064.82161588ee5b11ab7f7d6ee2fe2319df%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #6903: Go back to old change_list view after hitting save

2013-11-29 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:  oinopion
 Type:  New feature|   Status:  closed
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:  fixed
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+
Changes (by honyczek):

 * cc: honyczek@… (added)


Comment:

 have your tried it on productional web server? It doesn't work for me at
 Apache/2.2.22 (Linux/SUSE) mod_ssl/2.2.22 OpenSSL/1.0.1e mod_wsgi/3.3
 Python/2.7.3

 If I try run the same code on the server on Django development web server
 (port 8000), filtering is preserved. If I run it on Apache and WSGI, it
 doesn't work.

-- 
Ticket URL: 
Django 
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+unsubscr...@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/064.8b56dd7229ef81bf32643b224be72321%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #6903: Go back to old change_list view after hitting save

2013-06-19 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:  oinopion
 Type:  New feature|   Status:  closed
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:  fixed
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+
Changes (by timo):

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


-- 
Ticket URL: 
Django 
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+unsubscr...@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/064.748b1d3bf8fe18afa065387b22ba7e8e%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-06-19 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:  oinopion
 Type:  New feature|   Status:  assigned
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by revolunet):

 woot ! thanks guys

-- 
Ticket URL: 
Django 
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+unsubscr...@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/064.590bbc9446f5baa7b24377db174e026f%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-06-19 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:  oinopion
 Type:  New feature|   Status:  assigned
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by aaugustin):

 Fixed in c86a9b63984f6692d478f6f70e3c78de4ec41814.

-- 
Ticket URL: 
Django 
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+unsubscr...@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/064.350e93dadba235de7c2a8f311b41fdad%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-06-18 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:  oinopion
 Type:  New feature|   Status:  assigned
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by loic84):

 PR https://github.com/django/django/pull/1281

 I eventually replaced "sticky" by "preserve/preserved".

-- 
Ticket URL: 
Django 
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+unsubscr...@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/064.a364c8753516ab94e5550570de1e6f3f%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-06-18 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:  oinopion
 Type:  New feature|   Status:  assigned
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by charettes):

 @loic84 FWIW model fields can't start with an underscore anyway.

-- 
Ticket URL: 
Django 
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+unsubscr...@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/064.6b6e75befb7f94890897f1abe5ed4091%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-06-18 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:  oinopion
 Type:  New feature|   Status:  assigned
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by loic84):

 Alright, it seems we reached some consensus, hopefully we'll have a RFC
 patch by today.

 I'm not particularly attached to the `sticky_filters` wording. At first I
 went with `changelist_filters` as spotted in a different patch, but then I
 thought that would create confusion with the existing
 `ModelAdmin.list_filter`. If we find a better name, I'll query-replace the
 whole thing. Note that the user facing string (in the URL) is
 `_changelist_filters`, the underscore is there as a precaution but I guess
 it's unlikely people would have a model field named "changelist_filters".

 For the breadcrumbs, I'm leaving it as it is and I'll see after a couple
 more people have chipped in, when the patch is complete, I'll do whatever
 is more popular.

-- 
Ticket URL: 
Django 
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+unsubscr...@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/064.527ea6283710f0d4387f495b5eb984af%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-06-17 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:  oinopion
 Type:  New feature|   Status:  assigned
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by revolunet):

 The querystring approach has the advantages of being explicit and allow to
 have multi-tabs/windows in different states.

 Having the breadcrumbs use the QS is optional but i thing it adds some
 comfort for the user (let's get back to where i were)

-- 
Ticket URL: 
Django 
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+unsubscr...@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/064.773c5e4fe1da3939b2bcf6245ae621db%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-06-17 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:  oinopion
 Type:  New feature|   Status:  assigned
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by empty):

 Four years ago I started using the querystring approach to this problem
 and it has worked flawlessly. I'm not sure why there's such consternation
 over the query string parameters in the URL. It's actually quite useful
 (for sending to a friend) and the exact same behavior you would get with
 regular filtering of the change list.

 I understand the desire to get the "perfect" implementation here but
 sometimes "great" is the enemy of "good enough". Perhaps we can get some
 resolution by going forward with the querystring approach. It's not as
 though anything is lost by implementing this.

-- 
Ticket URL: 
Django 
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+unsubscr...@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/064.8c955d5f878c2cc2f19c9f4e373abe4a%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-06-17 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:  oinopion
 Type:  New feature|   Status:  assigned
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+
Changes (by charettes):

 * cc: charettes (added)


Comment:

 I also think the querystring is the more appropriate approach, not sure
 about the `sticky_filters` wording thought.

 I'd say leave the breadcrumbs as they are.

-- 
Ticket URL: 
Django 
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+unsubscr...@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/064.c3a0eec9dcd4fdc0f5875bbe3ad1182e%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-06-17 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:  oinopion
 Type:  New feature|   Status:  assigned
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by loic84):

 I've tried to sum up the different options that have been used so far in
 this ticket.

 '''The problem:'''

 We need the sticky filters to survive an arbitrarily long path made of
 GET, POST, and Redirects.

 '''The options:'''

 The only 2 *consistent* ways of doing it are the querystring and the
 session. There is a third option that involve reading the referrer and
 storing information in a hidden field, but at least for redirects and html
 links we need a fallback method.

 There is no perfect solution:
 - If we pick the querystring, we add a lot of things to the URLs.
 - If we pick the session, we lose the direct link between the
 `change_list` that started the chain of events and the one to which we
 return. (as explained in comment:71)
 - If we pick an hybrid solution, we lack consistency and we still suffer
 from the defects of whatever we use as a fallback.

 For the issue at hand I value predictably and reliability much more than
 the aesthetic of the URL, especially for an admin site. So I'd like to
 suggest using the querystring and offering an option to switch off the
 behavior: `ModelAdmin.sticky_filters`. The developer gets to pick, he can
 have prestine URLs or a robust preservation of changelist filters, not
 both. If we go with that, we'll have to decide what's the default value of
 the `sticky_filters` flag.

 Proof of concept: https://github.com/loic/django/compare/ticket6903

 I tested it manually and I have yet to fail it, I'll write the docs and
 tests tomorrow.

 Unlike previous attempts at using the querystring, it relies on a
 templatetag that accounts for existing querystring parameters.

 I've also left out the breadcrumbs, as I like that they point to a fresh
 `change_list`, but that's debatable, I can easily add them.

 Thoughts?

-- 
Ticket URL: 
Django 
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+unsubscr...@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/064.0844b3e98a9863fe14b615e26e2410ad%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-06-15 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:  oinopion
 Type:  New feature|   Status:  assigned
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+
Changes (by loic84):

 * needs_better_patch:  0 => 1


Comment:

 I looked further into it, I pass on the delete link as there is no easy
 way to POST to the delete URL because `submit_line.html` is included
 within a form, and you can't have a form within a form. Fixing it requires
 a refactor too big to be within the scope of this ticket.

 That said, the patch and the tests only cover the basic scenarios:
 - `change_list > add_view > save`
 - `change_list > change_view > save`
 - `change_list > delete_view > save`

 You are out of luck if you do:
 - `change_list > change_view  (Save and continue editing) > change_view >
 save`
 - `change_list > change_view (Save and add another) > add_view > save`

 The reason we lose track of filters is that `_continue`, `_saveasnew` and
 `_addanother` rely on `HttpResponseRedirect` so we have to use the
 querystring for such cases.

 At this point I agree with @empty, I'd vote to use querystring everywhere,
 the URL is not that ugly and if anything, it gives some context of where
 you came from. If you want to keep the pretty URLs where possible, just
 append the querystring to these `HttpResponseRedirect` and allow
 `_changelist_filters` to come from either POST or GET.

-- 
Ticket URL: 
Django 
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+unsubscr...@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/064.2dc0a238bace35e5ee0829ec7ba13f2c%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-06-14 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:  oinopion
 Type:  New feature|   Status:  assigned
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  1
---+

Comment (by anonymous):

 Can we please not bikeshed about delete link?  It does not bring us any
 closer to closing this 5 years old ticket.

-- 
Ticket URL: 
Django 
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+unsubscr...@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/064.e192f009f4265125ee8111fe49f247af%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-06-14 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:  oinopion
 Type:  New feature|   Status:  assigned
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  1
---+

Comment (by loic84):

 Somehow I missed the updates for that ticket and just saw oinopion's PR on
 github.

 I really like the patch, except that I would have taken this opportunity
 to turn the delete link into a delete button.

 1. It's more in line with the HTTP spec where GET should be free of side
 effects. (We do have a confirmation page, but that's an implementation
 detail.)
 2. It's consistant with the `change_list` delete action, and the rest of
 the `change_view` actions.
 4. It avoids special casing the delete link in this patch.
 5. Less importantly, it avoids an ugly URL for the delete confirmation
 page.

 That said, this could be changed later in a different patch/ticket but I
 doubt such a minor cleanup would get much attention on its own.

-- 
Ticket URL: 
Django 
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+unsubscr...@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/064.df9b9e64fde44f423446fa0d167deb9a%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-06-12 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:  oinopion
 Type:  New feature|   Status:  assigned
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  1
---+
Changes (by oinopion):

 * needs_docs:  1 => 0


Comment:

 I'm not really sure what kind of documentation this would need: Functional
 details of admin are not documented. Release notes might be a good place,
 but should I put it in 1.6?

-- 
Ticket URL: 
Django 
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+unsubscr...@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/064.8361a12af60e60b88f5e23392f393f8f%40djangoproject.com?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-06-12 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:  oinopion
 Type:  New feature|   Status:  assigned
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  1
---+
Changes (by oinopion):

 * needs_better_patch:  1 => 0


-- 
Ticket URL: 
Django 
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+unsubscr...@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/064.be368a1f8f52d5dba86fde87e526d1a1%40djangoproject.com?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-06-12 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:  oinopion
 Type:  New feature|   Status:  assigned
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by oinopion):

 I've submitted [https://github.com/django/django/pull/1264 pull request]
 from previous ticket with some small corrections.

-- 
Ticket URL: 
Django 
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+unsubscr...@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/064.04bb6eebe245d56e6aa314b3590f707a%40djangoproject.com?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-06-11 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:  oinopion
 Type:  New feature|   Status:  assigned
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+
Changes (by oinopion):

 * owner:   => oinopion
 * cc: tomek@… (added)
 * status:  new => assigned


Comment:

 I've updated older patch by julien. It was missing passing filters to
 delete view. It is still missing some `is_safe_url` checks.

-- 
Ticket URL: 
Django 
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+unsubscr...@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/064.3483b9de3e280d4dbad1d4b25b85ac26%40djangoproject.com?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-03-18 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by empty):

 The original querystring approach has worked fine for us for years. Are we
 over thinking the approach on this? I'd really like to see this get in.
 It's sort of a non starter for a lot of our clients.

-- 
Ticket URL: 
Django 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-03-18 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by julien):

 Using the http referer us a good idea. I've just posted a quick proof of
 concept (I haven't tested this manually yet).

-- 
Ticket URL: 
Django 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-03-18 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by loic84):

 @julien: when the user goes from `changelist_view` to `change_view` you
 can retrieve the querystring from HTTP_REFERER.

 The only time where you might need an ugly URL is for the delete link, but
 I think we should POST (instead of GET) to the `delete_view` anyway, just
 like we do for the delete action.

-- 
Ticket URL: 
Django 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-03-18 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by julien):

 While I like the idea of a hidden field in the change form, we still need
 a way of passing the filters from the changelist to the change form when
 an object is clicked in the changelist. Passing the filters via the
 querystring would look a bit ugly and would kind of defeat the purpose of
 using a hidden field.

 Ideally, I'd like a way that doesn't clutter the urls and also satisfies
 the principle of least surprise :)

 Sorry I haven't had much time to think all of this through yet. Please
 don't let this deter you from working on this patch. I'll continue to
 provide feedback whenever needed. Thanks!

-- 
Ticket URL: 
Django 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-02-28 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by revolunet):

 Wow. There are 12 patches in this page, made by various people, and the
 desired implementation is still not defined.
 This feature may not be a priority, even if more than 3 years old, but
 would be cool if the core team could agree on the implementation so we can
 try again and kill that one ;)
 Anyone here going at djangocon.eu and interested in fixing that with me ?

-- 
Ticket URL: 
Django 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-02-28 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by julien):

 @loic84: I agree with these concerns. I'd like to avoid cluttering the
 urls so a hidden field sounds like a sane approach.

 This means the match needs to be reworked further. The tests should also
 be extended to simulate a multi-tab use case. If someone can propose a
 patch that would be great, otherwise I'll try to work on it at Pycon.

-- 
Ticket URL: 
Django 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-02-28 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+
Changes (by kraken):

 * cc: kraken (added)


-- 
Ticket URL: 
Django 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-02-26 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by loic84):

 I'd like to voice my concern regarding this approach. We typically deal
 with the admin using multiple tabs and with this patch the redirect
 becomes rather unpredictable.

 I'd love a solution for persistent `ChangeList` filters since the current
 behavior forces us to set all our filters repeatedly but at least what is
 happening is obvious. It's extremely confusing to land on an empty
 `ChangeList` upon saving because in parallel you checked something in a
 different tab and set a restrictive bunch of filters.

 There ought to be a direct connection between the `ChangeList` that led to
 a add/change form and the `ChangeList` it redirects to.

 Maybe a hidden form field and a querystring parameter for the delete link?
 Actually semantically it would even make sense that the delete link be
 changed to a delete form with a submit button.

 BTW, if you still plan to go ahead with the current patch, `module_name`
 should be amended to `model_name`.

-- 
Ticket URL: 
Django 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-02-24 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by julien):

 Ok, so I have wrapped up the implementation and tests. There is just one
 minor test failure:

 {{{
 ==
 FAIL: test_changelist_view_count_queries
 (regressiontests.admin_views.tests.AdminCustomQuerysetTest)
 --
 Traceback (most recent call last):
   File "/django/tests/regressiontests/admin_views/tests.py", line 2550, in
 test_changelist_view_count_queries
 self.assertEqual(resp.context['selection_note_all'], 'All 2 selected')
   File "/django/django/test/testcases.py", line 195, in __exit__
 executed, self.num
 AssertionError: 6 != 4 : 6 queries executed, 4 expected
 }}}

 I haven't looked into this yet but it's most likely because the session
 lookups require extra database queries (which is normal).

-- 
Ticket URL: 
Django 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-02-22 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by julien):

 Replying to [comment:68 gabbork]:
 > hi, will you include this new feature in next 1.5 django release?

 1.5 has been in feature-freeze mode since the first release candidate came
 out some weeks ago. I'm really hoping to have it included in 1.6 though.
 I'm planning to wrap up the patch this weekend during the worldwide
 sprint, and then I'll be seeking feedback from users to make sure we get
 the user experience right.

-- 
Ticket URL: 
Django 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-02-22 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by gabbork):

 hi, will you include this new feature in next 1.5 django release?

-- 
Ticket URL: 
Django 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-02-05 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by julien):

 I think the latest patch above looks good. Only tests should be added and
 slightly improved as noted in my previous comment. I'll try to get to that
 soon if no one beats me up to it.

-- 
Ticket URL: 
Django 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-02-05 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by revolunet):

 any news on this ?
 needs more improvments ?

-- 
Ticket URL: 
Django 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2013-01-09 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+
Changes (by andybak):

 * cc: andybak (added)


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2012-12-30 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by julien):

 Ok, so the review took a bit longer than anticipated as I realized we
 first needed to clean up the `ModelAdmin` API a little in #19505.

 This allows a much more succinct and cleaner approach as in the patch
 above.

 Tests are still needed. The tests from the previous patch could probably
 be reused. However, they could be simplified a bit by testing a model
 simpler than `auth.User`.

 As always, feedback is appreciated. Thanks!

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2012-12-17 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by julien):

 Thanks revolunet for updating the patch. I've started reviewing it. I'll
 try to provide some detailed feedback soon.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2012-12-09 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by revolunet):

 Hi :)

 So here's my session based patch :
 https://github.com/revolunet/django/compare/bug-6903-2

 Its much more simpler than the querystring based approach :

  - records the current changelist querystring in an
 `admin_[APP]_[MODEL]_filters` session variable
  - if any, redirect with that querystring on add/change/delete object

 I added some standard unittests

 comments ?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2012-12-04 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by revolunet):

 Hi guys, thanks for reviewing/commenting again... this has definitely to
 be fixed.

 After have read all the comments, i first went with the URL solution.
 Works well but makes urls a little ugly, true. if this is a problem for
 most of you, we can go with the session.

 The session is another approach that could also work well and i can
 rewrite my patch and tests to make this happen :)
 The only little issue is multi-windows but this could be resolved in a 2nd
 pass?

 I understand and agree with the fact that this session filters is just
 one-time use and should not affect the direct links to the change list.

 Waiting for your approval to kill this one...

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2012-12-03 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by jarrow):

 To cite my four years younger self ;)

 > I proposed to use the session to store the filters so that you don't
 pass your filters and search queries around whenever you pass the URL of
 an edit form to someone else. So I would use a hash of the data and use it
 as a key in the session. This key would then be passed around instead of
 the info.

 So yes, I'm all for using the session, '''but''' I think it would be great
 to still have a querystring parameter that holds a hash/key of the data
 that it is in the session (i.e. filter settings). This way one could work
 with multiple browser windows and it would still work as expected.

 Great to see this is moving again! Go, Django! :)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2012-12-03 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by aaugustin):

 Replying to [comment:57 hejsan]:
 > Why not cookies?

 cookies == session

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2012-12-03 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by Velmont):

 Here's someone else. It makes much sense not to clutter the urls with
 something that should be an implementation detail. Rather than doing it as
 a session, it might also be possible just to do it client-side with
 localStorage. If I'd hacked a quickfix patch myself, I'd probably do that.
 Minimal changes. But it wouldn't fix the problem when not using javascript
 ofc.

 I'll take the patch as it is now into a membership management system,
 hopefully I won't have to do it for next release. The workflow is hampered
 without it :-)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2012-12-03 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+

Comment (by hejsan):

 Why not cookies?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2012-12-02 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  0  |UI/UX:  1
---+
Changes (by julien):

 * easy:  1 => 0


Comment:

 Thanks for all your work on the patch so far. I think that overall the
 redirections work pretty well and quite intuitively.

 However, I have some concerns regarding the continuous passing-around of
 the querystring parameter. Firstly, it makes the implementation more
 complex as we have to check for the existence of that parameter in many
 places in the code — not only does this already require a lot of new code
 in the current implementation, but as we continue to extend the admin's
 functionality we'll have to continue to add lots of similar code just to
 ensure that this querystring parameter is correctly taken care of.
 Secondly, it makes the admin urls really long and ugly — this would have a
 negative impact on the user experience. Thirdly, while introducing a
 querystring parameter could be seen as a nice new feature, I fear it might
 be abused and exploited for too many different things outside of the
 original use case.

 Besides, while I agree that using explicit urls is generally a good thing
 on the web, in this case I think it is purely a convenient way of
 navigating the site by one given user. How the changelist was previously
 filtered by user A before accessing an object is most likely not going to
 be interesting or useful to any other user B. So there's no reason for
 user A to provide this information when sharing an object's url with user
 B.

 For all these reasons, my strong preference would be to use sessions
 instead of a querystring parameter. 1) Each time the changelist is
 rendered: if any filters are used then store them in the session otherwise
 clear the session; and 2) When comes the time to redirect to the
 changelist (i.e. after an object gets saved), then use the filters saved
 in the session, if any.

 The session would be used to save the state of the changelist as it was
 last seen by the user. If the user opens multiple browser tabs for the
 changelist and operates multiple different filterings in each tab, then
 only the last filtering that is operated would be kept in the session.

 Also, to be clear, we do not want to have situations where the
 changelist's filtering doesn't match what is displayed in the browser's
 address bar. So the filtering saved in the session should only be
 retrieved when there is a redirection, and the redirection's url should
 include all the corresponding querystring parameters. This means for
 example that if you directly click on model name on the admin index page,
 then you should be sent to the changelist's "clean" url (i.e. without any
 querystring parameters) and the session's filtering should be cleared.

 I hope this is clear. While I personally would prefer using sessions, I
 don't want my opinion to be too authoritative at this point and I'm happy
 to hear counter-opinions from other core-devs and any one else.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2012-11-27 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  1  |UI/UX:  1
---+

Comment (by revolunet):

 Due to popular request, i finally replaced the wonderful Selenium Test
 with a more standard but more quick standard TestCase. (Duration is now
 1.5s versus 5s with selenium)

 Any others improvements advises here ?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2012-11-26 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  1  |UI/UX:  1
---+

Comment (by akaariai):

 I added some comments to the compare view.

 For the committer of this: I am not sure if the check that the return url
 must start with '/' is the right one - so this check should be verified.
 (Not saying it is the wrong one either - just want to make sure this will
 be double checked).

 I don't think I am the right committer for this, there are committers who
 know this area of Django way better than me.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2012-11-26 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  1  |UI/UX:  1
---+

Comment (by revolunet):

 Adressed the two issues in a new path improvements.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2012-11-26 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  1  |UI/UX:  1
---+

Comment (by akaariai):

 Two comments:
   1. Is there possibility of malicious use of the RETURN_GET_PARAM, that
 is you could send a link of edit_something?_return_to=evil.com
   2. There is some repeating of this:
 {{{
 if RETURN_GET_PARAM in request.GET:
 url += '?%s=%s' % (RETURN_GET_PARAM,
 urlquote(request.GET.get(RETURN_GET_PARAM, '')))
 }}}
 seems like a little helper method could make this a little more DRY.

 This is just after quick skimming, no full review done.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2012-11-25 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords:  admin  | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  1
Easy pickings:  1  |UI/UX:  1
---+
Changes (by revolunet):

 * keywords:   => admin
 * needs_tests:  1 => 0


Comment:

 I just added a full selenium test that covers the whole scenario : filter,
 edit, add, addanother, continue, history, delete...


 please review :)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2012-11-20 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  1  |  Patch needs improvement:  1
Easy pickings:  1  |UI/UX:  1
---+
Changes (by revolunet):

 * cc: revolunet (added)
 * needs_better_patch:  0 => 1
 * easy:  0 => 1


Comment:

 Hi

 This "bug" is quite annoying for my customers :) (lazy dudes)

 I compiled as much info as possible on this thread and started a new patch
 with current propositions.

 I used the _return_to URL parameter approach to pass the base change list
 url along in the different views and redirect accordingly
 (change/add/delete/history...).

 Works nicely.

 I updated some regressiontests that matched a fixed url to support an
 optional trailing querystring with a assertRegexpMatches.
 As i'm not a TDD expert i'd appreciate recommandations on how to make it
 better and which tests i should add to validate this feature.

 Any comment appreciated.

 Patched branch here : https://github.com/revolunet/django/compare/bug-6903
 (add .patch to the url for the patch)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2012-11-20 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  1  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  1
---+

Comment (by richard@…):

 An alternative approach for saving  and restoring the filters after
 editing a model:

 http://djangosnippets.org/snippets/2849/

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2012-11-15 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  1  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  1
---+

Comment (by revolunet):

 Any update on @graveyboat patch ?
 Does it work as expected ?
 What happens when user click "save and continue" ? The referer is gone so
 we may need to keep the initial one from POST if specified ?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #6903: Go back to old change_list view after hitting save

2012-04-25 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  SVN
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  1  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  1
---+
Changes (by gonz):

 * cc: gonz (removed)


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #6903: Go back to old change_list view after hitting save

2012-04-05 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  SVN
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  1  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  1
---+
Changes (by velmont):

 * cc: odin.omdal@… (added)


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #6903: Go back to old change_list view after hitting save

2012-02-13 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  SVN
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  1  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  1
---+
Changes (by michelts):

 * cc: michelts@… (added)


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #6903: Go back to old change_list view after hitting save

2012-01-25 Thread Django
#6903: Go back to old change_list view after hitting save
---+
 Reporter:  jarrow |Owner:
 Type:  New feature|   Status:  new
Component:  contrib.admin  |  Version:  SVN
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  1  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  1
---+
Changes (by rm_):

 * cc: riccardo.magliocchetti@… (added)


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #6903: Go back to old change_list view after hitting save

2011-09-28 Thread Django
#6903: Go back to old change_list view after hitting save
---+---
   Reporter:  jarrow   |  Owner:
   Type:  New feature  | Status:  new
  Milestone:   |  Component:  contrib.admin
Version:  SVN  |   Severity:  Normal
 Resolution:   |   Keywords:
   Triage Stage:  Accepted |  Has patch:  1
Needs documentation:  1|Needs tests:  1
Patch needs improvement:  0|  Easy pickings:  0
  UI/UX:  1|
---+---

Comment (by julien):

 #3777 was closed as a duplicate. It contains extensive discussions on this
 topic.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #6903: Go back to old change_list view after hitting save

2011-09-14 Thread Django
#6903: Go back to old change_list view after hitting save
---+---
   Reporter:  jarrow   |  Owner:
   Type:  New feature  | Status:  new
  Milestone:   |  Component:  contrib.admin
Version:  SVN  |   Severity:  Normal
 Resolution:   |   Keywords:
   Triage Stage:  Accepted |  Has patch:  1
Needs documentation:  1|Needs tests:  1
Patch needs improvement:  0|  Easy pickings:  0
  UI/UX:  1|
---+---
Changes (by ptone):

 * needs_docs:  0 => 1
 * needs_tests:  0 => 1


Comment:

 Latest patch needs tests and probably brief docs note on the behavior, not
 sure if tests from earlier patch apply but they make a good starting
 place.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #6903: Go back to old change_list view after hitting save

2011-09-11 Thread Django
#6903: Go back to old change_list view after hitting save
---+---
   Reporter:  jarrow   |  Owner:
   Type:  New feature  | Status:  new
  Milestone:   |  Component:  contrib.admin
Version:  SVN  |   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:  1|
---+---
Changes (by Alex):

 * easy:   => 0
 * stage:  Design decision needed => Accepted


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #6903: Go back to old change_list view after hitting save

2011-01-14 Thread Django
#6903: Go back to old change_list view after hitting save
-+--
  Reporter:  jarrow  | Owner: 
Status:  new | Milestone: 
 Component:  django.contrib.admin|   Version:  SVN
Resolution:  |  Keywords: 
 Stage:  Design decision needed  | Has_patch:  1  
Needs_docs:  0   |   Needs_tests:  0  
Needs_better_patch:  0   |  
-+--
Changes (by empty):

 * cc: empty (added)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #6903: Go back to old change_list view after hitting save

2011-01-14 Thread Django
#6903: Go back to old change_list view after hitting save
-+--
  Reporter:  jarrow  | Owner: 
Status:  new | Milestone: 
 Component:  django.contrib.admin|   Version:  SVN
Resolution:  |  Keywords: 
 Stage:  Design decision needed  | Has_patch:  1  
Needs_docs:  0   |   Needs_tests:  0  
Needs_better_patch:  0   |  
-+--
Changes (by robhudson):

 * cc: r...@cogit8.org (added)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #6903: Go back to old change_list view after hitting save

2010-10-01 Thread Django
#6903: Go back to old change_list view after hitting save
-+--
  Reporter:  jarrow  | Owner: 
Status:  new | Milestone: 
 Component:  django.contrib.admin|   Version:  SVN
Resolution:  |  Keywords: 
 Stage:  Design decision needed  | Has_patch:  1  
Needs_docs:  0   |   Needs_tests:  0  
Needs_better_patch:  0   |  
-+--
Changes (by hejsan):

 * cc: hr.bjarni+dja...@gmail.com (added)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #6903: Go back to old change_list view after hitting save

2010-04-14 Thread Django
#6903: Go back to old change_list view after hitting save
-+--
  Reporter:  jarrow  | Owner: 
Status:  new | Milestone: 
 Component:  django.contrib.admin|   Version:  SVN
Resolution:  |  Keywords: 
 Stage:  Design decision needed  | Has_patch:  1  
Needs_docs:  0   |   Needs_tests:  0  
Needs_better_patch:  0   |  
-+--
Comment (by ramiro):

 See also #12241 that also proposes preserving the query string in another
 admin use case.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #6903: Go back to old change_list view after hitting save

2010-03-24 Thread Django
#6903: Go back to old change_list view after hitting save
-+--
  Reporter:  jarrow  | Owner: 
Status:  new | Milestone: 
 Component:  django.contrib.admin|   Version:  SVN
Resolution:  |  Keywords: 
 Stage:  Design decision needed  | Has_patch:  1  
Needs_docs:  0   |   Needs_tests:  0  
Needs_better_patch:  0   |  
-+--
Comment (by empty):

 Seriously it takes 5 years to figure this out

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #6903: Go back to old change_list view after hitting save

2010-03-10 Thread Django
#6903: Go back to old change_list view after hitting save
-+--
  Reporter:  jarrow  | Owner: 
Status:  new | Milestone: 
 Component:  django.contrib.admin|   Version:  SVN
Resolution:  |  Keywords: 
 Stage:  Design decision needed  | Has_patch:  1  
Needs_docs:  0   |   Needs_tests:  0  
Needs_better_patch:  0   |  
-+--
Changes (by joh):

 * cc: joh (added)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #6903: Go back to old change_list view after hitting save

2010-02-23 Thread Django
#6903: Go back to old change_list view after hitting save
-+--
  Reporter:  jarrow  | Owner: 
Status:  new | Milestone: 
 Component:  django.contrib.admin|   Version:  SVN
Resolution:  |  Keywords: 
 Stage:  Design decision needed  | Has_patch:  1  
Needs_docs:  0   |   Needs_tests:  0  
Needs_better_patch:  0   |  
-+--
Changes (by ubernostrum):

  * milestone:  1.2 =>

Comment:

 1.2 is feature-frozen, moving this feature request off the milestone.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #6903: Go back to old change_list view after hitting save

2010-01-10 Thread Django
#6903: Go back to old change_list view after hitting save
-+--
  Reporter:  jarrow  | Owner: 
Status:  new | Milestone:  1.2
 Component:  django.contrib.admin|   Version:  SVN
Resolution:  |  Keywords: 
 Stage:  Design decision needed  | Has_patch:  1  
Needs_docs:  0   |   Needs_tests:  0  
Needs_better_patch:  0   |  
-+--
Changes (by ramiro):

  * owner:  ramiro =>

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.




Re: [Django] #6903: Go back to old change_list view after hitting save

2009-08-21 Thread Django
#6903: Go back to old change_list view after hitting save
-+--
  Reporter:  jarrow  | Owner:  ramiro
Status:  new | Milestone:  1.2   
 Component:  django.contrib.admin|   Version:  SVN   
Resolution:  |  Keywords:
 Stage:  Design decision needed  | Has_patch:  1 
Needs_docs:  0   |   Needs_tests:  0 
Needs_better_patch:  0   |  
-+--
Comment (by marcob):

 I use a fancy [http://www.djangosnippets.org/snippets/431/ snippet] that
 open related object in change mode (using few lines of jQuery), so I would
 like to close the window after saving if in popup mode.
 A call to a dismissChangePopup (similar to dismissAddAnotherPopup) would
 be great, but for now I add this to response_change function after msg:
 {{{
 # Close if editing in a popup
 if request.POST.has_key("_popup"):
 return HttpResponse('window.close();')
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #6903: Go back to old change_list view after hitting save

2009-08-21 Thread Django
#6903: Go back to old change_list view after hitting save
-+--
  Reporter:  jarrow  | Owner:  ramiro
Status:  new | Milestone:  1.2   
 Component:  django.contrib.admin|   Version:  SVN   
Resolution:  |  Keywords:
 Stage:  Design decision needed  | Has_patch:  1 
Needs_docs:  0   |   Needs_tests:  0 
Needs_better_patch:  0   |  
-+--
Changes (by marcob):

 * cc: marcob...@gmail.com (added)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #6903: Go back to old change_list view after hitting save

2009-07-20 Thread Django
#6903: Go back to old change_list view after hitting save
-+--
  Reporter:  jarrow  | Owner:  ramiro
Status:  new | Milestone:  1.2   
 Component:  django.contrib.admin|   Version:  SVN   
Resolution:  |  Keywords:
 Stage:  Design decision needed  | Has_patch:  1 
Needs_docs:  0   |   Needs_tests:  0 
Needs_better_patch:  0   |  
-+--
Changes (by ramusus):

 * cc: ramu...@gmail.com (added)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #6903: Go back to old change_list view after hitting save

2009-06-03 Thread Django
#6903: Go back to old change_list view after hitting save
-+--
  Reporter:  jarrow  | Owner:  ramiro
Status:  new | Milestone:  1.2   
 Component:  django.contrib.admin|   Version:  SVN   
Resolution:  |  Keywords:
 Stage:  Design decision needed  | Has_patch:  1 
Needs_docs:  0   |   Needs_tests:  0 
Needs_better_patch:  0   |  
-+--
Comment (by margieroginski):

 Has anyone thought about this issue of "sticky filters" with respect to
 the breadcrumbs in the changelist?  For example, say I filter my objects
 in the changelist view and then click on one of the objects to go to its
 change form.  Now my breadcrumbs contain something like:
Home > !ObjectManager > Objects > Object_I_Clicked_On

 It seems to me that if I click on "Objects" in the breadcrumbs, that I
 would want to go back to my filtered change list, not the unfiltered
 change list.

 I'm mentioning this because it seems like it would be nice to have a
 solution that could be extended to solve this as well (assuming others
 agree that the breadcrumbs should return you to the filtered change list).

 Margie

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #6903: Go back to old change_list view after hitting save

2009-03-23 Thread Django
#6903: Go back to old change_list view after hitting save
-+--
  Reporter:  jarrow  | Owner:  ramiro
Status:  new | Milestone:  1.2   
 Component:  django.contrib.admin|   Version:  SVN   
Resolution:  |  Keywords:
 Stage:  Design decision needed  | Has_patch:  1 
Needs_docs:  0   |   Needs_tests:  0 
Needs_better_patch:  0   |  
-+--
Changes (by jacob):

  * milestone:  1.1 beta => 1.2

Comment:

 This has gone around quite a bit, but it's still not quite perfect. It's
 really a hard problem, unfortunately, and we're out of time to put it in
 1.1.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #6903: Go back to old change_list view after hitting save

2009-03-19 Thread Django
#6903: Go back to old change_list view after hitting save
-+--
  Reporter:  jarrow  | Owner:  ramiro  
Status:  new | Milestone:  1.1 beta
 Component:  django.contrib.admin|   Version:  SVN 
Resolution:  |  Keywords:  
 Stage:  Design decision needed  | Has_patch:  1   
Needs_docs:  0   |   Needs_tests:  0   
Needs_better_patch:  0   |  
-+--
Comment (by mremolt):

 Replying to [comment:23 jarrow]:
 > > > I proposed to use the session to store the filters so that you don't
 pass your filters and search queries around whenever you pass the URL of
 an edit form to someone else. So I would use a hash of the data and use it
 as a key in the session. This key would then be passed around instead of
 the info. But this could be changed later, I don't think it would be
 backwards incompatible.
 > >
 > > I don't see, why it is a bad thing to be able to post the filter
 settings around with the url. I consider it a feature, to be able to copy
 a filtered admin changelist view URL into an email and post it to a
 colleague to show him exacly what I want him to notice. Using the session
 would also go against REST (no ambiguous URLs).
 > >
 > > Using URLs also automatically solves Malcolms request you mentioned.
 The admin start page just uses URLs without filter parameters as it always
 has.
 >
 > Sure. I totally agree :) What I was talking about was not the changelist
 view itself. Of course that stays like it is. With an URL that you can
 copy including the filters. What I meant was: While ''editing'' an item -
 coming from a filtered changelist - it might not be so obvious that if you
 copy the URL from the edit view and pass it to a fried he will be going
 back to your custom-filtered change list.

 Then I got your proposal wrong. I really don't think anyone wants to copy
 an URL from an edit page with filters enabled. Forget everything I said.
 (Note to self: READ, then post)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #6903: Go back to old change_list view after hitting save

2009-03-19 Thread Django
#6903: Go back to old change_list view after hitting save
-+--
  Reporter:  jarrow  | Owner:  ramiro  
Status:  new | Milestone:  1.1 beta
 Component:  django.contrib.admin|   Version:  SVN 
Resolution:  |  Keywords:  
 Stage:  Design decision needed  | Has_patch:  1   
Needs_docs:  0   |   Needs_tests:  0   
Needs_better_patch:  0   |  
-+--
Comment (by jarrow):

 > > I proposed to use the session to store the filters so that you don't
 pass your filters and search queries around whenever you pass the URL of
 an edit form to someone else. So I would use a hash of the data and use it
 as a key in the session. This key would then be passed around instead of
 the info. But this could be changed later, I don't think it would be
 backwards incompatible.
 >
 > I don't see, why it is a bad thing to be able to post the filter
 settings around with the url. I consider it a feature, to be able to copy
 a filtered admin changelist view URL into an email and post it to a
 colleague to show him exacly what I want him to notice. Using the session
 would also go against REST (no ambiguous URLs).
 >
 > Using URLs also automatically solves Malcolms request you mentioned. The
 admin start page just uses URLs without filter parameters as it always
 has.

 Sure. I totally agree :) What I was talking about was not the changelist
 view itself. Of course that stays like it is. With an URL that you can
 copy including the filters. What I meant was: While ''editing'' an item -
 coming from a filtered changelist - it might not be so obvious that if you
 copy the URL from the edit view and pass it to a fried he will be going
 back to your custom-filtered change list.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #6903: Go back to old change_list view after hitting save

2009-03-19 Thread Django
#6903: Go back to old change_list view after hitting save
-+--
  Reporter:  jarrow  | Owner:  ramiro  
Status:  new | Milestone:  1.1 beta
 Component:  django.contrib.admin|   Version:  SVN 
Resolution:  |  Keywords:  
 Stage:  Design decision needed  | Has_patch:  1   
Needs_docs:  0   |   Needs_tests:  0   
Needs_better_patch:  0   |  
-+--
Changes (by mremolt):

 * cc: mremolt (added)

Comment:

 Replying to [comment:21 jarrow]:
 > The idea was that you get an unfiltered list when you go to the
 changelist URL directly (not coming from an edit form of an entry).
 mawimawi's example code looks like he wants the filters to stay forever.
 To cite Malcolm "Yes, from the admin home page it should be a clean view."
 >
 > I proposed to use the session to store the filters so that you don't
 pass your filters and search queries around whenever you pass the URL of
 an edit form to someone else. So I would use a hash of the data and use it
 as a key in the session. This key would then be passed around instead of
 the info. But this could be changed later, I don't think it would be
 backwards incompatible.

 I don't see, why it is a bad thing to be able to post the filter settings
 around with the url. I consider it a feature, to be able to copy a
 filtered admin changelist view URL into an email and post it to a
 colleague to show him exacly what I want him to notice. Using the session
 would also go against REST (no ambiguous URLs).

 Using URLs also automatically solves Malcolms request you mentioned. The
 admin start page just uses URLs without filter parameters as it always
 has.

 Just my 5 cents.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #6903: Go back to old change_list view after hitting save

2009-03-18 Thread Django
#6903: Go back to old change_list view after hitting save
-+--
  Reporter:  jarrow  | Owner:  ramiro  
Status:  new | Milestone:  1.1 beta
 Component:  django.contrib.admin|   Version:  SVN 
Resolution:  |  Keywords:  
 Stage:  Design decision needed  | Has_patch:  1   
Needs_docs:  0   |   Needs_tests:  0   
Needs_better_patch:  0   |  
-+--
Comment (by jarrow):

 The idea was that you get an unfiltered list when you go to the changelist
 URL directly (not coming from an edit form of an entry). mawimawi's
 example code looks like he wants the filters to stay forever. To cite
 Malcolm "Yes, from the admin home page it should be a clean view."

 I proposed to use the session to store the filters so that you don't pass
 your filters and search queries around whenever you pass the URL of an
 edit form to someone else. So I would use a hash of the data and use it as
 a key in the session. This key would then be passed around instead of the
 info. But this could be changed later, I don't think it would be backwards
 incompatible.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #6903: Go back to old change_list view after hitting save

2009-03-18 Thread Django
#6903: Go back to old change_list view after hitting save
-+--
  Reporter:  jarrow  | Owner:  ramiro  
Status:  new | Milestone:  1.1 beta
 Component:  django.contrib.admin|   Version:  SVN 
Resolution:  |  Keywords:  
 Stage:  Design decision needed  | Has_patch:  1   
Needs_docs:  0   |   Needs_tests:  0   
Needs_better_patch:  0   |  
-+--
Changes (by ramiro):

  * milestone:  1.1 => 1.1 beta

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #6903: Go back to old change_list view after hitting save

2009-03-17 Thread Django
#6903: Go back to old change_list view after hitting save
-+--
  Reporter:  jarrow  | Owner:  ramiro
Status:  new | Milestone:  1.1   
 Component:  django.contrib.admin|   Version:  SVN   
Resolution:  |  Keywords:
 Stage:  Design decision needed  | Has_patch:  1 
Needs_docs:  0   |   Needs_tests:  0 
Needs_better_patch:  0   |  
-+--
Comment (by ramiro):

 Replying to [comment:17 mawimawi]:
 > Isn't such a "sticky" behaviour exactly what sessions are for? Why would
 you not use a session key like
 > `request.session['admin_' +  + '_' +  + '_filter'] =
 {'p':14, 'my_field__exact':True}`
 > and checking for this key when displaying the list of objects of a
 model?
 >
 > I'm also offering to try and implement that if this is desired.

 I'd say got for it and attach it to the ticket so both implementations are
 available for review and the chances of this feature being available in
 1.1 are better.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #6903: Go back to old change_list view after hitting save

2009-03-06 Thread Django
#6903: Go back to old change_list view after hitting save
-+--
  Reporter:  jarrow  | Owner:  ramiro
Status:  new | Milestone:  1.1   
 Component:  django.contrib.admin|   Version:  SVN   
Resolution:  |  Keywords:
 Stage:  Design decision needed  | Has_patch:  1 
Needs_docs:  0   |   Needs_tests:  0 
Needs_better_patch:  0   |  
-+--
Comment (by mawimawi):

 Isn't such a "sticky" behaviour exactly what sessions are for? Why would
 you not use a session key like
 request.session['admin_' +  + '_' +  + '_filter'] =
 {'p':14, 'my_field__exact':True}
 and checking for this key when displaying the list of objects of a model?

 I'm also offering to try and implement that if this is desired.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #6903: Go back to old change_list view after hitting save

2009-03-04 Thread Django
#6903: Go back to old change_list view after hitting save
-+--
  Reporter:  jarrow  | Owner:  ramiro
Status:  new | Milestone:  1.1   
 Component:  django.contrib.admin|   Version:  SVN   
Resolution:  |  Keywords:
 Stage:  Design decision needed  | Has_patch:  1 
Needs_docs:  0   |   Needs_tests:  0 
Needs_better_patch:  0   |  
-+--
Changes (by ramiro):

  * keywords:  nfa-someday yandex-sprint =>
  * version:  newforms-admin => SVN
  * milestone:  => 1.1

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #6903: Go back to old change_list view after hitting save

2009-02-26 Thread Django
#6903: Go back to old change_list view after hitting save
-+--
  Reporter:  jarrow  | Owner:  ramiro   

Status:  new | Milestone:   

 Component:  django.contrib.admin|   Version:  newforms-admin   

Resolution:  |  Keywords:  nfa-someday 
yandex-sprint
 Stage:  Design decision needed  | Has_patch:  1

Needs_docs:  0   |   Needs_tests:  0

Needs_better_patch:  0   |  
-+--
Changes (by sixthgear):

 * cc: sixthgear (added)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #6903: Go back to old change_list view after hitting save

2009-02-25 Thread Django
#6903: Go back to old change_list view after hitting save
-+--
  Reporter:  jarrow  | Owner:  ramiro   

Status:  new | Milestone:  post-1.0 

 Component:  django.contrib.admin|   Version:  newforms-admin   

Resolution:  |  Keywords:  nfa-someday 
yandex-sprint
 Stage:  Design decision needed  | Has_patch:  1

Needs_docs:  0   |   Needs_tests:  0

Needs_better_patch:  0   |  
-+--
Changes (by ramiro):

  * needs_better_patch:  1 => 0
  * needs_tests:  1 => 0

Comment:

 Replying to [comment:12 jacob]:
 >  it still needs some fundamental improvement.

 > The main problem is that "guessing" the return URL from HTTP_REFERER
 leads to strange behavior.

 > This needs to be fixed. I think probably the best approach is to *only*
 read the return URL from `GET`, and to modify the changelist to pass the
 return URL through as a `GET` variable. That is, rewrite the links from
 the changelist to include the return URL in the link.

 I've implemented this change in the new `6903-r9904.diff` patch.

 >
 > (This means you'll want to choose a different URL keyword to avoid
 conflicting with a field named `return_to`. Probably `_return_to`, I'd
 say.)

 done
 >
 > Second, this patch needs some tests. Especially ones to make sure that
 the redirects stay sane in cases like above.

 done

 Jacob, your comment above cleared three of the four doubts I had posted to
 `django-dev` after attaching the first revised version of the patch. The
 only one remaining is this one (I'm reposting because it's a fundamental
 one and the answer will tell if the approach taken is valid or if we
 should consider others options discussed like storing things in the
 session instead):

 * It passes that URL around from view to view by using an query string
 value until the time to use it comes, it does so even when a POST request
 is sent (when editing or creating a model instance). Are we ok with this?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #6903: Go back to old change_list view after hitting save

2009-02-23 Thread Django
#6903: Go back to old change_list view after hitting save
-+--
  Reporter:  jarrow  | Owner:  ramiro   

Status:  new | Milestone:  post-1.0 

 Component:  django.contrib.admin|   Version:  newforms-admin   

Resolution:  |  Keywords:  nfa-someday 
yandex-sprint
 Stage:  Design decision needed  | Has_patch:  1

Needs_docs:  0   |   Needs_tests:  1

Needs_better_patch:  1   |  
-+--
Comment (by jacob):

 I've made a few stylistic improvements to the patch, but it still needs
 some fundamental improvement.

 The main problem is that "guessing" the return URL from HTTP_REFERER leads
 to strange behavior. For example:

   * Click "add" from the main admin index, then save the object. Result:
 you're returned to the index page. No, you should go to the changelist to
 inspect the object you just added.

   * Click "add" from anywhere. Click "save and add another". Click "save".
 Result: you're taken back to the ''last object you created''. This is
 '''really''' confusing: it appears identical to clicking "save and
 continue editing", except you've got different values.

 This needs to be fixed. I think probably the best approach is to *only*
 read the return URL from `GET`, and to modify the changelist to pass the
 return URL through as a `GET` variable. That is, rewrite the links from
 the changelist to include the return URL in the link.

 (This means you'll want to choose a different URL keyword to avoid
 conflicting with a field named `return_to`. Probably `_return_to`, I'd
 say.)

 Second, this patch needs some tests. Especially ones to make sure that the
 redirects stay sane in cases like above.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #6903: Go back to old change_list view after hitting save

2009-02-17 Thread Django
#6903: Go back to old change_list view after hitting save
-+--
  Reporter:  jarrow  | Owner:  ramiro   

Status:  new | Milestone:  post-1.0 

 Component:  django.contrib.admin|   Version:  newforms-admin   

Resolution:  |  Keywords:  nfa-someday 
yandex-sprint
 Stage:  Design decision needed  | Has_patch:  1

Needs_docs:  0   |   Needs_tests:  1

Needs_better_patch:  1   |  
-+--
Changes (by niels):

 * cc: niels.bu...@gmail.com (removed)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #6903: Go back to old change_list view after hitting save

2009-01-20 Thread Django
#6903: Go back to old change_list view after hitting save
-+--
  Reporter:  jarrow  | Owner:  ramiro   

Status:  new | Milestone:  post-1.0 

 Component:  django.contrib.admin|   Version:  newforms-admin   

Resolution:  |  Keywords:  nfa-someday 
yandex-sprint
 Stage:  Design decision needed  | Has_patch:  1

Needs_docs:  0   |   Needs_tests:  1

Needs_better_patch:  1   |  
-+--
Changes (by ramiro):

  * owner:  nobody => ramiro
  * needs_better_patch:  0 => 1
  * needs_tests:  0 => 1

Comment:

 django-dev discussion is at http://groups.google.com/group/django-
 
developers/browse_thread/thread/4d1f075ff4c92ea0/fd73ec2b916936b0?hl=en=gst=6903#fd73ec2b916936b0

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #6903: Go back to old change_list view after hitting save

2008-12-15 Thread Django
#6903: Go back to old change_list view after hitting save
-+--
  Reporter:  jarrow  | Owner:  nobody   

Status:  new | Milestone:  post-1.0 

 Component:  django.contrib.admin|   Version:  newforms-admin   

Resolution:  |  Keywords:  nfa-someday 
yandex-sprint
 Stage:  Design decision needed  | Has_patch:  1

Needs_docs:  0   |   Needs_tests:  0

Needs_better_patch:  0   |  
-+--
Changes (by niels):

 * cc: niels.bu...@gmail.com (added)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---