Re: [Django] #23548: Transform.relabeled_clone calls own constructor with wrong number of arguments

2015-06-10 Thread Django
#23548: Transform.relabeled_clone calls own constructor with wrong number of
arguments
-+-
 Reporter:  ris  |Owner:  nobody
 Type:  Bug  |   Status:  closed
Component:  Database layer   |  Version:  1.7
  (models, ORM)  |
 Severity:  Normal   |   Resolution:  fixed
 Keywords:  lookup transform | Triage Stage:  Accepted
  orm subquery   |
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by ris):

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


Comment:

 This appears to be fixed in commit
 08232ef84d4959826ad5136f183c9fc5bedf0599 (also backported to 1.8.x @
 b4b13759f82e9e09951bb72875b1c6e384dca6a9). Closing.

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


Re: [Django] #23548: Transform.relabeled_clone calls own constructor with wrong number of arguments

2015-06-08 Thread Django
#23548: Transform.relabeled_clone calls own constructor with wrong number of
arguments
-+-
 Reporter:  ris  |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  1.7
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:  lookup transform | Triage Stage:  Accepted
  orm subquery   |
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by ris):

 Updating this with example models.py for creating this failure:

 {{{
 from django.db import models
 from django.db.models import Transform

 class Sqrt ( Transform ):
 lookup_name = "sqrt"

 def as_sql ( self , qn , connection ):
 lhs , params = qn.compile ( self.lhs )
 return "sqrt(%s)" % lhs , params
 models.FloatField.register_lookup ( Sqrt )

 class ModelA ( models.Model ):
 x = models.FloatField ()

 class ModelB ( models.Model ):
 a = models.ForeignKey ( ModelA )
 }}}

 Issuing the query:

 {{{
 ModelB.objects.filter ( a__pk__in = ModelA.objects.filter ( x__sqrt__lt =
 5 ) )
 }}}

 raises the above exception.

 I've used this test case to verify that this bug is still present in
 django 1.8.2.

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


Re: [Django] #23548: Transform.relabeled_clone calls own constructor with wrong number of arguments

2014-09-24 Thread Django
#23548: Transform.relabeled_clone calls own constructor with wrong number of
arguments
-+-
 Reporter:  ris  |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  1.7
  (models, ORM)  |   Resolution:
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  lookup transform |  Needs documentation:  0
  orm subquery   |  Patch needs improvement:  0
Has patch:  0|UI/UX:  0
  Needs tests:  0|
Easy pickings:  0|
-+-
Changes (by dfunckt):

 * needs_better_patch:   => 0
 * needs_docs:   => 0
 * needs_tests:   => 0
 * stage:  Unreviewed => Accepted


Comment:

 I'm marking the ticket as accepted based on the discussion with @akaariai
 in #django-dev.

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