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 do know I have to save the date stamp, but the question is Where? On the model class, the user class, or in a text file?
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@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/deec0350-fbae-4306-8f98-f7f2cb856bbd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment