You can save the datetime of the last form submission and check whether its oneday or not in the view. If its one day then show pass the form or else dont.
Hope this helps.
I want to allow users to submit a django form once, and only once everyday. After submitting the form, the form wouldn't even show (server-side checkings, I don't want to use JS or client side thing; easily 'tamper-able')What is the best way to do so in Django?
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b310e40f-8baa-449a-bcef-36052d0256a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You can save the datetime of the last form submission and check whether its oneday or not in the view. If its one day then show pass the form or else dont.
Hope this helps.