title: Django on_delete = models.SET()
body: <p>Below is my table :</p>
  <pre><code>class Project(models.Model):
      name = models.CharField(max_length=100, null=False)
      desc = models.CharField(max_length=100, null=False)
  
      def __str__(self):
          return self.name
  
  class Activity(models.Model):
      title = models.CharField(max_length=100, null=False)
      project = models.ForeignKey(Project, on_delete=models.SET(some_func), null=False, 
                related_name='project_model')
  
  </code></pre>
  <p>So above is my table and when one of the datas of &quot;project&quot; table gets deleted then i want to assign &quot;id or name&quot; of the deleted &quot;project&quot; data to foreign key of the &quot;activity&quot; table.
  How can i achieve this? pls help.</p>