Changes between Initial Version and Version 2 of Ticket #32059


Ignore:
Timestamp:
Oct 1, 2020, 4:01:31 AM (4 years ago)
Author:
anderleich
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32059

    • Property Summary Issue when counting auth_user extended model by monthIssue when counting a model extending auth_user by month
  • Ticket #32059 – Description

    initial v2  
    2424
    2525Any clues of what's happening here? If I do the same query but with the User I get what I want.
     26
     27{{{
     28SELECT CAST(DATE_FORMAT(CONVERT_TZ(`auth_user`.`date_joined`, 'UTC', 'Europe/Madrid'), '%Y-%m-01 00:00:00') AS DATETIME) AS `month`, COUNT(`auth_user`.`id`) AS `count` FROM `auth_user` GROUP BY CAST(DATE_FORMAT(CONVERT_TZ(`auth_user`.`date_joined`, 'UTC', 'Europe/Madrid'), '%Y-%m-01 00:00:00') AS DATETIME) ORDER BY NULL
     29}}}
Back to Top