Skip to content

Alias for today/now in query #1481

Answered by carltongibson
igonro asked this question in Q&A
Discussion options

You must be logged in to vote

You could define...

  • a form field that converted the special values in value_from_datadict — I'd probably do this.
  • a filter that (doing similar) looked for the special value, before passing off to the superclass if (say) a date was provided.
  • define a custom method
  • ...

Lots of ways. 😄

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@igonro
Comment options

Answer selected by igonro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants