In Django, cannot delete model instance because of FK in second (and view-based) model
<p>I defined in Django two models, the second one is based on the first, and is not managed because it is based backend on a SQL Server view (not on a table)</p>

<pre><code>class Embedder(models.Model):
  {my_fields...}

class MostRecent(models.Model):
  embedder = models.ForeignKey(Embedder)
  status = models.IntegerField()

  class Meta:
    db_table = 'embedder_most_recent'
    managed = False
</code></pre>

<p>The problem is that I can't delete an instance of Embedder because of this error:</p>

<pre><code>View or function 'embedder_most_recent' is not updatable because the modification affects multiple base tables. (4405) (SQLExecDirectW)")
</code></pre>

<p>The problem seems to reside in Django since I can delete the embedder row in SQL without error. How can I solve the problem?</p>