Re: [Django] #19555: tutorial pt 1 - update year for examples to work

2013-02-08 Thread Django
#19555: tutorial pt 1 - update year for examples to work
--+
 Reporter:  rodrigorosa.lg@…  |Owner:  nobody
 Type:  Cleanup/optimization  |   Status:  closed
Component:  Documentation |  Version:  master
 Severity:  Normal|   Resolution:  fixed
 Keywords:  year  | Triage Stage:  Accepted
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:"c95ae7729f713a300e67bf30e9506ba78919113a"]:
 {{{
 #!CommitTicketReference repository=""
 revision="c95ae7729f713a300e67bf30e9506ba78919113a"
 [1.5.x] Fixed #19555 - Removed '2012' from tutorial 1.

 Thanks rodrigorosa.lg and others for the report.

 Backport of 99315f709e 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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #19555: tutorial pt 1 - update year for examples to work

2013-01-17 Thread Django
#19555: tutorial pt 1 - update year for examples to work
--+
 Reporter:  rodrigorosa.lg@…  |Owner:  nobody
 Type:  Cleanup/optimization  |   Status:  closed
Component:  Documentation |  Version:  master
 Severity:  Normal|   Resolution:  fixed
 Keywords:  year  | Triage Stage:  Accepted
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:"89ba1b27b4442cbb43555f607ab7d0f189a2af50"]:
 {{{
 #!CommitTicketReference repository=""
 revision="89ba1b27b4442cbb43555f607ab7d0f189a2af50"
 [1.4.x] Fixed #19555 - Removed '2012' from tutorial 1.

 Thanks rodrigorosa.lg and others for the report.

 Backport of 99315f709e 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 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] #19555: tutorial pt 1 - update year for examples to work

2013-01-08 Thread Django
#19555: tutorial pt 1 - update year for examples to work
--+
 Reporter:  rodrigorosa.lg@…  |Owner:  nobody
 Type:  Cleanup/optimization  |   Status:  closed
Component:  Documentation |  Version:  master
 Severity:  Normal|   Resolution:  fixed
 Keywords:  year  | Triage Stage:  Accepted
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:"c95ae7729f713a300e67bf30e9506ba78919113a"]:
 {{{
 #!CommitTicketReference repository=""
 revision="c95ae7729f713a300e67bf30e9506ba78919113a"
 [1.5.x] Fixed #19555 - Removed '2012' from tutorial 1.

 Thanks rodrigorosa.lg and others for the report.

 Backport of 99315f709e 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 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] #19555: tutorial pt 1 - update year for examples to work

2013-01-08 Thread Django
#19555: tutorial pt 1 - update year for examples to work
--+
 Reporter:  rodrigorosa.lg@…  |Owner:  nobody
 Type:  Cleanup/optimization  |   Status:  closed
Component:  Documentation |  Version:  master
 Severity:  Normal|   Resolution:  fixed
 Keywords:  year  | Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  1 |UI/UX:  0
--+
Changes (by Tim Graham ):

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


Comment:

 In [changeset:"99315f709e26ea80de8ea3af4e336dbdbe467711"]:
 {{{
 #!CommitTicketReference repository=""
 revision="99315f709e26ea80de8ea3af4e336dbdbe467711"
 Fixed #19555 - Removed '2012' from tutorial 1.

 Thanks rodrigorosa.lg and others for the report.
 }}}

-- 
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] #19555: tutorial pt 1 - update year for examples to work

2013-01-07 Thread Django
#19555: tutorial pt 1 - update year for examples to work
--+
 Reporter:  rodrigorosa.lg@…  |Owner:  nobody
 Type:  Cleanup/optimization  |   Status:  new
Component:  Documentation |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:  year  | Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  1 |UI/UX:  0
--+
Changes (by timo):

 * has_patch:  0 => 1


Comment:

 I am in favor of keeping the date lookups, since I think it's useful to
 demo them (plus there aren't really any other fields on Poll to filter
 by).

 The alternative of creating the poll with a specific date or assigning a
 specific pub_date later as was done before [e0d78f898f] so that the
 queries aren't dependent on timezone.now() would make the part later in
 the tutorial that says "If the value of "Date published" doesn't match the
 time when you created the poll in Tutorial 1, it probably means you forgot
 to set the correct value for the TIME_ZONE setting" invalid.

 Since the images later in the tutorial use 2012, I don't think we should
 update the shell output for p.pub_date.

-- 
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] #19555: tutorial pt 1 - update year for examples to work

2013-01-04 Thread Django
#19555: tutorial pt 1 - update year for examples to work
--+
 Reporter:  rodrigorosa.lg@…  |Owner:  nobody
 Type:  Cleanup/optimization  |   Status:  new
Component:  Documentation |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:  year  | Triage Stage:  Accepted
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  1 |UI/UX:  0
--+

Comment (by static):

 Another much simpler solution is to filter by a '''not''' hardcoded year:

 # Get the poll whose year is current year.
 >>> from datetime import datetime
 >>> Choice.objects.filter(poll__pub_date__year=datetime.now().year)
 

 ...

 # Find all Choices for any poll whose pub_date is in current year.
 >>> Choice.objects.filter(poll__pub_date__year=datetime.now().year)

 ---

 I would also recommend editing the 2012 to 2013, as the 1.5 version is
 going to be released this year.

-- 
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] #19555: tutorial pt 1 - update year for examples to work

2013-01-04 Thread Django
#19555: tutorial pt 1 - update year for examples to work
--+
 Reporter:  rodrigorosa.lg@…  |Owner:  nobody
 Type:  Cleanup/optimization  |   Status:  new
Component:  Documentation |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:  year  | Triage Stage:  Accepted
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  1 |UI/UX:  0
--+

Comment (by thiagocavila@…):

 I think this should solve the problem:

 Instead of:

 >>> from django.utils import timezone
 >>> p = Poll(question="What's new?", pub_date=timezone.now())

 You make a fix date doing:
 >>> from django.utils import timezone
 >>> from datetime import datetime
 >>> timezone = timezone.get_current_timezone()
 >>> p = Poll(question="What's new?", pub_date=datetime(year=2013,
 month=10, day=10, tzinfo=timezone))

 Then the date will be 2013/10/10 forever, no need to change it in 2014 =)

-- 
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] #19555: tutorial pt 1 - update year for examples to work

2013-01-03 Thread Django
#19555: tutorial pt 1 - update year for examples to work
--+
 Reporter:  rodrigorosa.lg@…  |Owner:  nobody
 Type:  Cleanup/optimization  |   Status:  new
Component:  Documentation |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:  year  | Triage Stage:  Accepted
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  1 |UI/UX:  0
--+

Comment (by aaugustin):

 I hadn't noticed that the tutorial created objects with the date set to
 "now", and then proceeded to filter on the year.

-- 
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] #19555: tutorial pt 1 - update year for examples to work

2013-01-03 Thread Django
#19555: tutorial pt 1 - update year for examples to work
--+
 Reporter:  rodrigorosa.lg@…  |Owner:  nobody
 Type:  Cleanup/optimization  |   Status:  new
Component:  Documentation |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:  year  | Triage Stage:  Accepted
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  1 |UI/UX:  0
--+
Changes (by claudep):

 * status:  closed => new
 * type:  Uncategorized => Cleanup/optimization
 * version:  1.4 => master
 * easy:  0 => 1
 * resolution:  wontfix =>
 * stage:  Unreviewed => Accepted


Comment:

 As discussed on IRC:
 {{{
 mYk: claudep: , yeah, we should use a different example then
 mYk: filter on a field other than the date
 }}}

-- 
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] #19555: tutorial pt 1 - update year for examples to work

2013-01-02 Thread Django
#19555: tutorial pt 1 - update year for examples to work
--+--
 Reporter:  rodrigorosa.lg@…  |Owner:  nobody
 Type:  Uncategorized |   Status:  closed
Component:  Documentation |  Version:  1.4
 Severity:  Normal|   Resolution:  wontfix
 Keywords:  year  | Triage Stage:  Unreviewed
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+--
Changes (by aaugustin):

 * status:  new => closed
 * needs_better_patch:   => 0
 * resolution:   => wontfix
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 Thanks for the report, but docs use various dates between 2005 and now as
 examples, and it doesn't add much value to change them every year.

-- 
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.




[Django] #19555: tutorial pt 1 - update year for examples to work

2013-01-02 Thread Django
#19555: tutorial pt 1 - update year for examples to work
--+
 Reporter:  rodrigorosa.lg@…  |  Owner:  nobody
 Type:  Uncategorized | Status:  new
Component:  Documentation |Version:  1.4
 Severity:  Normal|   Keywords:  year
 Triage Stage:  Unreviewed|  Has patch:  0
Easy pickings:  0 |  UI/UX:  0
--+
 last part executes:
   >>> Choice.objects.filter(poll__pub_date__year=2012)
 and now we're in 2013 :)
 happy new year!

 salú
 rela.

-- 
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.