Hello. I Was Trying To Get All Transaction Of User That Are In One Specific Month But In Any Way Im Getting An Empty JQuerySet.
Code :
transactions.filter(datetime__month="8") # Returned <jQuerySet []> But I Have 2 Object In This Month
transactions.filter(datetime__month="08") # Returned <jQuerySet []> Again
transactions.filter(datetime__month="12") # Returned <jQuerySet []> But Its Correct.
I Tried To Confirm My Code Works , So I Did That :
for i in transactions:
print(i.datetime.month)
And I've Got two 8 for My Objects.
After That I Tried For Year And Year Works Correctly But Month Is Not.Then I Assumed I'm Using Library Correctly But Library Has A Bug.
Configurations
Hello. I Was Trying To Get All Transaction Of User That Are In One Specific Month But In Any Way Im Getting An Empty JQuerySet.
Code :
I Tried To Confirm My Code Works , So I Did That :
And I've Got two 8 for My Objects. After That I Tried For Year And Year Works Correctly But Month Is Not.Then I Assumed I'm Using Library Correctly But Library Has A Bug.
Thanks ( mamnoon :) )