convert while filtering models #132
Unanswered
ashkanjamili
asked this question in
Q&A
Replies: 1 comment 2 replies
|
Hi, |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
hi
how can I convert below line from Gregorian to Persian :
events = tb_order.objects.filter(time_start__year=self.year, time_start__month=self.month)
here is a full function :
def formatmonth(self, withyear=True):
events = tb_order.objects.filter(time_start__year=self.year, time_start__month=self.month)
All reactions