#18870: QuerySet.count() generates invalid sql when used with select_related() and extra() -------------------------------------+------------------------------------- Reporter: bkvaiude@… | Owner: B001 Type: Bug | Status: new Component: Database layer | Version: 1.4 (models, ORM) | Resolution: Severity: Normal | Triage Stage: Accepted Keywords: | Needs documentation: 0 Has patch: 0 | Patch needs improvement: 0 Needs tests: 0 | UI/UX: 0 Easy pickings: 0 | -------------------------------------+-------------------------------------
Comment (by anonymous): As I checked in my app version is, import django; print(django.get_version()) '''1.3.1''' There is no intention. BTW , I solved it following way[[BR]] total=total.annotate().count() #Bug #18870 Link Reference: https://code.djangoproject.com/ticket/11459 Thanks for reply. -- Ticket URL: <https://code.djangoproject.com/ticket/18870#comment:2> Django <https://code.djangoproject.com/> 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.