Re: [Django] #24866: Add CURRENT_TIMESTAMP function to db.functions

2015-06-02 Thread Django
#24866: Add CURRENT_TIMESTAMP function to db.functions
-+-
 Reporter:  funkybob |Owner:
 |  adamchainz
 Type:  New feature  |   Status:  closed
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 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:"23048d186ce0041654a9f547fe3e7177efce3076" 23048d18]:
 {{{
 #!CommitTicketReference repository=""
 revision="23048d186ce0041654a9f547fe3e7177efce3076"
 Fixed #24866 -- Added Now() database function
 }}}

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


Re: [Django] #24866: Add CURRENT_TIMESTAMP function to db.functions

2015-06-02 Thread Django
#24866: Add CURRENT_TIMESTAMP function to db.functions
-+-
 Reporter:  funkybob |Owner:
 |  adamchainz
 Type:  New feature  |   Status:  assigned
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 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):

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


Re: [Django] #24866: Add CURRENT_TIMESTAMP function to db.functions

2015-05-29 Thread Django
#24866: Add CURRENT_TIMESTAMP function to db.functions
-+-
 Reporter:  funkybob |Owner:
 |  adamchainz
 Type:  New feature  |   Status:  assigned
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by timgraham):

 * needs_docs:  1 => 0
 * has_patch:  0 => 1
 * needs_tests:  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/066.42f05b05f8d3df565ab87826f32b8b08%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24866: Add CURRENT_TIMESTAMP function to db.functions

2015-05-29 Thread Django
#24866: Add CURRENT_TIMESTAMP function to db.functions
-+-
 Reporter:  funkybob |Owner:
 |  adamchainz
 Type:  New feature  |   Status:  assigned
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  1
  Needs tests:  1|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-

Comment (by adamchainz):

 Pull request: https://github.com/django/django/pull/4722

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


Re: [Django] #24866: Add CURRENT_TIMESTAMP function to db.functions

2015-05-29 Thread Django
#24866: Add CURRENT_TIMESTAMP function to db.functions
-+-
 Reporter:  funkybob |Owner:
 |  adamchainz
 Type:  New feature  |   Status:  assigned
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  1
  Needs tests:  1|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by adamchainz):

 * owner:  nobody => adamchainz
 * 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/066.89fd9e34992d57847fc8f750cd71fc52%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24866: Add CURRENT_TIMESTAMP function to db.functions

2015-05-27 Thread Django
#24866: Add CURRENT_TIMESTAMP function to db.functions
-+-
 Reporter:  funkybob |Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  1
  Needs tests:  1|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-

Comment (by jarshwah):

 Below is probably the way to go. We haven't done 0-arity Func expressions
 before though, so there may be some hidden traps waiting. It'd go in
 django.db.models.functions.py

 {{{
 class Now(Func):
 template = 'CURRENT_TIMESTAMP()'
 def __init__(self, output_field=DateTimeField(), **extra):
 super(Func, self).__init__(output_field=output_field, **extra)
 }}}

 This should (famous last words) be a relatively straight forward patch.
 I'd encourage someone that wants to get some basic familiarity with the
 ORM and expressions in general to have a go at implementing.

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


Re: [Django] #24866: Add CURRENT_TIMESTAMP function to db.functions

2015-05-27 Thread Django
#24866: Add CURRENT_TIMESTAMP function to db.functions
-+-
 Reporter:  funkybob |Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  1
  Needs tests:  1|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by jarshwah):

 * version:  1.8 => master
 * stage:  Unreviewed => 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 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/066.53b452491123f35b3703f395fe429499%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


[Django] #24866: Add CURRENT_TIMESTAMP function to db.functions

2015-05-27 Thread Django
#24866: Add CURRENT_TIMESTAMP function to db.functions
-+-
   Reporter:  funkybob   |  Owner:  nobody
   Type:  New| Status:  new
  feature|
  Component:  Database   |Version:  1.8
  layer (models, ORM)|
   Severity:  Normal |   Keywords:
   Triage Stage: |  Has patch:  0
  Unreviewed |
Needs documentation:  1  |Needs tests:  1
Patch needs improvement:  0  |  Easy pickings:  1
  UI/UX:  0  |
-+-
 00:21 <+jarshwah> or.. Func(template='NOW()',
 output_field=DateTimeFIeld()) would work too


 Postgres, MySQL, SQLite and MS SQL support this function, and it would be
 very handy.

 In the past I've implemented it using an ExpressionNode, but with the new
 functions module, it could be simpler and more useful.

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