Restricting url access in DetailView

19 views
Skip to first unread message

Thiago Luiz Parolin

unread,
Dec 5, 2019, 9:11:31 AM12/5/19
to django...@googlegroups.com
I have a form that when submitted (using POST) results in a ListView page. Clicking on the record displayed by ListView opens a detail page (DetailView).
The initial form has a captcha that is validated to access the ListView page, but by using the DetailView url I can access the records without acessing the form.
How can I restrict access to record details so they can only be accessed after accessing the form and ListView?
I think that this can be done using UserPassesTestMixin or similar, but i really don't know how to do this.
Any tip will be helpful.

Thanks and sorry about my bad english.
--
Thiago Luiz Parolin

Reply all
Reply to author
Forward
0 new messages