title: How to prevent user changing URL <pk> to see other submission data Django
body: <p>I'm new to the web development world, to Django, and to applications that require securing the URL from users that change the foo/bar/<strong>pk</strong> to access other user data.</p>
  
  <p>Is there a way to prevent this? Or is there a built-in way to prevent this from happening in Django?</p>
  
  <p>E.g.:
  <code>foo/bar/22</code> can be changed to <code>foo/bar/14</code> and exposes past users data.</p>
  
  <p>I have read the answers to several questions about this topic and I have had little luck in an answer that can clearly and coherently explain this and the approach to prevent this. I don't know a ton about this so I don't know how to word this question to investigate it properly. Please explain this to me like I'm 5.</p>