title: Django self-referential foreign key
body: <p>I'm kind of new to webapps and database stuff in general so this might be a dumb question. I want to make a model ("CategoryModel") with a field that points to the primary id of another instance of the model (its parent).</p>
  
  <pre><code>class CategoryModel(models.Model):
      parent = models.ForeignKey(CategoryModel)
  </code></pre>
  
  <p>How do I do this? Thanks! </p>