How to pass variable dates to a ORM query

20 views
Skip to first unread message

Gerald Brown

unread,
Aug 6, 2018, 9:43:01 PM8/6/18
to Django users
I have a Django/Python function that creates a Reportab PDF file based on the current date.  Works GOOD. Now I want to pass any date to that function and have it create a PDF based on the new date.

I tried creating  another function that generates the date (yesterday) but I am not able to pass the generated date to the first function.

Any ideas on how to do this???

Thanks

Derek

unread,
Aug 7, 2018, 9:52:13 AM8/7/18
to Django users
You'll probably need to post some code snippets; what do these functions' signatures look like and how do they get called?
Reply all
Reply to author
Forward
0 new messages