Re: [Django] #24881: order_with_respect_to needs better docs

2015-06-19 Thread Django
#24881: order_with_respect_to needs better docs
-+-
 Reporter:  karyon   |Owner:  karyon
 Type:   |   Status:  closed
  Cleanup/optimization   |
Component:  Documentation|  Version:  1.8
 Severity:  Normal   |   Resolution:  fixed
 Keywords:   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-

Comment (by Tim Graham ):

 In [changeset:"aa00f482801c78d0688ec347160177fd05e5d4c6" aa00f482]:
 {{{
 #!CommitTicketReference repository=""
 revision="aa00f482801c78d0688ec347160177fd05e5d4c6"
 [1.8.x] Fixed #24881 -- Clarified Meta.order_with_respect_to documentation

 Backport of 27c839e0fce99254ad61322bb827a821f832e840 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.cdc82e00c678b86d13a7fcd0ce15706c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24881: order_with_respect_to needs better docs

2015-06-19 Thread Django
#24881: order_with_respect_to needs better docs
-+-
 Reporter:  karyon   |Owner:  karyon
 Type:   |   Status:  closed
  Cleanup/optimization   |
Component:  Documentation|  Version:  1.8
 Severity:  Normal   |   Resolution:  fixed
 Keywords:   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by Tim Graham ):

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


Comment:

 In [changeset:"27c839e0fce99254ad61322bb827a821f832e840" 27c839e0]:
 {{{
 #!CommitTicketReference repository=""
 revision="27c839e0fce99254ad61322bb827a821f832e840"
 Fixed #24881 -- Clarified Meta.order_with_respect_to documentation
 }}}

--
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.231ef4f272791d742f5f5cefb77fdd16%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24881: order_with_respect_to needs better docs

2015-06-18 Thread Django
#24881: order_with_respect_to needs better docs
-+-
 Reporter:  karyon   |Owner:  karyon
 Type:   |   Status:  assigned
  Cleanup/optimization   |
Component:  Documentation|  Version:  1.8
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by timgraham):

 * has_patch:  0 => 1
 * stage:  Accepted => Ready for checkin


--
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.eae4f29a47baf90aba0c860fc54746f6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24881: order_with_respect_to needs better docs

2015-06-05 Thread Django
#24881: order_with_respect_to needs better docs
--+
 Reporter:  karyon|Owner:  karyon
 Type:  Cleanup/optimization  |   Status:  assigned
Component:  Documentation |  Version:  1.8
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  1 |UI/UX:  0
--+
Changes (by karyon):

 * status:  new => assigned
 * owner:   => karyon


--
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.aff81237242011f10572975a6ed3199b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24881: order_with_respect_to needs better docs

2015-06-05 Thread Django
#24881: order_with_respect_to needs better docs
--+
 Reporter:  karyon|Owner:
 Type:  Cleanup/optimization  |   Status:  new
Component:  Documentation |  Version:  1.8
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  1 |UI/UX:  0
--+
Changes (by marissazhou):

 * owner:  marissazhou =>
 * status:  assigned => new


--
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.88503d0d9691d1b07759fa7317255ed0%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24881: order_with_respect_to needs better docs

2015-06-05 Thread Django
#24881: order_with_respect_to needs better docs
-+-
 Reporter:  karyon   |Owner:
 Type:   |  marissazhou
  Cleanup/optimization   |   Status:  assigned
Component:  Documentation|  Version:  1.8
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by marissazhou):

 * owner:  nobody => marissazhou
 * status:  new => assigned


--
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.d6cd99934e723d28540dc6aa846080f4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24881: order_with_respect_to needs better docs

2015-05-31 Thread Django
#24881: order_with_respect_to needs better docs
--+
 Reporter:  karyon|Owner:  nobody
 Type:  Cleanup/optimization  |   Status:  new
Component:  Documentation |  Version:  1.8
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  1 |UI/UX:  0
--+
Changes (by karyon):

 * cc: karyon (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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.178a9d512f9a7c01225abb6f2dff53c8%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24881: order_with_respect_to needs better docs

2015-05-30 Thread Django
#24881: order_with_respect_to needs better docs
--+
 Reporter:  karyon|Owner:  nobody
 Type:  Cleanup/optimization  |   Status:  new
Component:  Documentation |  Version:  1.8
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  1 |UI/UX:  0
--+
Changes (by timgraham):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * easy:  0 => 1
 * needs_docs:   => 0
 * type:  Bug => Cleanup/optimization
 * stage:  Unreviewed => Accepted


Comment:

 Thanks for the suggestions. It would be even more helpful if you could
 submit a patch with proposed changes.

--
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.5c4c9502aab6709118d889ef9be2248d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


[Django] #24881: order_with_respect_to needs better docs

2015-05-30 Thread Django
#24881: order_with_respect_to needs better docs
---+
 Reporter:  karyon |  Owner:  nobody
 Type:  Bug| Status:  new
Component:  Documentation  |Version:  1.8
 Severity:  Normal |   Keywords:
 Triage Stage:  Unreviewed |  Has patch:  0
Easy pickings:  0  |  UI/UX:  0
---+
 the model meta option order_with_respect_to is documented
 (https://docs.djangoproject.com/en/1.8/ref/models/options/#order-with-
 respect-to), but i found the docs to be incomplete.

 it says "Marks this object as “orderable” with respect to the given field.
 This is almost always used with related objects to allow them to be
 ordered with respect to a parent object." What i don't know is what it
 actually means for an object to be "orderable with respect to something".
 Also, these sentences only say that something is "marked" and they are
 "allowed" to be ordered. Under what circumstances does ordering actually
 happen? do i need to do something for a queryset of such objects to be
 ordered? And what does"almost always" mean, is there anything else this
 might be used for?
 [[BR]]

 Also, i kinda expected this feature to order objects only when queried
 coming from the parent class, e.g.
 {{{
 Question.objects.first().answer_set()
 }}}
 but not order them when doing e.g.
 {{{
 Answer.objects.all()
 }}}
 because the ordering is only with respect to the parent object, right?
 that this is not the case might be worth mentioning explicitly.

 [[BR]]


 I read some code and did experiments and from my point of view, what this
 actually does is:
  - add a "_order" field to the model
  - initializing that field when adding an instance, based on the number of
 other instances with the same parent (not mentioned in the docs)
 - add some convenience setters/getters for that field
 - set the "ordering"-option to that field (most important part and not
 mentioned in the docs)
 [[BR]]

 I hope that helps!

--
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/049.d0e9151dbeadc7b036a5f9932ab52ccd%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.