convert while filtering models #132
Unanswered
ashkanjamili
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi, |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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)
Beta Was this translation helpful? Give feedback.
All reactions