NotImplementedError: Don't know how to literal-quote value datetime #209
-
Please help with error( Model:
Query: Error: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Best to convert to str, something like: Note also that if you declare your field like this it's gonna set a constant value for all instances:
|
Beta Was this translation helpful? Give feedback.
Best to convert to str, something like:
Contest.objects.filter(Contest.chat.id == channel.id, Contest.date_end >= date_now.strftime("%Y-%m-%d %H:%M:%S")).all()
Note also that if you declare your field like this it's gonna set a constant value for all instances: